Page 1 of 1

FileManager

PostPosted: Sun Feb 03, 2013 10:06 am
by deepakdnayak
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,

Re: FileManager

PostPosted: Mon Feb 04, 2013 7:31 pm
by Ed Goodman
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.