Hi,
It there a way to pass a field name as a parameter to an RPGLE program (not FREE) so that field name can be read from an overridden file?
I need to run a program over several files, specifically several fields of different names within each file, and I'm looking for a way to do this dynamically, like from a command where I can allow a file name and library to be supplied via the command along with a list of field names. Then in a CL, override to the lib/file and pass the fields as a single parameter from a loop in the CL. Let the RPGLE program do it's thing, return to the CL, pass the next field, etc.
Is this possible?
Mike
It there a way to pass a field name as a parameter to an RPGLE program (not FREE) so that field name can be read from an overridden file?
I need to run a program over several files, specifically several fields of different names within each file, and I'm looking for a way to do this dynamically, like from a command where I can allow a file name and library to be supplied via the command along with a list of field names. Then in a CL, override to the lib/file and pass the fields as a single parameter from a loop in the CL. Let the RPGLE program do it's thing, return to the CL, pass the next field, etc.
Is this possible?
Mike
Comment