Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 16th, 2006, 04:04 PM
nattylife nattylife is offline
Closet coder
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2005
Location: Plantation, FL <---south florida
Posts: 1,431 nattylife User rank is First Lieutenant (10000 - 20000 Reputation Level)nattylife User rank is First Lieutenant (10000 - 20000 Reputation Level)nattylife User rank is First Lieutenant (10000 - 20000 Reputation Level)nattylife User rank is First Lieutenant (10000 - 20000 Reputation Level)nattylife User rank is First Lieutenant (10000 - 20000 Reputation Level)nattylife User rank is First Lieutenant (10000 - 20000 Reputation Level)nattylife User rank is First Lieutenant (10000 - 20000 Reputation Level)nattylife User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 3 Days 13 h 33 m 57 sec
Reputation Power: 152
Send a message via AIM to nattylife
Questions on conversion of EBCDIC to ASCII

greets
i am sending a message to an AS400 system. the system will repond in turn with a message that includes 2 sections, header info (for message validation) and the actual response info. in the reponse info i am expecting back 2 bytes of data. these 2 bytes represent 16 items. each bit refers to whether an item is a special reprice item or not. they are representing the bits from high to low (so item 1 is bit 15, item 15 is bit 0)

the header info sent back every time is correct.
we are noticing a stark problem when reading these 2 bytes from the response section. for example we send up a request to check 1 item, we expect back a hex
0x8000=1000 0000 0000 0000
but instead recieve ASCII
0xF800=1111 1000 0000 0000
which in EBCIDIC is
0xEE00=1110 1110 0000 0000

some combination of items do come back with the right bit values set, but there are consistent inconsistencies that keep coming up. the only thing we could come to terms with was that hex 0x8000 in EBCDIC does not have an ASCII equivalent and so is somehow being casted to another value through some process not known to us. im just wondering if any1 out there has seen something similar or knows if this is true. when receiving data from an AS400 (or any other EBCDIC machine), to a PC, if there is no ASCII equivalent, there is some algorithm or default used instead?
__________________

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Questions on conversion of EBCDIC to ASCII

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap