 




<?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: Copy Stream File</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/</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: bvining</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/#comment-51201</link>
		<dc:creator>bvining</dc:creator>
		<pubDate>Mon, 21 Jan 2008 15:26:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-51201</guid>
		<description><![CDATA[Most machines I&#039;m aware of (certainly more than the AS/400, iSeries, System i, etc) would expect the conventional *CR, *LF, *CRLF, and/or *LFCR delimiter.  I suspect that there are applications on those other systems though that also directly support the EDI formatting.  Such EDI applications also exist on the System i (or at least I&#039;ve seen advertising to suggest that -- I&#039;ve never used one).  In our case we&#039;re trying to use a general purpose i5/OS command rather than an EDI aware command.

I will say though that allowing a delimiter character to be specified with a stream file (like how is done with a database file) would seem like a very reasonable enhancement to the system.  IBM provides &lt;a href=&quot;http://www-912.ibm.com/s_dir/slkbase.NSF/1ac66549a21402188625680b0002037e/a280079bd322cfc686256ef3006d5604?OpenDocument&quot;&gt;this link&lt;/a&gt; to allow users to make such requests.  I would certainly encourage you to use it :-)

Bruce Vining
&lt;a href=&quot;http://www.brucevining.com/&quot;&gt;http://www.brucevining.com/&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>Most machines I&#8217;m aware of (certainly more than the AS/400, iSeries, System i, etc) would expect the conventional *CR, *LF, *CRLF, and/or *LFCR delimiter.  I suspect that there are applications on those other systems though that also directly support the EDI formatting.  Such EDI applications also exist on the System i (or at least I&#8217;ve seen advertising to suggest that &#8212; I&#8217;ve never used one).  In our case we&#8217;re trying to use a general purpose i5/OS command rather than an EDI aware command.</p>
<p>I will say though that allowing a delimiter character to be specified with a stream file (like how is done with a database file) would seem like a very reasonable enhancement to the system.  IBM provides <a href="http://www-912.ibm.com/s_dir/slkbase.NSF/1ac66549a21402188625680b0002037e/a280079bd322cfc686256ef3006d5604?OpenDocument">this link</a> to allow users to make such requests.  I would certainly encourage you to use it <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Bruce Vining<br />
<a href="http://www.brucevining.com/">http://www.brucevining.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doddski</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/#comment-51181</link>
		<dc:creator>doddski</dc:creator>
		<pubDate>Sat, 19 Jan 2008 07:38:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-51181</guid>
		<description><![CDATA[Thanks again Bruce.  I guess I just wanted reassurance that I wasn&#039;t missing something.  One guess for the tilde would be that you can actually see it, i.e. in the documentation, although I suppose they could have said the tilde was representing a CR.  Or maybe it doesn&#039;t matter to machines other than the iSeries.  It isn&#039;t a small sector that requires this, but the entire healthcare industry in the US:]]></description>
		<content:encoded><![CDATA[<p>Thanks again Bruce.  I guess I just wanted reassurance that I wasn&#8217;t missing something.  One guess for the tilde would be that you can actually see it, i.e. in the documentation, although I suppose they could have said the tilde was representing a CR.  Or maybe it doesn&#8217;t matter to machines other than the iSeries.  It isn&#8217;t a small sector that requires this, but the entire healthcare industry in the US:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bvining</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/#comment-51174</link>
		<dc:creator>bvining</dc:creator>
		<pubDate>Fri, 18 Jan 2008 14:34:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-51174</guid>
		<description><![CDATA[I am not aware of any solution to this other than using the translate function or writing your own application to provide the tilde support.  Both the error message and the help text for CPYFRMIMPF are pretty specific: 

&quot; If the FROMFILE parameter is specified, valid values are *EOR or a character value.  If the FROMSTMF parameter is specified, valid values are  *CR, *CRLF, *LF, *LFCR or *ALL.&quot; 

Your input is a stream file, so the use of a character value such as the tilde is not supported by the command (at least not through V5R4).  I&#039;m sure there is some reason for why EDI implemented a standard based on the tilde rather than the more conventional values of CR, CRLF, LF, and/or LFCR; but I certainly don&#039;t have a clue as to what that reason might be.

Bruce Vining
&lt;a href=&quot;http://www.brucevining.com/&quot;&gt;http://www.brucevining.com/&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>I am not aware of any solution to this other than using the translate function or writing your own application to provide the tilde support.  Both the error message and the help text for CPYFRMIMPF are pretty specific: </p>
<p>&#8221; If the FROMFILE parameter is specified, valid values are *EOR or a character value.  If the FROMSTMF parameter is specified, valid values are  *CR, *CRLF, *LF, *LFCR or *ALL.&#8221; </p>
<p>Your input is a stream file, so the use of a character value such as the tilde is not supported by the command (at least not through V5R4).  I&#8217;m sure there is some reason for why EDI implemented a standard based on the tilde rather than the more conventional values of CR, CRLF, LF, and/or LFCR; but I certainly don&#8217;t have a clue as to what that reason might be.</p>
<p>Bruce Vining<br />
<a href="http://www.brucevining.com/">http://www.brucevining.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doddski</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/#comment-51166</link>
		<dc:creator>doddski</dc:creator>
		<pubDate>Fri, 18 Jan 2008 04:56:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-51166</guid>
		<description><![CDATA[Hi, Yes the translation solution does work and I am using it.  But as I said in my second posting, I am surprised that it is necessary as I thought the iSeries would have a native command.  Cwc said that yes the iseries does, cpyfrmimpf or cpyfrmstmf.  My reply that I have tried both of these commands was in response to Cwc and neither of these work as per the error message.  I too thought it should be as simple as Cwc said, but it doesn&#039;t appear to be.  Having said that it is not like your (Bruce) solution is highly complicated, I am just interested if there is another solution.  The translation one is up and running.  But if there is another solution I am interested.  Someone else has also told me the cpyfrmimpf and cpyfrmstmf commands should work but that error message is quite explicit.]]></description>
		<content:encoded><![CDATA[<p>Hi, Yes the translation solution does work and I am using it.  But as I said in my second posting, I am surprised that it is necessary as I thought the iSeries would have a native command.  Cwc said that yes the iseries does, cpyfrmimpf or cpyfrmstmf.  My reply that I have tried both of these commands was in response to Cwc and neither of these work as per the error message.  I too thought it should be as simple as Cwc said, but it doesn&#8217;t appear to be.  Having said that it is not like your (Bruce) solution is highly complicated, I am just interested if there is another solution.  The translation one is up and running.  But if there is another solution I am interested.  Someone else has also told me the cpyfrmimpf and cpyfrmstmf commands should work but that error message is quite explicit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bvining</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/#comment-51157</link>
		<dc:creator>bvining</dc:creator>
		<pubDate>Thu, 17 Jan 2008 16:10:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-51157</guid>
		<description><![CDATA[Perhaps I misunderstood this discussion sequence.  Your first response was &quot;This works great.&quot; and I assumed your second response &quot;I have tried both commands...&quot; was in response to Cwc puzzlement and not that you still had a problem.  Isn&#039;t the translate solution converting your tildes to line feeds?

Bruce]]></description>
		<content:encoded><![CDATA[<p>Perhaps I misunderstood this discussion sequence.  Your first response was &#8220;This works great.&#8221; and I assumed your second response &#8220;I have tried both commands&#8230;&#8221; was in response to Cwc puzzlement and not that you still had a problem.  Isn&#8217;t the translate solution converting your tildes to line feeds?</p>
<p>Bruce</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doddski</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/#comment-51141</link>
		<dc:creator>doddski</dc:creator>
		<pubDate>Thu, 17 Jan 2008 09:05:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-51141</guid>
		<description><![CDATA[No more suggestions?]]></description>
		<content:encoded><![CDATA[<p>No more suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doddski</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/#comment-51079</link>
		<dc:creator>doddski</dc:creator>
		<pubDate>Wed, 09 Jan 2008 19:32:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-51079</guid>
		<description><![CDATA[I have tried both commands and have found no combination that works.  When I use CPYFRMIMPF with anything other than the *CR, *LF, or combination I get the error message below.  It is a stream file I am trying to copy and this message does say I need to use *CR, *CRLF, *LF, LFCR.

The copy did not complete for reason code 11.                          

  11 - The RCDDLM parameter for a stream file can only be *CR, *CRLF, *LF,

or *LFCR and for a data base file the RCDDLM parameter can be *EOR or a   

valid value.]]></description>
		<content:encoded><![CDATA[<p>I have tried both commands and have found no combination that works.  When I use CPYFRMIMPF with anything other than the *CR, *LF, or combination I get the error message below.  It is a stream file I am trying to copy and this message does say I need to use *CR, *CRLF, *LF, LFCR.</p>
<p>The copy did not complete for reason code 11.                          </p>
<p>  11 &#8211; The RCDDLM parameter for a stream file can only be *CR, *CRLF, *LF,</p>
<p>or *LFCR and for a data base file the RCDDLM parameter can be *EOR or a   </p>
<p>valid value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cwc</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/#comment-51073</link>
		<dc:creator>cwc</dc:creator>
		<pubDate>Wed, 09 Jan 2008 17:53:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-51073</guid>
		<description><![CDATA[&quot;I am still puzzled that it is necessary to do this as I would have thought the iseries would have been able to cope with delimiters in a string file other than carriage returns&quot;  

Yes, the System i/iSeries can handle it (note:  I&#039;m not an IBM spokesperson and don&#039;t even play one on TV).  

CPYFRMIMPF, Copy From Import File, is the answer (along with its counterpart, CPYTOIMPF).  These commands are quite versatile, and I can nearly always achieve what I need using them.  They can also copy files between the IFS.  

In the RCDDLM parameter, you can specify *CR, *LF, *CRLF, *LFCR, or any specific character.  So, you should be able to specify the tilde to make that work.  

You may also want to check the CPYFRMSTMF, Copy From Stream File, and CPYTOSTMF, Copy To Stream File, commands, although I have not used these as often, since the import file commands usually get it done for me.]]></description>
		<content:encoded><![CDATA[<p>&#8220;I am still puzzled that it is necessary to do this as I would have thought the iseries would have been able to cope with delimiters in a string file other than carriage returns&#8221;  </p>
<p>Yes, the System i/iSeries can handle it (note:  I&#8217;m not an IBM spokesperson and don&#8217;t even play one on TV).  </p>
<p>CPYFRMIMPF, Copy From Import File, is the answer (along with its counterpart, CPYTOIMPF).  These commands are quite versatile, and I can nearly always achieve what I need using them.  They can also copy files between the IFS.  </p>
<p>In the RCDDLM parameter, you can specify *CR, *LF, *CRLF, *LFCR, or any specific character.  So, you should be able to specify the tilde to make that work.  </p>
<p>You may also want to check the CPYFRMSTMF, Copy From Stream File, and CPYTOSTMF, Copy To Stream File, commands, although I have not used these as often, since the import file commands usually get it done for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doddski</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-stream-file/#comment-51069</link>
		<dc:creator>doddski</dc:creator>
		<pubDate>Wed, 09 Jan 2008 11:35:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-51069</guid>
		<description><![CDATA[Hi Bruce,
Thank you very much.  This works great.  The physcial file I am traing to copy to actually has only a single field of length 1024.  I am still puzzled that it is necessary to do this as I would have thought the iseries would have been able to cope with delimiters in a string file other than carriage returns.  The tilde is part of American EDI HIPAA standards.  Anyway, thanks again.  I&#039;ve been surfing for a few days now trying to find a solution.  
Kathleen]]></description>
		<content:encoded><![CDATA[<p>Hi Bruce,<br />
Thank you very much.  This works great.  The physcial file I am traing to copy to actually has only a single field of length 1024.  I am still puzzled that it is necessary to do this as I would have thought the iseries would have been able to cope with delimiters in a string file other than carriage returns.  The tilde is part of American EDI HIPAA standards.  Anyway, thanks again.  I&#8217;ve been surfing for a few days now trying to find a solution.<br />
Kathleen</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.036 seconds using memcached
Object Caching 383/389 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 06:44:34 -->