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
 

 

Find and Replace in DFSORT/ICETOOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Find and Replace in DFSORT/ICETOOL
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: 2150
Location: At my coffee table

PostPosted: Fri Apr 03, 2009 8:49 pm    Post subject:
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 Moderator


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

PostPosted: Fri Apr 03, 2009 9:20 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Using ICETOOL, how we can seperate th... bshkris SYNCSORT 5 Tue May 09, 2017 8:33 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am


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