<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AS400 Tutorials &#187; EBCDIC</title>
	<atom:link href="http://www.as400tutorials.com/tag/ebcdic/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as400tutorials.com</link>
	<description></description>
	<lastBuildDate>Fri, 09 Jul 2010 20:55:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AS400 Packed Data Conversion</title>
		<link>http://www.as400tutorials.com/as400-packed-data-conversion/</link>
		<comments>http://www.as400tutorials.com/as400-packed-data-conversion/#comments</comments>
		<pubDate>Tue, 26 May 2009 16:11:53 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[AS400]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[EBCDIC]]></category>

		<guid isPermaLink="false">http://www.as400tutorials.com/?p=39</guid>
		<description><![CDATA[Why Your AS/400 Data Looks Like Guacamole&#8230;
Sometimes when people transfer data from an AS/400 to Excel or another program they run into a some data that looks a bit like guacamole, this tends to happen when transferring numerical data.
Without getting into a lot of boring technical details &#8220;packed data fields&#8221; are the default standard for storing [...]]]></description>
			<content:encoded><![CDATA[<h2><span style="color: #000080;">Why Your AS/400 Data Looks Like Guacamole&#8230;</span></h2>
<p>Sometimes when people transfer data from an AS/400 to Excel or another program they run into a some data that looks a bit like guacamole, this tends to happen when transferring numerical data.</p>
<p>Without getting into a lot of boring technical details &#8220;packed data fields&#8221; are the default standard for storing numerical data on AS/400s in a format known as EBCDIC. PC based computers use ASCII and so they don&#8217;t always translate across when transferred in there native formats.</p>
<p>The problem is when you bring that data over to the PC world it doesn&#8217;t always translate correctly to ASCII&#8230; now this only tends to occur when using the data transfer program built into Client Access and not when using an ODBC connection or other program which does the data translation for you behind the scenes.</p>
<p>The symptom is that when you download the data you will see letters in fields where there should be numbers from 0 through 9. To correct you simply translate these letters or characters over to the corresponding number as follows:</p>
<p>0 = &#8216;}&#8217;<br />
1 = &#8216;J&#8217;<br />
2 = &#8216;K&#8217;<br />
3 = &#8216;L&#8217;<br />
4 = &#8216;M&#8217;<br />
5 = &#8216;N&#8217;<br />
6 = &#8216;O&#8217;<br />
7 = &#8216;P&#8217;<br />
8 = &#8216;Q&#8217;<br />
9 = &#8216;R&#8217;</p>
<p>Now thats about as easy as duck soup&#8230; but it sure can be a pain. Ultimately to &#8220;cure&#8221; this issue you will want to get at the data another way and not use the AS/400 Data Transfer portion of Client Access for this specific table, instead use ODBC and SQL query, import it as part of a printable report, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.as400tutorials.com/as400-packed-data-conversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
