MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

EBCDIC to decimal

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
bobi
Beginner


Joined: 15 Jun 2005
Posts: 12
Topics: 7

PostPosted: Mon Jul 18, 2005 11:10 am    Post subject: EBCDIC to decimal Reply with quote

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
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Jul 18, 2005 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Tue Jul 19, 2005 8:16 am    Post subject: Reply with quote

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
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Jul 19, 2005 4:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group