IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need to capture the value in a symbolic variable.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Thu Jul 08, 2010 10:04 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 08, 2010 10:10 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jul 08, 2010 10:38 pm
Reply with quote

Or you can change the FTP step to REXX step that invokes FTP internally.

O.
Back to top
View user's profile Send private message
rskumar

New User


Joined: 21 Nov 2005
Posts: 35
Location: chennai

PostPosted: Thu Jul 08, 2010 10:57 pm
Reply with quote

Ok thanks.. i ll try that.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Jul 08, 2010 11:55 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jul 09, 2010 11:22 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Rexx to capture output from TSO HSEND... CLIST & REXX 9
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
Search our Forums:

Back to Top