I have PS file containing list of disk datasets. I need to copy the list of JCLs on to tape.
Now, I am doing this manually...
How to automate this process?
Thank you....
What do you want to do really. . . Copy the datasets in the list or some set of "JCLs" to tape?i have PS file containing list of disk datasets. I need to copy the list of JCLs on to tape.
skankatala wrote:I have PS file containing list of disk datasets. I need to copy the list of JCLs on to tape.
Now, I am doing this manually...
How to automate this process?
Thank you....
dick scherrer wrote:Hello,
Yup, the inline proc will give you what you want and does have a bit of flexability.
If you create an individual output file for each input, suggest you use the sort product in use on your system - the sort is extremely faster than the original IEBGENER. If your system automatically executes the sort product (under the covers) for simple IEBGENER executions, this will not improve the performance.
BillyBoyo wrote:You need a program. What mainframe languages are you familiar with?
You have two input files. One is an "outline" or "skeleton" of the jcl you want for the sort. The other is your list of datasets.
You take the first from your list of datasets. You make from it a new name with the desired HLQ, You take those two names and apply them to the outline/skeleton giving you a complete piece of JCL. You write that to an output file. Continue until end.
There are a couple of details, like whether you have a Job for each dataset combination (easier) or a step (have to look at max-number of steps)? Do you want to subit all the jcl at once, or do you want to store in a PDS? Do you want to use the Internal reader? Etc.
However, all of those can be dealt with (largely) through changing the outline/skeleton once you have the basic program up.