Assigns the converted value of the expression e to r, as if r were a string variable whose length is the total number of characters or bits in the variable identified by r.
STRING(r)=e;
DECLARE A(5) CHARACTER(1); . . . STRING(A) = 'ABCDE';
After the previous assignment, A (1) has the value of 'A' , A (2 ) has the value of 'B', and so forth.
Arrays containing char varying data items when applied as the argument to the STRING pseudo variable is not currently supported.
Description
The STRING pseudovariable interprets an appropriate reference as a reference to a fixed-length string.
The STRING assignment assigns the converted value of the expression e to r, as if r were a string variable whose length is the total number of characters or bits in the variable identified by r. The STRING assignment can modify an entire aggregate with a single string assignment or assign the aggregate to a pictured variable as if it were a character-string variable.