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

Replacing a hex character with a blank


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
scottgb

New User


Joined: 29 Mar 2006
Posts: 5

PostPosted: Wed Mar 29, 2006 12:05 am
Reply with quote

Is it possible in Dfsort to replace a hex character with a blank?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Mar 29, 2006 1:47 am
Reply with quote

Not sure what you mean. Do you mean you want to replace a particular hex character (e.g. X'00') anywhere in the record with a blank (X'40')? If so, you can use these DFSORT control statements to do that:

Code:

   OUTREC FIELDS=(1,m,TRAN=ALTSEQ)
   ALTSEQ CODE=(0040)


where m is the length of the record.

For more information on this, see this Smart DFSORT Trick:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst03.html#t08

If that's not what you want, then you need to explain in detail what you do want.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Merge files with a key and insert a b... DFSORT/ICETOOL 6
No new posts String has hex character need to conv... COBOL Programming 3
No new posts Output LREC based on specific character DFSORT/ICETOOL 22
No new posts Finding record and replacing with val... DFSORT/ICETOOL 3
Search our Forums:

Back to Top