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
 
Run the rexx program as macro

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
santosh_g

New User


Joined: 14 Aug 2011
Posts: 24
Location: india

PostPosted: Wed May 14, 2014 2:18 am    Post subject: Run the rexx program as macro
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Wed May 14, 2014 2:26 am    Post subject: Reply to: Run the rexx program as macro
Reply with quote

unfortunately Your question is clear as mud icon_cool.gif

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
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2088
Location: Silicon Valley

PostPosted: Wed May 14, 2014 3:46 am    Post subject: Reply to: Run the rexx program as macro
Reply with quote

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
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 Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

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