 




<?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: Line feed problems</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/line-feed-problems/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/line-feed-problems/</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/line-feed-problems/#comment-69791</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 31 Oct 2009 04:33:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-69791</guid>
		<description><![CDATA[If there are difficulties with figuring out ASCII v. EBCDIC character codes, just ignore them. Have the system do it for you.

First thing that should always be done is setting the QCCSID system value to a correct CCSID. Do not let it sit at 65535. Use CCSID 37 for normal U.S. English systems for example. The most likely CCSID to choose is the one that is shown as &#039;Default coded character set identifier&#039; for most interactive jobs on the system when you run the DSPJOB OPTION(*DFNA) command.

Assuming CCSID 37 --

Create the streamfile as CCSID 37. Give it an extension that you&#039;ll recognize, e.g., [myfile.ebcdic]. Hard to misunderstand that one. Write your text data, adding normal EBCDIC carriage-return and line-feed characters. Do everything as normal. Pay no attention to thoughts of ANSI/ASCII.

When the file is finished:
&lt;pre&gt;
CPY OBJ( &#039;/home/MyHomeDir/myfile.ebcdic&#039; )
       TOOBJ( myfile.txt )
       TOCCSID( *PCASCII )
       DTAFMT( *TEXT )
&lt;/pre&gt;
You can then delete myfile.ebcdic if you wish. The new myfile.txt has been created in the current directory as CCSID 1252, all prepared for Windows or almost anything else. Characters including end-of-line are nice and neatly converted.

Simple basic system configuration allows you to issue commands such as CPY and control the result through its parms.

Tell the system what to do with commands. Have the system do your work for you. That&#039;s what programmers do, isn&#039;t it?

Tom]]></description>
		<content:encoded><![CDATA[<p>If there are difficulties with figuring out ASCII v. EBCDIC character codes, just ignore them. Have the system do it for you.</p>
<p>First thing that should always be done is setting the QCCSID system value to a correct CCSID. Do not let it sit at 65535. Use CCSID 37 for normal U.S. English systems for example. The most likely CCSID to choose is the one that is shown as &#8216;Default coded character set identifier&#8217; for most interactive jobs on the system when you run the DSPJOB OPTION(*DFNA) command.</p>
<p>Assuming CCSID 37 &#8211;</p>
<p>Create the streamfile as CCSID 37. Give it an extension that you&#8217;ll recognize, e.g., [myfile.ebcdic]. Hard to misunderstand that one. Write your text data, adding normal EBCDIC carriage-return and line-feed characters. Do everything as normal. Pay no attention to thoughts of ANSI/ASCII.</p>
<p>When the file is finished:</p>
<pre>
CPY OBJ( '/home/MyHomeDir/myfile.ebcdic' )
       TOOBJ( myfile.txt )
       TOCCSID( *PCASCII )
       DTAFMT( *TEXT )
</pre>
<p>You can then delete myfile.ebcdic if you wish. The new myfile.txt has been created in the current directory as CCSID 1252, all prepared for Windows or almost anything else. Characters including end-of-line are nice and neatly converted.</p>
<p>Simple basic system configuration allows you to issue commands such as CPY and control the result through its parms.</p>
<p>Tell the system what to do with commands. Have the system do your work for you. That&#8217;s what programmers do, isn&#8217;t it?</p>
<p>Tom</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 3/10 queries in 0.033 seconds using memcached
Object Caching 267/273 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 08:12:17 -->