Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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
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
References
PostPosted: Mon Mar 17, 2008 10:16 pm    Post subject: Re: Pass FILE names to REXX routine through JCL Reply with quote

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3001
Location: Charlotte,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: 3001
Location: Charlotte,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: 3001
Location: Charlotte,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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1