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

Pass data from REXX to JCL


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jan 19, 2010 12:48 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jan 19, 2010 3:18 pm
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
Reply with quote

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

Moderator Emeritus


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

PostPosted: Wed Feb 03, 2010 8:52 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top