 




<?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: CPYTOIMPF .txt file shows garbage on IFS when viewing on windows</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/cpytoimpf-txt-file-shows-garbage-on-ifs-when-viewing-on-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/cpytoimpf-txt-file-shows-garbage-on-ifs-when-viewing-on-windows/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 05:16:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpytoimpf-txt-file-shows-garbage-on-ifs-when-viewing-on-windows/#comment-108278</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 08 Jun 2012 19:08:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-108278</guid>
		<description><![CDATA[Minor added comment --

Technically, STMFCODPAG(*PCASCII) could help given the condition that the data that is in the source data file is already encoded as CCSID 1252 which is what *PCASCII ought to provide. If it&#039;s CCSID 1252 data stored as CCSID 65535, then it would still be CCSID data 1252 after the copy. The encoding wouldn&#039;t change.

Tom]]></description>
		<content:encoded><![CDATA[<p>Minor added comment &#8211;</p>
<p>Technically, STMFCODPAG(*PCASCII) could help given the condition that the data that is in the source data file is already encoded as CCSID 1252 which is what *PCASCII ought to provide. If it&#8217;s CCSID 1252 data stored as CCSID 65535, then it would still be CCSID data 1252 after the copy. The encoding wouldn&#8217;t change.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpytoimpf-txt-file-shows-garbage-on-ifs-when-viewing-on-windows/#comment-108144</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 08 Jun 2012 01:40:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-108144</guid>
		<description><![CDATA[&lt;i&gt;Have you tried &quot;STMFCODPAG(*PCASCII)&quot;???&lt;/i&gt;

STMFCODPAG(*PCASCII) will not make any difference. A streamfile code page is already specified, but it doesn&#039;t matter because source data file is defined as 65535. The data will not be translated because 65535 is not supposed to translate. The encoding doesn&#039;t translate to STMFCODPAG(285) and it doesn&#039;t translate to STMFCODPAG(*PCASCII).

65535 doesn&#039;t translate, by definition.

I&#039;m not sure wht the source data file was created as 65535; but since it was, the things to try first are (1) put the data into a file that has the appropriate CCSID for the data; and then copy that file into your IFS streamfile, and (2) specify the appropriate FROMCCSID() parameter value on the CPYTOIMPF command.

If those don&#039;t work, then we can try more things. But there is no reason to try anything else until we know if either of those will work.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>Have you tried &#8220;STMFCODPAG(*PCASCII)&#8221;???</i></p>
<p>STMFCODPAG(*PCASCII) will not make any difference. A streamfile code page is already specified, but it doesn&#8217;t matter because source data file is defined as 65535. The data will not be translated because 65535 is not supposed to translate. The encoding doesn&#8217;t translate to STMFCODPAG(285) and it doesn&#8217;t translate to STMFCODPAG(*PCASCII).</p>
<p>65535 doesn&#8217;t translate, by definition.</p>
<p>I&#8217;m not sure wht the source data file was created as 65535; but since it was, the things to try first are (1) put the data into a file that has the appropriate CCSID for the data; and then copy that file into your IFS streamfile, and (2) specify the appropriate FROMCCSID() parameter value on the CPYTOIMPF command.</p>
<p>If those don&#8217;t work, then we can try more things. But there is no reason to try anything else until we know if either of those will work.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satvik</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpytoimpf-txt-file-shows-garbage-on-ifs-when-viewing-on-windows/#comment-108090</link>
		<dc:creator>satvik</dc:creator>
		<pubDate>Wed, 06 Jun 2012 18:13:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-108090</guid>
		<description><![CDATA[Hi Tom,

The file PB has a mix of numneric and char fields and all the char fields only have CCSID 65535,as numeric fileds do not have any ccsid.
Both the files are externally described files with DDS defined.

Sanjay]]></description>
		<content:encoded><![CDATA[<p>Hi Tom,</p>
<p>The file PB has a mix of numneric and char fields and all the char fields only have CCSID 65535,as numeric fileds do not have any ccsid.<br />
Both the files are externally described files with DDS defined.</p>
<p>Sanjay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpytoimpf-txt-file-shows-garbage-on-ifs-when-viewing-on-windows/#comment-108071</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 06 Jun 2012 07:10:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-108071</guid>
		<description><![CDATA[...or does that mean it has some numeric fields; and it also has other character fields that have CCSID 65535?

Is this a &#039;program-described&#039; file that actually has just a single field? Substrings might represent &#039;numeric&#039; or &#039;character&#039; &quot;fields&quot; in that case.

Tom]]></description>
		<content:encoded><![CDATA[<p>&#8230;or does that mean it has some numeric fields; and it also has other character fields that have CCSID 65535?</p>
<p>Is this a &#8216;program-described&#8217; file that actually has just a single field? Substrings might represent &#8216;numeric&#8217; or &#8216;character&#8217; &#8220;fields&#8221; in that case.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpytoimpf-txt-file-shows-garbage-on-ifs-when-viewing-on-windows/#comment-108070</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 06 Jun 2012 07:06:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-108070</guid>
		<description><![CDATA[&lt;i&gt;...numeric + char fields with CCSID as 65535&lt;/i&gt;

Numeric fields don&#039;t have a CCSID.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;numeric + char fields with CCSID as 65535</i></p>
<p>Numeric fields don&#8217;t have a CCSID.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satvik</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpytoimpf-txt-file-shows-garbage-on-ifs-when-viewing-on-windows/#comment-108050</link>
		<dc:creator>satvik</dc:creator>
		<pubDate>Tue, 05 Jun 2012 17:19:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-108050</guid>
		<description><![CDATA[I don&#039;t know the problem lies in which file (BIN815PA or PB) , but I can confirm PA file has all the char fileds with CCSID for all as 285.

PB file has mix of numeric + char fields with  CCSID as 65535,and further we are mering both these files in one text file to view in IFS.]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t know the problem lies in which file (BIN815PA or PB) , but I can confirm PA file has all the char fileds with CCSID for all as 285.</p>
<p>PB file has mix of numeric + char fields with  CCSID as 65535,and further we are mering both these files in one text file to view in IFS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpytoimpf-txt-file-shows-garbage-on-ifs-when-viewing-on-windows/#comment-108028</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 05 Jun 2012 00:24:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-108028</guid>
		<description><![CDATA[&lt;i&gt;...the other file (BIN815PB) has CCSID as 65535...&lt;/i&gt;

That CCSID is used when you don&#039;t want the encoding to be translated. By definition, BIN815PB is a binary file.

When the bytes are copied into the IFS streamfile, they are not converted to code page 285.

If you need the encoding to be translated, put the data into a file that has the appropriate CCSID for the data; and then copy that file into your IFS streamfile. Or specify the appropriate FROMCCSID() parameter value on the CPYTOIMPF command.

You might get the appropriate CCSID by running RTVJOBA DFTCCSID() and using the value from that.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;the other file (BIN815PB) has CCSID as 65535&#8230;</i></p>
<p>That CCSID is used when you don&#8217;t want the encoding to be translated. By definition, BIN815PB is a binary file.</p>
<p>When the bytes are copied into the IFS streamfile, they are not converted to code page 285.</p>
<p>If you need the encoding to be translated, put the data into a file that has the appropriate CCSID for the data; and then copy that file into your IFS streamfile. Or specify the appropriate FROMCCSID() parameter value on the CPYTOIMPF command.</p>
<p>You might get the appropriate CCSID by running RTVJOBA DFTCCSID() and using the value from that.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigkat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpytoimpf-txt-file-shows-garbage-on-ifs-when-viewing-on-windows/#comment-108025</link>
		<dc:creator>bigkat</dc:creator>
		<pubDate>Mon, 04 Jun 2012 18:40:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-108025</guid>
		<description><![CDATA[are you having the issue with both files or just BIN815PB??]]></description>
		<content:encoded><![CDATA[<p>are you having the issue with both files or just BIN815PB??</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.013 seconds using memcached
Object Caching 367/368 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 07:08:16 -->