Loading...
Select Version
&pagelevel(3)&pagelevel
Domain: Conversion functions/string functions
The STRING( ) function converts an INTEGER, BOOLEAN or STRING expression to data type STRING. The rules for implicit conversion apply.
Format
STRING( ) STR( ) |
EXPRESSION = expression |
Result type
STRING
Input parameters
EXPRESSION = expression
Designates the expression to be converted.
Result
Converted expression in the form of a string.
Error messages
No error messages
Example
/DECLARE-VARIABLE A,TYPE=*INTEGER "Data type: INTEGER" /A = 30 /C = STRING(A) /SHOW-VARIABLE C C = 30 /D = CURRENT-TYPE('C') /SHOW-VARIABLE D D = *STRING "Data type is no longer integer; it is now string"