DSPF & SNDRCVF
How can I declare multiple files in a CL program?
Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.
Vatchy | Apr 3 2008 3:40PM GMT
You cannot declare or use more than one file in a CL program. In order to access two files you must use a second program.
If you are driving the display from a data file then declare the data file in the first program and call the second program to display the data passed from the first program.
What Vatchy writes is true as long as you are in an OS version previous to V5R3. Then check your OS version and decide.
Good luck.
Gilly400 | Apr 8 2008 3:06PM GMT
You can access more than one file in a CL program these days, but you have to use the OPNID parameter to distinguish between the files.