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

Help for replacing a number


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
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
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
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 11, 2008 3:46 pm
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: 8797
Location: Welsh Wales

PostPosted: Mon Feb 11, 2008 3:46 pm
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
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
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top