View previous topic :: View next topic
|
Author |
Message |
sakrat
Active User
Joined: 05 Feb 2014 Posts: 164 Location: India
|
|
|
|
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 |
|
|
TheMFKid
New User
Joined: 20 Nov 2013 Posts: 91 Location: India
|
|
|
|
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 |
|
|
sakrat
Active User
Joined: 05 Feb 2014 Posts: 164 Location: India
|
|
|
|
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..... |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
|