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: 1232
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
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Need info on EIBCPOSN value in IBM FA... subratarec CICS 11 Wed Jul 12, 2017 3:45 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm


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