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
 

 

Help for replacing a number

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    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

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
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: 8593
Location: Back in jolly old England

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
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
No new posts Sequence number add in SORT pshongal SYNCSORT 3 Fri Sep 02, 2016 3:32 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
No new posts GDG vsersion number change Raghu navaikulam JCL & VSAM 5 Fri May 27, 2016 4:49 pm
No new posts CPU time Vs Number of records Nileshkul JCL & VSAM 5 Mon May 09, 2016 4:05 pm
No new posts Syntax to check the first 4 digits of... kshirabdhi DFSORT/ICETOOL 10 Tue May 03, 2016 12:21 pm


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