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

Update selective member thru REXX


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

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Thu Feb 12, 2009 4:18 pm
Reply with quote

Hello All,

I need to update string from ABC TO DEF in selective member of a dataset
All the member Like xxxMTxxx contain MT as 4th & 5th character need to update.

Dataset contain around 1000 Member.
Please provide rexx solution for this
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Feb 12, 2009 4:28 pm
Reply with quote

1. Use the LMMLIST service to create the appropriate member list.
2. For each member, use the EDIT service to run an edit-macro against that member.

O.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Feb 12, 2009 4:33 pm
Reply with quote

take a look at ISPF EDIT and EDIT MACROS. SC28-1312-04
in the back is a routine called ALLMBRS. (under sample edit macros).

this is the control logic needed to access a pds directory. you will need to add a CASE or IF statement to only select members that qualify.

the code is there (with explanations).

you will of course have to create your own edit macro to be invoked as an Initial Macro.
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 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
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top