Question on OVRDBF command
0 pts.
0
Q:
Question on OVRDBF command
RPG
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.
ASKED: Apr 13 2005  8:05 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
RELATED QUESTIONS
0
370 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Hi

Your RPG program will read file1, and the operating system will then use the override to get the data from file2.

All the best

Jonathan
Last Answered: Apr 14 2005  4:52 AM GMT by astradyne   370 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TomLiotta   8080 pts.  |   Oct 21 2009  5:42AM GMT

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

 
0