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: 8798
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: 8798
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: 19243
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 All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Trouble using REXX SDSF interface to ... CLIST & REXX 3
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Instream REXX? JCL & VSAM 13
No new posts CEMT using Rexx? Help please CLIST & REXX 3
No new posts get submitted JCL from SDSF with REXX... CLIST & REXX 2
Search our Forums:


Back to Top