Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #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,193 nattylife User rank is Second Lieutenant (5000 - 10000 Reputation Level)nattylife User rank is Second Lieutenant (5000 - 10000 Reputation Level)nattylife User rank is Second Lieutenant (5000 - 10000 Reputation Level)nattylife User rank is Second Lieutenant (5000 - 10000 Reputation Level)nattylife User rank is Second Lieutenant (5000 - 10000 Reputation Level)nattylife User rank is Second Lieutenant (5000 - 10000 Reputation Level)nattylife User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Weeks 7 h 39 m 23 sec
Reputation Power: 56
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


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway