User`s guide

Keyword Function
POS Return the starting character position of a substring in a string.
$TRANSB Return a 48-byte string containing the binary representation of a
transformation value.
$TRUNCATE Return all characters in the input string until an ASCII NUL (or the
end of the string) is encountered.
$UNPACK Return a substring from an array of 128-character string variables.
VAL Return the real value represented by the characters in the input
string.
Examples of String Functions
The instruction:
TYPE $ERROR(-504)
outputs the text *Unexpected end of file* to the screen.
The instructions:
$message = "The length of this line is: "
TYPE $ENCODE($message, /I0, LEN($message)+14), "
characters."
output the message:
The length of this line is: 42 characters.
String-Related Functions
(Undefined variable: Primary.Product_Name_V)Language User's Guide, version
17.x
Page 145