|
This is confusing
How are you using a ODBC driver in RPG?
Are you allocating the files *excl?
Another way to read a file twice in a rpg program is to use file-a and file-b in the rpg. Rename the record format on the f-spec of one of the files.
Before compiling do a ovrdbf file-b to file-a. Create the pgm interactively to keep the ovrdbf in effect basically the same job.
It should compile.
You can create a cl to compile in batch
- ovrdbf File-b file-a
- crtrpgpgm
Next before running the job
You will need a cl program to
- ovrdbf file-b to file-a
- call your program
-dltovr
Does this do it for you?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact copyright@midrange.com.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.