Returns a graphic string representation of a string expression. The result of the function is a varying-length graphic string (VARGRAPHIC).
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 VARGRAPHIC equivalent of the first name (FIRSTNME) for employee number (EMPNO) '000050'.
SELECT VARGRAPHIC(FIRSTNME) FROM EMPLOYEE WHERE EMPNO = '000050'