View previous topic :: View next topic
|
Author |
Message |
rally
New User
Joined: 28 Jul 2005 Posts: 37
|
|
|
|
Hi,
I have a file need upload from PC to Mainframe.
There is a field with compress decimal format.
in MainFrame,
It looks like
TLR..%
hex display
EDD016
33 907C
The 176 is the number value.
Is anybody what should use in PC with ASCII code for the compress field.
I found for normal character, the hex value for ASCII & EBCD is different
for example:
EBCD code CHAR ASCII code
X'30' - 0 - X'F0'
X'40' - SPACE - X'20'
X'C1' - A - X'41'
Thanks. |
|
Back to top |
|
|
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
|
|
A field with the value of hex'00176C' sure looks like a packed decimal field to me. You're going to have to unpack it first into a decimal field before uploading the file. |
|
Back to top |
|
|
rally
New User
Joined: 28 Jul 2005 Posts: 37
|
|
|
|
Hi Prandip,
You may misunderstand my mean.
Yes, the value of hex'00176C' is a packed deicmal field in mainframe, this is the final result after upload the file from PC to mainframe/ZOS,
I want to know how to code it in PC use ASCII in order to achieve
the objection.
Thanks. |
|
Back to top |
|
|
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
|
|
On my system, it's a hex '001A25' in ASCII. |
|
Back to top |
|
|
rally
New User
Joined: 28 Jul 2005 Posts: 37
|
|
|
|
Hi Prandip,
Thanks.
do you know the related rules?
for example, I want to input the packed decimal x'00168C',
how to populate the correct ASCII value. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Rally,
What does this field represent on the PC? That is, what is the field used for? |
|
Back to top |
|
|
|