Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
Is there a way to control the HOLD and SAVE parameters for a report from within the RPG program that generates it, so as not to have to create a CL?
QCMDEXC or 'system' to run the CL command.
Though personally I use external defined print files, so I can hard set the HOLD/SAVE settings, and the program doesn't need to set them itself.
To elaborate on what Neil said,