View previous topic :: View next topic
|
Author |
Message |
saubhik
New User
Joined: 21 Sep 2007 Posts: 35 Location: kolkata
|
|
|
|
I have a PDS containing thosands of JCL members.
In the the JCL members the following step is there.
//STEP1 EXEC KBHPLI,
// MEMBER=M24,
// PROJ=D095,LVL=TEST
My requirement is to check whether EXEC KBHPLI%[% is the wild character] procedure is there in the step or not,If EXEC KBHPLI is there in the step then add REGION=0M at the end.
Convert into the following.
//STEP1 EXEC KBHPLI,
// MEMBER=M24,
// PROJ=D095,LVL=TEST,REGION=0M
Please let me know how can i achieve it thru REXX. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Click HERE to get the general idea.
And also visit the sticky at the top of the CLIST / REXX forum to view the ISPF manuals - especially the edit macro manual as you will need that to find out how do accomplish the finer points of your requirement. |
|
Back to top |
|
|
saubhik
New User
Joined: 21 Sep 2007 Posts: 35 Location: kolkata
|
|
|
|
Hi,
But it would be good if some one can help me with the REXX code for the above mentioned requirement. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I've given you the REXX code to get all of the members in the PDS, and a rough guide on how an edit macro works. You did click the link I gave you ....... didn't you ?
As previously suggested, you will need to read the edit macro manual to find out how to make the changes you require to the chosen lines in each member.
If you look closely at the macro you might spot a similarity of what is coded there and what you would actually type on your terminal.
I admit that getting a certain line of the member into a working variable might seem difficult, but there are good examples already available on the forum.
If you come back to us with the problems that you encounter we will be happy to help further. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Expat wrote: |
I've given you the REXX code to get all of the members in the PDS, and a rough guide on how an edit macro works. You did click the link I gave you ....... didn't you ? |
In only 20 minutes. . . Clicked maybe - read the material, surely not. . .
Saubhik wrote: |
But it would be good if some one can help me with the REXX code for the above mentioned requirement. |
Nah, it really wouldn't be good. . . One needs to actually invest some effort in developing themself.
As is often mentioned, we will help you get the work done, but will not do the work for you. |
|
Back to top |
|
|
|