IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sakrat

Active User


Joined: 05 Feb 2014
Posts: 164
Location: India

PostPosted: Mon Mar 03, 2014 9:55 am
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
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: 164
Location: India

PostPosted: Mon Mar 03, 2014 10:33 am
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: 1353
Location: Israel

PostPosted: Mon Mar 03, 2014 7:55 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top