The other values represent special characters such as quotes and ampersands or non-printing characters such as tabs, carriage returns, or line feeds.
This command allows you to generate the integer index corresponding to each character in a previously defined string. Syntax:
where <ival> is a parameter or variable containing the ASCII collating sequence index values;
and <sorg> is a previously defined string.
If <ival> was previously defined as a parameter, only the value corresponding to the first character in <sorg> is returned. If <ival> was previously defined as a variable, then values corresponding to all characters in <sorg> are returned. If <ival> was previously defined as something other than a parameter or a variable, then an error is printed.
If <ival> was not previously defined, then it will saved as a parameter if <sorg> has only one character and it will be saved as a variable if <sorg> has more than one character.
should be coded as
LET STRING S1 = file23.dat LET IVAL = ICHAR S1The resulting values of IVAL are 102, 105, 108, 101, 50, 51, 46, 100, 97, and 116.
Date created: 12/4/2008