View previous topic :: View next topic
|
Author |
Message |
rskumar
New User
Joined: 21 Nov 2005 Posts: 35 Location: chennai
|
|
|
|
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. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you can not change the jcl of a running job.
what you can do is use the date time values from the file and
introduce this to 'un submitted' jcl,
then submit the jcl.
there are many examples of this in the forum. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Or you can change the FTP step to REXX step that invokes FTP internally.
O. |
|
Back to top |
|
|
rskumar
New User
Joined: 21 Nov 2005 Posts: 35 Location: chennai
|
|
|
|
Ok thanks.. i ll try that. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
rskumar wrote: |
.. 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? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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. |
|
Back to top |
|
|
|