View previous topic :: View next topic
|
Author |
Message |
Steve Ironmonger
New User
Joined: 19 Oct 2015 Posts: 15 Location: UK
|
|
|
|
I've got a 14 digit number and I want to convert it to hex :-
10101300193100
and I want to convert it so the hex value looks like this then when I turn hex on file edit :-
1110130
0030910
It's an account number so it's always a positive number
My dfsort knowledge is a bit rusty and the old brain matter isn't working quite as well as it once did, I'm sure 12 months ago I could of done this in my sleep !
help would be greatly appreciated !
cheers
Steve |
|
Back to top |
|
|
Steve Ironmonger
New User
Joined: 19 Oct 2015 Posts: 15 Location: UK
|
|
|
|
I've tried OUTREC BUILD=(1,14,ZD,TO=PD)
but I get the following when I look turn hex on when I look at my output !
00030910
1110130C |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Well, it's a Binary Coded Decimal that you want. "Converting it to hex" is not a clear description.
You are going to have to multiply your ZD by 10, giving you the PD (one byte longer than needed for your final result) then ignore the right-most byte, |
|
Back to top |
|
|
Steve Ironmonger
New User
Joined: 19 Oct 2015 Posts: 15 Location: UK
|
|
|
|
Yeah, I thought as much....
And just remind me again how you do that. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Moved as not a JCL or VSAM question. |
|
Back to top |
|
|
RahulG31
Active User
Joined: 20 Dec 2014 Posts: 446 Location: USA
|
|
|
|
A little more explanation in this post
. |
|
Back to top |
|
|
|