Hi all - My jcl runs with an event triggered dataset and the dataset comes with different date and time each time. There is a sort step that extracts the date and time part of it and puts it in a temporary file. And then there is an IEBGENER step that copies this temporary file value (date and time) to the SYSOUT. (ie., SYSUT2 = SYSOUT DD * ) .. instead of routing the values to SYSOUT, i want the date and time value in a symbolic variable. Because there is an FTP step where in i will be sending another file with this date and time appended to its end. I am not able to capture this value in the symbolic variable. Can anyone give me a suggestion how can i do this or if I am doing anything wrong, pls correct me. Thanks.
Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
.. instead of routing the values to SYSOUT, i want the date and time value in a symbolic variable. Because there is an FTP step where in i will be sending another file with this date and time appended to its end. I am not able to capture this value in the symbolic variable.
Huh? What does a JCL Symbolic Variable have to do with an FTP process? You stated that you've already processed the data and extracted the data and time values into a file. Why isn't that enough to be used again in the FTP process?
Joined: 14 Mar 2007 Posts: 8630 Location: Back in jolly old England
Ho humm ........ this looks like another case of treating the symptoms rather than the cause.
I have always set these things up where a base dataset (none of this date / time malarcky) was used as the event trigger, where the dataset is backed up, processed and then if any FTP or whatever is required to use scheduler variables to append dates and times for the target dataset / filename.
I somehow fail to see this wierd fascination with all of this date / time thing when it can so easily be avoided along with all of the pitfalls that go along with it.
Here you are building another process that does not need to be built if a well thought out application was in place. Really must get on to my broker and get some more shares in big blue.