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 find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am


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