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:
01 rec-main-rec.
05 rec-sub.
10 rec-trk pic x(10).
10 rec-num-1 pic x(02).
10 var ,etc.
01 rec-main-rec2 redefines rec-main-rec.
05 rec-sub2
10.....
...and so on.
The file looks like:
00000098780198787
00000098780298787
Appreciate help in this regard.
Thanks,
FileManager
-
- Posts: 1
- Joined: Sun Feb 03, 2013 9:54 am
- Skillset: cobol
- Referer: website
-
- Posts: 341
- Joined: Thu Feb 24, 2011 12:05 am
- Skillset: 30 years on IBM mainframes
- Referer: Searched for Frank Yeager
Re: FileManager
I think you can define a new view based on the existing template, then add a selection criteria to the view to only show the single record type.
You can make a new view library to store it in if you don't have access tot he default one. Then, you can enter the view library/member in the edit panel.
You can make a new view library to store it in if you don't have access tot he default one. Then, you can enter the view library/member in the edit panel.