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
 
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: 4650
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: 4650
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: 4650
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

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