I have a job containing three steps at first each producing an O/P dataset.
From the fourth step onwards, there are few more steps coded to append Date field at the end of the name of each Dataset....
Eg: Step 1 produces a file : TEST1.DATA.SORT
Step 4 will alter the name of this Dataset and the new name shall
be TEST1.DATA.SORT.D080603...(By using EZACFSM1)
On similar lines ,the remaining two file names are also appended with Date Value.
Now, I have an additional task to write the names of the new file names
thus created as records in another file,say, TEST.MASTER.FILE.
Thus at the end of the job, the file TEST.MASTER.FILE shall contain three records,
Could anyone please advise how to proceed on to create the
The code I used to create the file TEST1.DATA.SORT.D080603 is
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
You might consider a "front-end" process that would create the exedcution jcl with the needed final dataset names already resolved. The "correct" jcl could then be submitted via the internal reader and ther would be no need for keeping track of file names and renaming datasets.
If you are not familiar with the internal reader, there are multiple topics in the forum. If you read something that is not clear, post what you read and what is not clear and we will help clarify.
Thanks a lot.....I got the file names from the SYSPRINT statements and then ran a sort step eliminating all the un necessary information contained in the SYSPRINT file and extracting only the new file names.
Regarding the Internal Reader, I donno much about it and since the requirement was met using the Sysyprint itself so I did nt go through
the "Front End" process............Anyways, thanks for the info...it can surely come handy in my future tasks.....