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

Find and Replace in DFSORT/ICETOOL


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

New User


Joined: 04 Apr 2007
Posts: 17
Location: Chennai

PostPosted: Fri Apr 03, 2009 8:36 pm
Reply with quote

Hi All,
I saw some posts in this forum explaning how to find a particular occurance of a character and changing it's value to some other. But these examples are talking about chaganing character values. I have Hexadecimal data to change. These examples are not working for hexadecmial data. Can someone please give me the jcl for this.

My requirement is

I have a VB file. If the value at 4th byte is X'2303102122', and the value at 75th byte is X'04', change 75th byte to X'06'

Please hlep
thanks
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri Apr 03, 2009 8:49 pm
Reply with quote

Hex or character, it all works the same....
What posts did you see that do the characters? Post the URL.
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: Fri Apr 03, 2009 9:20 pm
Reply with quote

ganeshptrk,

It works fine if you use the correct control statements. I'd take an educated guess that you didn't account for the RDW in the first 4 bytes of the VB records, so you got the starting positions wrong. The "4th byte" would actually be position 8 (4+4) and the "75th byte" would actually be position 79 (75+4). These DFSORT control statements do what you asked for:

Code:

   OPTION COPY                                     
   INREC IFTHEN=(WHEN=(8,5,BI,EQ,X'2303102122',     
     AND,79,1,BI,EQ,X'04'),OVERLAY=(79:X'06'))     
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top