<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: SSIS &#8211; Working with cobol zoned (signed) decimals</title>
	<atom:link href="http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/</link>
	<description>Random thoughts and experiences with SSIS, by Phil Brammer</description>
	<lastBuildDate>Wed, 25 Jan 2012 10:27:44 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Cliff</title>
		<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/comment-page-1/#comment-1880</link>
		<dc:creator>Cliff</dc:creator>
		<pubDate>Wed, 16 Sep 2009 18:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/#comment-1880</guid>
		<description>Jim (or anyone else having this issue),
Create a view with the SQL statement and it should work in 2008.</description>
		<content:encoded><![CDATA[<p>Jim (or anyone else having this issue),<br />
Create a view with the SQL statement and it should work in 2008.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/comment-page-1/#comment-1210</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 23 Dec 2008 08:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/#comment-1210</guid>
		<description>Doesn&#039;t seem to work in SSIS in 2008. When I try to use the select statement for the lookup table, it complains &quot;The lookup transformation reference metadata contains too few columns.&quot; 

Any ideas? Has anyone tried this approach on SQL 2008?

thanks</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t seem to work in SSIS in 2008. When I try to use the select statement for the lookup table, it complains &#8220;The lookup transformation reference metadata contains too few columns.&#8221; </p>
<p>Any ideas? Has anyone tried this approach on SQL 2008?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Coffey</title>
		<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/comment-page-1/#comment-534</link>
		<dc:creator>Mike Coffey</dc:creator>
		<pubDate>Mon, 28 Jul 2008 22:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/#comment-534</guid>
		<description>Know what, I think I found the answer here:

http://www.simotime.com/datazd01.htm</description>
		<content:encoded><![CDATA[<p>Know what, I think I found the answer here:</p>
<p><a href="http://www.simotime.com/datazd01.htm" rel="nofollow">http://www.simotime.com/datazd01.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Coffey</title>
		<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/comment-page-1/#comment-533</link>
		<dc:creator>Mike Coffey</dc:creator>
		<pubDate>Mon, 28 Jul 2008 22:18:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/#comment-533</guid>
		<description>Phil:

Figured I&#039;d ask here rather than on the forum.

In the data file I&#039;m dealing with, the last character isn&#039;t showing up as a brace or anything in your decode table.  I&#039;m seeing a lower-case q or lower-case w or something similar.  Is there a way to break that last character out into its hex components so I can see what I&#039;m dealing with?</description>
		<content:encoded><![CDATA[<p>Phil:</p>
<p>Figured I&#8217;d ask here rather than on the forum.</p>
<p>In the data file I&#8217;m dealing with, the last character isn&#8217;t showing up as a brace or anything in your decode table.  I&#8217;m seeing a lower-case q or lower-case w or something similar.  Is there a way to break that last character out into its hex components so I can see what I&#8217;m dealing with?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Brammer</title>
		<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/comment-page-1/#comment-449</link>
		<dc:creator>Phil Brammer</dc:creator>
		<pubDate>Tue, 27 Nov 2007 21:20:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/#comment-449</guid>
		<description>Javier,
You are talking about packed decimals, which this article does not touch on.  For packed decimals, look at the UnpackDecimal component from Microsoft: http://www.microsoft.com/downloads/details.aspx?familyid=0e4bba52-cc52-4d89-8590-cda297ff7fbd&amp;displaylang=en</description>
		<content:encoded><![CDATA[<p>Javier,<br />
You are talking about packed decimals, which this article does not touch on.  For packed decimals, look at the UnpackDecimal component from Microsoft: <a href="http://www.microsoft.com/downloads/details.aspx?familyid=0e4bba52-cc52-4d89-8590-cda297ff7fbd&#038;displaylang=en" rel="nofollow">http://www.microsoft.com/downloads/details.aspx?familyid=0e4bba52-cc52-4d89-8590-cda297ff7fbd&#038;displaylang=en</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier</title>
		<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/comment-page-1/#comment-446</link>
		<dc:creator>Javier</dc:creator>
		<pubDate>Mon, 26 Nov 2007 11:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/#comment-446</guid>
		<description>Hi
Regarding the comment of Phil Brammer (4) about signed decimals in comp-3.
Is there a way to manage these bytes with a data flow transformation?
How can I extract a number if it is with the sign?, like 
01 2C -&gt; 12
Many Thanks</description>
		<content:encoded><![CDATA[<p>Hi<br />
Regarding the comment of Phil Brammer (4) about signed decimals in comp-3.<br />
Is there a way to manage these bytes with a data flow transformation?<br />
How can I extract a number if it is with the sign?, like<br />
01 2C -&gt; 12<br />
Many Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey</title>
		<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/comment-page-1/#comment-162</link>
		<dc:creator>Andrey</dc:creator>
		<pubDate>Fri, 29 Jun 2007 08:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/#comment-162</guid>
		<description>Thanks for this article.
I have a data file with copybook...
The Data File(ASCII format) has records with different length...
How can I parse my datafile?( records have fields with COMP-3 type). If records have same length, than I set USEBINARYFORMAT to True (Flat File Source) and use UnPackDecimal component...
Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for this article.<br />
I have a data file with copybook&#8230;<br />
The Data File(ASCII format) has records with different length&#8230;<br />
How can I parse my datafile?( records have fields with COMP-3 type). If records have same length, than I set USEBINARYFORMAT to True (Flat File Source) and use UnPackDecimal component&#8230;<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Brammer</title>
		<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/comment-page-1/#comment-161</link>
		<dc:creator>Phil Brammer</dc:creator>
		<pubDate>Thu, 28 Jun 2007 20:02:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/#comment-161</guid>
		<description>Comp-3 numbers, I believe are always &quot;signed.&quot;  That is, and you&#039;ll have to test on your own, the last byte of data in hex will either end in &quot;C&quot; or &quot;F&quot;, I believe, if the number is &quot;unsigned.&quot;

Regardless, the challenge here is that the data is in hex, but not really.  So you&#039;ll have to convert each byte into an appropriate number.  That is, if you have a value of +800 stored in a COMP-3, it will be shown as 80 0C in hex.  In decimal, that 80 converted to ASCII is some goofy control character.  So some work is needed, for sure.</description>
		<content:encoded><![CDATA[<p>Comp-3 numbers, I believe are always &#8220;signed.&#8221;  That is, and you&#8217;ll have to test on your own, the last byte of data in hex will either end in &#8220;C&#8221; or &#8220;F&#8221;, I believe, if the number is &#8220;unsigned.&#8221;</p>
<p>Regardless, the challenge here is that the data is in hex, but not really.  So you&#8217;ll have to convert each byte into an appropriate number.  That is, if you have a value of +800 stored in a COMP-3, it will be shown as 80 0C in hex.  In decimal, that 80 converted to ASCII is some goofy control character.  So some work is needed, for sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Cikanek</title>
		<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/comment-page-1/#comment-160</link>
		<dc:creator>William Cikanek</dc:creator>
		<pubDate>Thu, 28 Jun 2007 17:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/#comment-160</guid>
		<description>This works for the zoned decimal, but what about comp-3. I have a rec type PIC S(9)5 comp-3.  The values coming through are like 1C, 5C, 6C, 0C. In files like these are the negatives 1D, 5D, 6D, 0D? Also for an unsigned PIC 9(5) comp-3, what will the incoming data look like? Is there a value in the last nibble?</description>
		<content:encoded><![CDATA[<p>This works for the zoned decimal, but what about comp-3. I have a rec type PIC S(9)5 comp-3.  The values coming through are like 1C, 5C, 6C, 0C. In files like these are the negatives 1D, 5D, 6D, 0D? Also for an unsigned PIC 9(5) comp-3, what will the incoming data look like? Is there a value in the last nibble?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oron</title>
		<link>http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/comment-page-1/#comment-26</link>
		<dc:creator>Oron</dc:creator>
		<pubDate>Wed, 09 May 2007 13:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ssistalk.com/2007/03/14/ssis-working-with-cobol-zoned-signed-decimals/#comment-26</guid>
		<description>Can you plz put the project that transfer the txt to sql with the rules (converting cobol to sql)</description>
		<content:encoded><![CDATA[<p>Can you plz put the project that transfer the txt to sql with the rules (converting cobol to sql)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

