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
 

 

Getting input to REXX through JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Getting input to REXX through JCL
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    Post subject:
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: bangalore

PostPosted: Mon Mar 01, 2010 8:16 pm    Post subject: Reply to: Getting input to REXX through JCL
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

Moderator Team Head


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

PostPosted: Mon Mar 01, 2010 8:20 pm    Post subject: Reply to: Getting input to REXX through JCL
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: 8593
Location: Back in jolly old England

PostPosted: Mon Mar 01, 2010 8:41 pm    Post subject: Re: Reply to: Getting input to REXX through JCL
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    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 Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am


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