Hello everyone. I need your advise on an issue that I am having. I'll try and explain it best as I can.
I have a program that has been working for awhile. In that program, it uses a Masterfile called masterfile.dat. That is derived from a masterfile.lib (library) which has all all the field specs in there.
Recently I have to add another field in the program. I am not sure if this is correct way or not so if you can please point out if I'm not doing it correctly. I went into the program and into the masterfile.lib (library) and added that field in there. However when I try to call up that field in the program, I get "12-S Operand [new field name] is not declared"
This is what I am understanding. Here is an example:
masterfile.lib has the following:
FD MSTRFILE
LABEL RECORDS ARE STANDARD.
01 MREC
05 MFILE PIC XXX.
05 MFILE2 PIC XXX.
05 MFILE3 PIC XXX.
If I had to go into the library to add MFILE4. How do I go about updating the masterfile.dat to have the mfile4? So that when I run my program and calls up the MFILE4, it would be declared and on the masterfile.dat to grab. Does that make sense?
I tried to update it by writing another program that does the following:
REWRITE MREC.
Please give me your insight into this, any help is greatly appreciated.