Same file in different libraries and file is defined once in an RPGLE program

180 pts.
Tags:
Coding
DB LIBRARIES
RPGLE
I have a coding project that requires the following.

Software/Hardware used:
Iseries V6R1M0 & RPGLE

Answer Wiki

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

Thank you for attempting to help with my coding project.
I have resolved the coding problem by embedding SQL in my RPGLE program.
Everything works great.
Many thanks to all.

Discuss This Question: 3  Replies

 
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
  • TomLiotta
    You can use OVRDBF for one or both files as long as the override is executed before the file is opened. Or you can use the EXTFILE(filename) keyword, perhaps with a variable that holds a value in the 'libname/filename' format. The program file names will need to be different from each other. You can use copies of the file descriptions and rename them to match the program file names in order to compile. (The copies only need the description; members aren't needed nor is any data needed.) If you can't create temporary file descriptions to compile over, you can issue OVRDBF commands in the job that does the compile. Beyond those, use embedded SQL. You can use any file names and library names you need. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    file is defined once I didn't catch that part when I first read the question. After reading again, I'm not clear on the point of the question. Why is there a requirement for a single program definition when it's known that there are two files? Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    As Tom said, we need more specs. Do you need to process data from these files as if they were one file Or All data from lib1/file then all the data from lib2/file Phil
    49,550 pointsBadges:
    report

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