Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
Is it possible to capture the output of file tailoring commands in a stem variable?
Basically I have a skeleton in which i have two EXEC steps which need to be added to the target JCL depending on the number of times they need to be reproduced. Not sure, i am approaching the problem from right direction?
About the second part of the question:
You have a "target JCL" and you want to add a number of steps somewhere in that JCL.
Depending of course on the requirements,
I would use an // INCLUDE in the target JCL: the JCL is then separated from the "dynamic" part and is easy to maintain.
the INCLUDEd part would be created from the skeleton before submitting the job.
In the skeleton, you can use an ISPF table and the )DOT command to repeat a piece of code any number of times.