 




<?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: RPGLE. cpytopcd</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/rpgle-cpytopcd/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-cpytopcd/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-cpytopcd/#comment-69469</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sun, 25 Oct 2009 22:56:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-69469</guid>
		<description><![CDATA[Well, it seems like a strange request since PC applications normally wouldn&#039;t care about trailing spaces. However, if the file doesn&#039;t contain anything but text characters, I&#039;d probably use TRNFMT(*NOTEXT).

I know that sounds contradictory, but *NOTEXT should avoid trailing-blank truncation. I&#039;m not clear on what the point of the character in position 80 is. I&#039;d first suspect that it&#039;s a placeholder -- an attempt to retain spaces. I&#039;d net think it was an identifying character that indicated what kind of record it was.

With *NOTEXT, though, you&#039;d possibly need a record length of 82 and you&#039;d have to put the CRLF characters into positions 81-82 yourself before copying.

What kind of data is going into the lines? Do you have a few sample lines from a valid version of the file you need to create?

Tom]]></description>
		<content:encoded><![CDATA[<p>Well, it seems like a strange request since PC applications normally wouldn&#8217;t care about trailing spaces. However, if the file doesn&#8217;t contain anything but text characters, I&#8217;d probably use TRNFMT(*NOTEXT).</p>
<p>I know that sounds contradictory, but *NOTEXT should avoid trailing-blank truncation. I&#8217;m not clear on what the point of the character in position 80 is. I&#8217;d first suspect that it&#8217;s a placeholder &#8212; an attempt to retain spaces. I&#8217;d net think it was an identifying character that indicated what kind of record it was.</p>
<p>With *NOTEXT, though, you&#8217;d possibly need a record length of 82 and you&#8217;d have to put the CRLF characters into positions 81-82 yourself before copying.</p>
<p>What kind of data is going into the lines? Do you have a few sample lines from a valid version of the file you need to create?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kasten</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-cpytopcd/#comment-69411</link>
		<dc:creator>kasten</dc:creator>
		<pubDate>Fri, 23 Oct 2009 09:52:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-69411</guid>
		<description><![CDATA[As you probably figured out I&#039;m fairly new at this. I&#039;m changing an existing program and it uses the cpytopcd command. The file I&#039;m writing to, using Except, contains one field(80). The file is to be used in another pc-system. All I have is a file layout. They need every record to be 80 char with space filling and CRLF. 
The cpytopcd command looks like this:
CPYOTOPCD FROMFILE (QQFILE) TOFLR(&#039;LE/INK&#039;) TODOC(FEKBSE.TST) REPLACE(*YES) TRNFMT(*TEXT)]]></description>
		<content:encoded><![CDATA[<p>As you probably figured out I&#8217;m fairly new at this. I&#8217;m changing an existing program and it uses the cpytopcd command. The file I&#8217;m writing to, using Except, contains one field(80). The file is to be used in another pc-system. All I have is a file layout. They need every record to be 80 char with space filling and CRLF.<br />
The cpytopcd command looks like this:<br />
CPYOTOPCD FROMFILE (QQFILE) TOFLR(&#8216;LE/INK&#8217;) TODOC(FEKBSE.TST) REPLACE(*YES) TRNFMT(*TEXT)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-cpytopcd/#comment-69393</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 23 Oct 2009 00:44:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-69393</guid>
		<description><![CDATA[&lt;i&gt;I have tried to create a file...&lt;/i&gt;

How? That is, what operation are you using to &#039;create&#039; a &#039;file&#039;? What kind of file are you trying to create? Where are you trying to create it? Why are you using CPYTOPCD? (Perhaps because someone told you to?)

What do you want to do with the file? How is it supposed to be accessed?

A &#039;file&#039; might be a database file, a &#039;flat&#039; file, a stream file, or potentially any one of a variety of other kinds of files. The structures are different between them.

CPYTOPCD is related to a few possible kinds of files. It can potentially create a kind of streamfile that is intended for mostly obsolete purposes.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>I have tried to create a file&#8230;</i></p>
<p>How? That is, what operation are you using to &#8216;create&#8217; a &#8216;file&#8217;? What kind of file are you trying to create? Where are you trying to create it? Why are you using CPYTOPCD? (Perhaps because someone told you to?)</p>
<p>What do you want to do with the file? How is it supposed to be accessed?</p>
<p>A &#8216;file&#8217; might be a database file, a &#8216;flat&#8217; file, a stream file, or potentially any one of a variety of other kinds of files. The structures are different between them.</p>
<p>CPYTOPCD is related to a few possible kinds of files. It can potentially create a kind of streamfile that is intended for mostly obsolete purposes.</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 6/9 queries in 0.086 seconds using memcached
Object Caching 296/299 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 11:00:20 -->