Suppose, in my CL program, I am using the following command:
OVRDBF file(file1) tofile(file2)
The question is: In my RPG program, which file will be read in C specs..will it be Read file1 or Read file2??
Thanks.
Note that it will depend on what you code for the F-spec. Whichever name you code on the F-spec, that will be the name you must code on your READ statement. Of course, if the override is in effect, the actual file being read is going to be file2. That's the point of the override -- you code a program to process some generic name, and different overrides allow you to run the program against different files. The coded name doesn't change, but the file being processed does change. You use the same program and control what it does from the outside.
Tom
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 1  Reply