View previous topic :: View next topic
|
Author |
Message |
shr_amar Warnings : 2 Active User
Joined: 02 May 2005 Posts: 128 Location: UK
|
|
|
|
Hi
I am struggling to do this task and cannot found any example.
I have a 100 byte FB file and one of the feild of that file is coming in unreadble format. This feild is at position 70 and having value of b?
I want to convert this feild to readble format only and rest all data/feilds should remain as it is.
in hex b? is showing as 826.
0001237747757577577 00000001800 E1 2165165 N 0 5 b?E1737744588588585858585858858
Regards |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
Is this a 1 byte field at position 70?
X'82' = c'b' |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
Hex display of record would be nice as well. |
|
Back to top |
|
|
shr_amar Warnings : 2 Active User
Joined: 02 May 2005 Posts: 128 Location: UK
|
|
|
|
Hi Dave,
Thanks.
its a 2 byte starting at postion 70. Do you have any sample sort/jcl? |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
How about showing the record - as requested. Is this a binary or packed decimal field? Look up the manual if you cannot find the answer to a similar requirement in the forum. |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
C''b?' is X'826F' and unpacked is C'826'
Putting 3 bytes in place of 2 bytes is not possible. You'll have to place it somewhere else in your record.
Once you decide where, there should be plenty of examples for changing hex (packed) to char using sort in this forum. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2025 Location: USA
|
|
|
|
shr_amar wrote: |
Hi
I am struggling to do this task and cannot found any example.
I have a 100 byte FB file and one of the feild of that file is coming in unreadble format. This feild is at position 70 and having value of b?
I want to convert this feild to readble format only and rest all data/feilds should remain as it is.
in hex b? is showing as 826.
0001237747757577577 00000001800 E1 2165165 N 0 5 b?E1737744588588585858585858858
Regards |
1. There is no such thing as "100 byte FB file". Maybe, a dataset with 100-bytes FB records?
2. There is no such thing as "feild". Maybe, a field?
3. In order "to convert this feild to readble format" first of all you need to know the format of the source field. Otherwise it makes no sense at all - to convert unknown data to "readable" format...
4. "in hex b? is showing as 826" - what does this mean? What "in hex" stands for? Where it is showing? What tool you are using?
5. "I am struggling to do this task and cannot found any example." - before struggling to do any task it would be useful to understand the task itself. Otherwise it resembles breaking the brickwall with your elbow. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
Ask the Creator of the data set for the explanation of the value and seek for the copybook <if any>.
"?" however looks to me a null value derived from the DB2 database and "b" is by itself based on 2 bytes explanation given by you. |
|
Back to top |
|
|
|