Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Help for replacing a number

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
ARUN.A.NAIR
Warnings : 1

New User


Joined: 07 Mar 2007
Posts: 12
Location: MAHARASHTRA

PostPosted: Mon Feb 11, 2008 3:40 pm    Post subject: Help for replacing a number
Reply with quote

My requirement is to search for a string in a PDS. If any member of the PDS has that string, then I need to modify another numeric field in the same row(need to convert it to '5' if that field is '4'). Can anyone help me regarding the same?
Back to top
View user's profile Send private message
References
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 3168
Location: italy

PostPosted: Mon Feb 11, 2008 3:46 pm    Post subject: Reply to: Rexx Help for replacing a number
Reply with quote

please post a sample line...
the before line
the after line
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3544
Location: Brussels once more ...

PostPosted: Mon Feb 11, 2008 3:46 pm    Post subject:
Reply with quote

Take a look at the ISPF Edit Macro manual.

That will tell you exactly how to do it.
Back to top
View user's profile Send private message
ARUN.A.NAIR
Warnings : 1

New User


Joined: 07 Mar 2007
Posts: 12
Location: MAHARASHTRA

PostPosted: Mon Feb 11, 2008 3:51 pm    Post subject: Reply to: Rexx Help for replacing a number
Reply with quote

Format of a member...

00001 NFS-DEW 4 30 45 9000
00002 CAPGEMIN 5 31 99 9128
00003 NFS-DEW 5 33 33 7892

Here I have to replace the bold '4' with '5' if 'NFS-DEW' is present(00001 record). In the 00003 record I do not need to replace as it is already '5'
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1