Read Records from member

35 pts.
Tags:
RPG
How to read records from all the members without using CL (OVRDBF) ie it should be handled exclusively in an RPG program?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

You could run an OVRDBF command from your RPG using QCMDEXC. You’ll need to define your file as user controlled and open the file after you’ve done the OVRDBF.

Regards,

Martin Gilbert.

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Or you could create a logical file that is built over all members of the physical file. That way, your RPG program wouldn’t have to know the difference, as the database would present all of the records to the program in the order specified (such as in key order), regardless of the file member in which they’re actually located. If you were to read the records in arrival sequence, I’m not sure whether the sequence would be across all members, or just one member at a time. But you could experiment with that to see…

CWC

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
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

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

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

REGISTER or login:

Forgot Password?
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

Thanks! We'll email you when relevant content is added and updated.

Following