MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Replace a string with another anywhere in a file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
amitthorat
Beginner


Joined: 22 Apr 2005
Posts: 1
Topics: 1
Location: Mumbai

PostPosted: Fri Apr 22, 2005 7:32 am    Post subject: Replace a string with another anywhere in a file Reply with quote

If we want to replace occurance of a character/string by another character/string provided that character/string occur anywhere in the the file.

Is it neccessary that for this type of operation file must be of fixed block or we can do this thing with variable block also. Confused
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Apr 22, 2005 7:45 am    Post subject: Reply with quote

amitthorat,

Please post Using meaningful topics. Don't use the Forum name for the topic. A more approriate title for your post "Replace a string with another anywhere in a file" instead of one word title "sort". I am editing the topic title.

Also please search before posting. The replacing of one character by another character has been discussed many times. You can replace the characters in both Fixed block and variable block files.

http://www.mvsforums.com/helpboards/viewtopic.php?t=3571&highlight=replace

http://www.mvsforums.com/helpboards/viewtopic.php?t=314&highlight=replace

http://www.mvsforums.com/helpboards/viewtopic.php?t=3311&highlight=replace

http://www.mvsforums.com/helpboards/viewtopic.php?t=1619&highlight=replace

http://www.mvsforums.com/helpboards/viewtopic.php?t=766&highlight=replace

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Thu Aug 07, 2008 4:13 pm    Post subject: Reply with quote

With z/OS DFSORT V1R5 PTF UK90013 (July, 2008), you can now use FINDREP to do this kind of thing quite easily.

For complete details on the new FINDREP function and the other new functions available with PTF UK90013, see:

www.ibm.com/systems/support/storage/software/sort/mvs/ugpf/
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group