I have a file with mutiple records each with length 3000.
The copybook that I have for this is redefined depending upon the record number on each of them.
My requirement is to edit one of the record types on this file using the template.
The template is modified to select only the rec_num on the record which I want to modify.
I am able to achieve by doing a 'ft,x all,f all rec_num col_num,fs' and then changing them.
Is there any way I can do the same thing just by doing a pf7/pf8 instead of using the command above and NOT making changes to the template.
The copybook looks something like this:
10 rec-trk pic x(10).
10 rec-num-1 pic x(02).
10 var ,etc.
01 rec-main-rec2 redefines rec-main-rec.
...and so on.
The file looks like:
Appreciate help in this regard.