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
 

 

Pass data from REXX to JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
nihirdas

New User


Joined: 19 Jan 2010
Posts: 3
Location: bangalore

PostPosted: Tue Jan 19, 2010 12:03 pm    Post subject: Pass data from REXX to JCL
Reply with quote

I have gone throogh many of the Post wich is similar to this but i didn't able to make from that. I am beginner to REXX please explain in detail.

My Requirement:-
Im my REXX pgm i have a variable (FIRST_NAME). I want it to pass to the following library ABC.ABC(JCLJOB).

In JCLJOB i want to use the value of FIRST_NAME which i have defined in my REXX program.

Please let me know how to go about it

thanks
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: Tue Jan 19, 2010 12:48 pm    Post subject:
Reply with quote

Your question is not clear. You have a value in a variable. What exactly do you want to do with it.

Please give an example of what you want to see.
Back to top
View user's profile Send private message
nihirdas

New User


Joined: 19 Jan 2010
Posts: 3
Location: bangalore

PostPosted: Tue Jan 19, 2010 2:05 pm    Post subject: Reply to: Pass data from REXX to JCL
Reply with quote

For EG: - FIRST_NAME is the variable which store the TSO USER ID of the User. I am using FIRST_NAME in my REXX program several places. Now i also want to pass the same user ID which is stored in FIRST_NAME in my JCL. In my JCL i want to replace it in one of the nodes of dataset.
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: Tue Jan 19, 2010 3:18 pm    Post subject:
Reply with quote

I assume that you will submit the job from the REXX

Have you read about ISPF file tailoring, which is usually the easiest way of making variable substitutions when building JCL.

Or you can build the JCL "in flight" using the variable name.
Back to top
View user's profile Send private message
nihirdas

New User


Joined: 19 Jan 2010
Posts: 3
Location: bangalore

PostPosted: Wed Feb 03, 2010 4:39 pm    Post subject: Reply to: Pass data from REXX to JCL
Reply with quote

I resolved this Query. Thanks for your kind help
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Feb 03, 2010 8:52 pm    Post subject:
Reply with quote

Hello,

Good to hear it is resolved icon_smile.gif

If you explain how you solved this, it will probably help someone with a similar queston later. . .
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am


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