Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need to capture the value in a symbolic variable.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need to capture the value in a symbolic variable.
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    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Jul 08, 2010 10:38 pm    Post subject:
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    Post subject:
Reply with quote

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

Moderator Team Head


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

PostPosted: Thu Jul 08, 2010 11:55 pm    Post subject: Re: Need to capture the value in a symbolic variable.
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jul 09, 2010 11:22 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts OPC JCL Variable passion_sujesh IBM Tools 5 Fri Jul 01, 2016 4:21 am
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us