
|
|
157 - Converting Arrays to Scalar Data |
| At present, only the 'CNV TEXT' stmt addresses an Alpha array as if it were a single scalar variable. (Unfortunately, it also adjusts for periods, insuring no more than one space after a period.)
* initialize an Alpha Array: You can also accomplish the "Array to Scalar" assignment, by setting up a Working Storage type file, with a GROUP construction like the following:
100 WS GROUP1 GROUP HEADER 1 ... then perform the assignment as follows:
SET PAT WS A50 = XYZ ... resulting in:
Appl Field Name Occ Field Value --------------------------------------------------------------------------------
Don't forget the ability to search for individual characters (ex: commas or quotes) in ILF code, by means of the IF INCLUDES ('IF' verb with 'IN' operator), to perform string processing.
| |
| [Append to This Answer] | |
| 2010-May-20 12:29am |
| Previous: |
|
| Next: |
|
| ||||||||