I'm hoping someone can help me come up with a decent way to handle this.
Basically, I've got about 30 physical files and a display file. For each physical file, I've got a D spec as below:
I have a display file with a number of record formats, and each record format contains most of the fields found in one of the 30 physical files. Some of the physical files may have fields named identically to each other with different data types/lengths.
Basically, my question is - after doing a chain or read to populate the example ARQ data structure, what is the easiest way to populate all of the corresponding fields on the display file, without using EVAL-CORR or Exfmt with a third data structure parameter, as these are unsupported on V5R2?
I'm hoping for something a bit more elegant than:
FIELD1 = ARQ.FIELD1;
FIELD2 = ARQ.FIELD2;
....
FIELDX = ARQ.FIELDX;
This is probably a pretty easy question, but some rudimentary Googling and forum searching didn't strike on a solution that didn't use one of the aforementioned off-limits items.
Thanks!
Basically, I've got about 30 physical files and a display file. For each physical file, I've got a D spec as below:
PHP Code:
D ARQ e ds qualified extname(AVRQXX)
D inz(*Extdft)
Basically, my question is - after doing a chain or read to populate the example ARQ data structure, what is the easiest way to populate all of the corresponding fields on the display file, without using EVAL-CORR or Exfmt with a third data structure parameter, as these are unsupported on V5R2?
I'm hoping for something a bit more elegant than:
FIELD1 = ARQ.FIELD1;
FIELD2 = ARQ.FIELD2;
....
FIELDX = ARQ.FIELDX;
This is probably a pretty easy question, but some rudimentary Googling and forum searching didn't strike on a solution that didn't use one of the aforementioned off-limits items.
Thanks!
Comment