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.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!