Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

REXX requirements.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: REXX requirements.
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 19, 2010 4:27 pm    Post subject:
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    Post subject: Reply to: REXX requirements.
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 19, 2010 5:02 pm    Post subject:
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

Site Director


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

PostPosted: Thu Aug 19, 2010 8:09 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us