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

Getting input to REXX through JCL


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maridawson

New User


Joined: 24 Jun 2008
Posts: 59
Location: chennai

PostPosted: Thu Nov 12, 2009 12:43 pm
Reply with quote

Hi,
i have coded a jcl to execute a REXX program. I want to pass an input from the JCL to the REXX program. The input is actally a dataset which i want to PULL and use it in my REXX program. Help needed.

Thanks,
Maridhasan D.
Back to top
View user's profile Send private message
maridawson

New User


Joined: 24 Jun 2008
Posts: 59
Location: chennai

PostPosted: Thu Nov 12, 2009 2:57 pm
Reply with quote

Found out that ....... you have to include the dataset in the JCL as follows:
//ddname dd dsn=filename,disp=shr

And then in the Rexx program just read the dataset using EXECIO into a stem variable as follows:
EXECIO * DISKR DDNAME (STEM VARIABLE. FINIS"

and thats it


Thanks
Back to top
View user's profile Send private message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Mon Mar 01, 2010 8:16 pm
Reply with quote

how does jcl calls the rexx code? is it calling through jcl lib?
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Mon Mar 01, 2010 8:20 pm
Reply with quote

Is the REXX program compiled, or is it being run in interpreted mode?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Mar 01, 2010 8:41 pm
Reply with quote

ashok_uddaraju wrote:
how does jcl calls the rexx code? is it calling through jcl lib?

There are many examples of executing REXX in batch on the forum.
Please search the forum for an answer.

If your reply was not intended as a reply to the current thread, then why did you not start a new topic.
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top