View previous topic :: View next topic
|
Author |
Message |
rohitsir
New User
Joined: 21 Aug 2007 Posts: 32 Location: USA
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
... 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 |
|
|
rohitsir
New User
Joined: 21 Aug 2007 Posts: 32 Location: USA
|
|
|
|
If I were to pass more than 100 chars, what should be done in this case ?? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
rohitsir
New User
Joined: 21 Aug 2007 Posts: 32 Location: USA
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Yep, you can "PARSE PULL" them. |
|
Back to top |
|
|
|