Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I retrieve data from EBCDIC based machines, particularly IBM mainframes and AS/400s, sometimes I get what appears to be garbage. Why and how do I resolve the issue?

0
Posted

When I retrieve data from EBCDIC based machines, particularly IBM mainframes and AS/400s, sometimes I get what appears to be garbage. Why and how do I resolve the issue?

0

Location: http://www.jguru.com/faq/view.jsp?EID=92410 Created: Jun 30, 2000 Modified: 2000-07-01 18:42:04.364 Author: Joe Sam Shirah (http://www.jguru.com/guru/viewbio.jsp?EID=42100) Question originally posed by Joe Sam Shirah PREMIUM (http://www.jguru.com/guru/viewbio.jsp?EID=42100 These machines use CCSIDs ( Coded Character Set Identifiers ) for National Language Support. While in general, data will be converted sensibly for Java, under certain conditions data will be created, often inadvertently, with a CCSID of 65535. This code means “binary data, do not convert.” While the best answer is to get the data to a proper CCSID, this is not always possible and a good JDBC driver for these platforms will have a property like “convert binary” or “translate CCSID 65535 data.” Set this property and the garbage ( which is actually EBCDIC data being displayed on an ASCII machine, ) becomes good data.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123