by NicC » Sat Dec 24, 2016 3:37 pm
Your question is incomplete: "pass member from rexxprog" to where?
It almost sounds like you have a job and one of its steps is to execute a program, written in rexx (although the language is immaterial), said program to decide which data sets are to be used by later steps in the already executing job. If that is what you are meaning then the answer is that it is not possible - the JCL is processed at the time it is submitted and is then 'discarded'. When the job executes it is using what as been interpreted at job submission time.
What you can do is have your program run as a separate job and generate the later job with the data set names required. This can be done by the 'brute force' method of having the JCL coded within the program or by the better method of using the File Tailoring facilities of ISPF.
An alternative is to have your program write the datasets to a dataset which the following program(s) can read and then do dynamic allocations.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic