View previous topic :: View next topic
|
Author |
Message |
santosh_g
New User
Joined: 14 Aug 2011 Posts: 24 Location: india
|
|
|
|
Hi All,
In order to run a rexx program as macro (customize the run search library), can you guys suggest how I can achieve it or give me the key word to search the forum.
The rexx program will read the input file and for each input record, prepare JCL and submit it. I know how to run rexx using IKJEFT01 but need some info to run via macro.
Best Regards, |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
unfortunately Your question is clear as mud
please repost a better description ..
did You mean EDIT MACRO ???
anyway if You search the forum there are gazillions of examples and jcl snippets
on how to invoke a rexx script which uses ISPF facilities. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
customize the run search library |
I think you do NOT mean macro at all, but by description you mean to pass a parameter to it, to run it as a function.
Something like this (untested):
Code: |
"EXECIO * DISKR MYINFO (FINIS STEM INFO."
Do b = 1 to info.0
a= myfunc1(info.b)
End
exit
/* this is an internal function */
myfunc1:
parse arg someline '.'
/* process the line */
return 0
|
If you want myfunc1 to be an external routine, make it a different member. Probably, the main concept is the use of the PARSE ARG instruction to get the parameters that are passed in. |
|
Back to top |
|
|
|