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
 

 

Can I call another REXX tool inside a macro.....?????

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sakrat

Active User


Joined: 05 Feb 2014
Posts: 159
Location: India

PostPosted: Mon Mar 03, 2014 9:55 am    Post subject: Can I call another REXX tool inside a macro.....?????
Reply with quote

Hi Everyone,
I created a tool for inserting the delete step automatically inside the JCL using the macros....Also this delete step will change all the symbolic parameter dataset names mentioned in DSN in JCL to normal one while inserting in the delete step.....Now if suppose insted of using the Dataset utilities inside the JCL, if I use a PROC then the dataset names inside the proc would have been specified using the symbolic parameter, so the SET statement corresponding for that will specified in my JCL in that i should first read the DSN names in PROC after that i will do the operation as how i carry out now....But how will open my PROC inside the macros...can i use OPEN DATASET syntax to open my PROC and read the PROC.....can i use all these operations inside the "ISREDIT MACROS"....Please suggest me with some ideas if i am going wrong in my idea of soing this operation....


Thanks in advance....
Back to top
View user's profile Send private message

TheMFKid

New User


Joined: 20 Nov 2013
Posts: 91
Location: India

PostPosted: Mon Mar 03, 2014 10:13 am    Post subject: Re: Can I call another REXX tool inside a macro.....?????
Reply with quote

Swathi Muralidharan wrote:

can i use OPEN DATASET syntax to open my PROC and read the PROC.....can i use all these operations inside the "ISREDIT MACROS"....Please suggest me with some ideas if i am going wrong in my idea of soing this operation....
Thanks in advance....


Yes definitely you can call other services from your ISREDIT MACRO. All you need to do is specify the calling environment in the same line.
Code:

ADDRESS ISPEXEC "EDIT DATASET("XXX.XXXX")"
Back to top
View user's profile Send private message
sakrat

Active User


Joined: 05 Feb 2014
Posts: 159
Location: India

PostPosted: Mon Mar 03, 2014 10:33 am    Post subject: Re: Can I call another REXX tool inside a macro.....?????
Reply with quote

TheMFKid wrote:
Swathi Muralidharan wrote:

can i use OPEN DATASET syntax to open my PROC and read the PROC.....can i use all these operations inside the "ISREDIT MACROS"....Please suggest me with some ideas if i am going wrong in my idea of soing this operation....
Thanks in advance....


Yes definitely you can call other services from your ISREDIT MACRO. All you need to do is specify the calling environment in the same line.
Code:

ADDRESS ISPEXEC "EDIT DATASET("XXX.XXXX")"


Thank you for the reply.
Will try with this then and let you know whether its working like how i need..... icon_lol.gif
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1228
Location: Israel

PostPosted: Mon Mar 03, 2014 7:55 pm    Post subject: Reply to: Can I call another REXX tool inside a macro.....??
Reply with quote

The use of quotes is incorrect. It should be:
Code:
ADDRESS ISPEXEC "EDIT DATASET('XXX.XXXX')"

and if you edit a member it should be:
Code:
ADDRESS ISPEXEC "EDIT DATASET('XXX.XXXX(MYPROC)')"

If you want to do something with the newly opened member, you can run a macro:
Code:
ADDRESS ISPEXEC "EDIT DATASET('XXX.XXXX(MYPROC)') MACRO(MAC2)"

and the macro MAC2 should finish with an END or a CANCEL command so control can return to your original macro.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am


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