I wanted to write a RPG program which will be called from 3 other CL programs. From 3 CLs this RPG has to use 3 different files in the chain. How can I use the filename inside the chain which is received as parameter? I tried to use
FInpFile I F E Disk EXTFILE(pFilename)
and populated pFilename with the name received as parameter, but I am getting level40 error on the declaration, it says the file mentioned in the F spec is not an externally described file. I assume because the 'InpFile' is not a file name. How can I use the file name at run time? Waiting for the inputs. Thanks in advance.
June 5, 2013 12:31 AM
June 5, 2013 12:06 PM