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

command reqd for string replacement


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jaiananth

New User


Joined: 26 Apr 2006
Posts: 6

PostPosted: Thu May 04, 2006 4:54 pm
Reply with quote

hi all,
i want to change some n occurences of string1 in a PDS member to string2.One option is to use F ALL 'string1' and manually change it to string2. Is there a single replace command?
Back to top
View user's profile Send private message
sri.mainframes

New User


Joined: 16 Feb 2006
Posts: 29
Location: MUMBAI

PostPosted: Thu May 04, 2006 5:13 pm
Reply with quote

Hi Anath,

here is the command

C ALL 'string1' TO 'string2'

If it works fine else try the same by removing TO in the above command

Thanks
SRI.PRINCE
Back to top
View user's profile Send private message
kousalya26

New User


Joined: 06 Jul 2005
Posts: 21
Location: chennai

PostPosted: Thu May 04, 2006 5:16 pm
Reply with quote

Hi Jaianath,

You can use the RCHANGE command for this.
Code:
C ALL "string1" "string2"


Thanks & Regards,
kousalya
Back to top
View user's profile Send private message
eric_zhang

New User


Joined: 17 Apr 2006
Posts: 2
Location: Shanghai,China

PostPosted: Mon May 22, 2006 1:22 pm
Reply with quote

bu using file aid option 3.6(utilities=>search/update), you can do more powerful changing functions
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
Search our Forums:

Back to Top