Returns a graphic string representation of a string expression. The result of the function is a fixed-length graphic string (GRAPHIC).
The first argument must be a string expression. The second argument is optional. It is the length attribute of the result. The third argument is also optional. If specified, the CCSID of the result is the third argument.
Example:
Using the EMPLOYEE table, return the GRAPHIC equivalent of the first name (FIRSTNME) for employee number (EMPNO) '000050'.
SELECT GRAPHIC(FIRSTNME) FROM EMPLOYEE WHERE EMPNO = '000050'