Hi all,
I have a VB file. This file has Hexadecmial and character data. I want to do following operations on this.
IF 4th byte is equal to X'2303102122' (actually 8 byte as this is a VB file) AND 75th byte is equal to X'04' (actually 79th byte in the file) THEN
Change 75th byte to X'06' AND display X'2303102122' and X'06' in character format.
I know the syntax for find and replace is as follows
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
What you're calling hexadecimal data is actually binary data.
It isn't clear if you just want to display those two fields in hex without the rest of the fields or if you want to display all of the fields. You haven't really said where the character data is.
At any rate, you can use p,m,HEX to display binary data as hexadecimal data in character format.
For example, if you want to display the 5 bytes starting at 8 and the byte starting at 79 in hex with one space between them, you can use this DFSORT statement: