Answer Wiki

The two files need to have two different names in the F specs of your program.
Then you can do a OVRDBF before the call to the program.
You can also specify the library of the 2nd file within your RPG program.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: 1 &nbspReply

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

There are more options there than you need. The two F-specs use slightly different techniques. Use only pieces that you really need.
The requirement is that the compiler needs file descriptions named "QCUSTCDT1" and "QCUSTCDT2" at compile-time because those are the F-spec names. You can either create duplicate file descriptions in a library in your library list when you compile or execute OVRDBF before the compile command executes. There is no need to run OVRDBF when the program runs if you do it this way.
When you duplicate a file description for this, you don't need the data. Nor do you even need any members. The file description objects are small enough not to make any real difference to your system. If necessary, they can be deleted after the compile finishes; but I prefer keeping them in a development library for later reference.
Tom

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

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!

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy