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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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