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

REXX requirements.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saubhik

New User


Joined: 21 Sep 2007
Posts: 35
Location: kolkata

PostPosted: Thu Aug 19, 2010 4:21 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 19, 2010 4:27 pm
Reply with quote

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
View user's profile Send private message
saubhik

New User


Joined: 21 Sep 2007
Posts: 35
Location: kolkata

PostPosted: Thu Aug 19, 2010 4:50 pm
Reply with quote

Hi,
But it would be good if some one can help me with the REXX code for the above mentioned requirement.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 19, 2010 5:02 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 19, 2010 8:09 pm
Reply with quote

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
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
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
Search our Forums:

Back to Top