Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 74
Location: US

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: 4650
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: 8657
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. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts How to build one file from two input ... daniele DFSORT/ICETOOL 5 Tue Feb 27, 2018 6:45 pm
No new posts How to control Panel Attributes throu... rsshanmugam CLIST & REXX 3 Mon Feb 26, 2018 9:51 pm
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
This topic is locked: you cannot edit posts or make replies. how to get Job information from IOF u... rsshanmugam CLIST & REXX 13 Mon Feb 05, 2018 4:22 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us