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 FILE names to REXX routine through JCL

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

New User


Joined: 21 Aug 2007
Posts: 32
Location: USA

PostPosted: Mon Mar 17, 2008 10:16 pm    Post subject: Pass FILE names to REXX routine through JCL
Reply with quote

I want to pass file names to rexx routine. I am executing this routine in batch. Where should i pass the file names in JCL ? Could I retrieve them in REXX as ARG values ??
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 17, 2008 11:38 pm    Post subject: Reply to: Pass FILE names to REXX routine through JCL
Reply with quote

... EXEC PGM=IKJEFT01,PARM='MYEXEC MYPARAMETER1 ... MYPARAMETERn'

And yes, they would be retrieved as ARG values (either using PARSE ARG or ARG(n)).
Back to top
View user's profile Send private message
rohitsir

New User


Joined: 21 Aug 2007
Posts: 32
Location: USA

PostPosted: Tue Mar 18, 2008 9:44 pm    Post subject:
Reply with quote

If I were to pass more than 100 chars, what should be done in this case ??
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: Tue Mar 18, 2008 10:02 pm    Post subject: Reply to: Pass FILE names to REXX routine through JCL
Reply with quote

Obviously, you'll have to come up with another plan, such as writing the filenames to a dataset, and then reading that dataset into a bunch of stem variables.
Back to top
View user's profile Send private message
rohitsir

New User


Joined: 21 Aug 2007
Posts: 32
Location: USA

PostPosted: Tue Mar 18, 2008 10:49 pm    Post subject:
Reply with quote

I am executing my rexx routine thru IKJEFT01. Would SYSTSIN ddname be of any use in passing the values to rexx routine ???
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: Tue Mar 18, 2008 11:36 pm    Post subject: Reply to: Pass FILE names to REXX routine through JCL
Reply with quote

Yep, you can "PARSE PULL" them.
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
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


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