The VARBINARY function returns a VARBINARY representation of a string of any type. The result of the function is VARBINARY.
Example:
The following function returns a VARBINARY for the string 'This is a VARBINARY'.
SELECT BINARY('This is a VARBINARY') FROM SYSIBM.SYSDUMMY1