Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Conversion functions

&pagelevel(4)&pagelevel

The functions presented in this section are used for explicit conversion.

String conversion for literals, C literals, X literals

FROM-C-LITERAL( )

Converts a C literal to the string it represents (reverse function of TO-C-LITERAL)

FROM-X-LITERAL( )

Converts an X literal to the string it represents (reverse function of TO-X-LITERAL)

TO-C-LITERAL( )

Converts a string to a C literal

TO-X-LITERAL( )

Converts a string to an external hexadecimal representation of the string

BOOLEAN( )

Converts an expression to BOOLEAN

INTEGER( )

Converts an expression to INTEGER

INTEGER-TO-X-LITERAL( )

Converts an integer to a 4-byte long X literal which contains the coding of the integer (inverse function to X-LITERAL-TO-INTEGER)

STRING( )

Converts an expression to STRING

VARIABLE-TO-STRING( )

Converts an S variable to an SDF string

HASH-STRING( )

Codes an expression as a string

HASH-VALUE( )

Codes an expression as an integer value

X-LITERAL-TO-INTEGER( )

Converts a string which is up to 4 bytes long to an integer (inverse function to INTEGER-TO-X-LITERAL)

Character by character (re)coding

CHARACTER-TO-INTEGER( )

Supplies the value in EBCDI code as an integer for the specified character

INTEGER-TO-CHARACTER( )

Supplies the character coded with this value in EBCDI code for a specified integer from 1 to 255

TRANSLATE( )

Replaces a string with another string defined by the user

TRANSLATE-BOOLEAN( )

Allocates another expression defined by the user to the result of a Boolean expression