How can you process multi files in RPGIII that can be genetic names, example: EXAMPLE ABC0412, ABC0413, ABC0414...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
I would assume that your question is how to create a single program to process files with different data, but the same data format. The CL command OVRDBF will allow you to override the file name in the RPG program to open a different file name.
Example: FILEA - Original File. FILEB - New file that has just arrived. PGMA - Program was written to use FILEA. CL Commands: CALL PGMA - Calls program "A" and processes FILEA OVRDBF FILE(FILEA) TOFILE(*LIBL/FILEB) CALL PGMA - Calls program "A" and processes FILEB
Related Q&A from John Brandt
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.