View previous topic :: View next topic |
Author |
Message |
bobi Beginner
Joined: 15 Jun 2005 Posts: 12 Topics: 7
|
Posted: Mon Jul 18, 2005 11:10 am Post subject: EBCDIC to decimal |
|
|
Hi
i have some hexa value
"2020 2053 2020 2053 CAA1 000B 2020 2020"
its Ascii and EBCDIC format is " S S.... " and ".........~......"
(not sure which is ascii and which is EBCDIC Format.
can any one tell me what is the decimal value of this. and how to conver it to decimal.
because i have a couple of hex values like this. it would be more appriciated if i get the job of conversion.
thanks
bobi |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Mon Jul 18, 2005 2:36 pm Post subject: |
|
|
It depends how it was stored. It could be straight binary, packed decimal, ibm floating point, ieee floating point, half words, full words, zoned decimal, etc, etc. You can't know how to do the conversion without knowing how the data is mapped out. A bunch of 20s makes me think that this file was transfered in binary from an ASCII machine which adds the complexity of little vs big endian architectures too. |
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Tue Jul 19, 2005 8:16 am Post subject: |
|
|
Um, semigeezer,
I have often wondered about the Endianness during data transfer. Since, the network transmission is governed by Network Byte Order (NBO) which is Big Endian, would it matter to a recepient on the mainframe what the sender's Endianness was? _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Tue Jul 19, 2005 4:58 pm Post subject: |
|
|
I don't know, actually. I was thinking of cases where the data comes up in some other format, like a zip file or tar file or some user format or something and you couldn't really know how it got there. I think for a straight bin transfer it is probably not a problem. |
|
Back to top |
|
 |
|
|