<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; CPYFRMQRYF</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/as400/cpyfrmqryf/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 19:45:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>OPNQRYF &amp; CPYFRMQRYF error</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-cpyfrmqryf-error/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-cpyfrmqryf-error/#comments</comments>
		<pubDate>Tue, 16 Oct 2012 08:13:05 +0000</pubDate>
		<dc:creator>Archnav01</dc:creator>
				<category><![CDATA[CPYFRMQRYF]]></category>
		<category><![CDATA[OPNQRYF]]></category>
		<category><![CDATA[RPGLE]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-cpyfrmqryf-error/</guid>
		<description><![CDATA[New Discussion Post by WoodEngineer]]></description>
				<content:encoded><![CDATA[New Discussion Post by WoodEngineer]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-cpyfrmqryf-error/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>CPF2972</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpf2972/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/cpf2972/#comments</comments>
		<pubDate>Wed, 09 May 2012 07:32:47 +0000</pubDate>
		<dc:creator>Rje</dc:creator>
				<category><![CDATA[CPYFRMQRYF]]></category>
		<category><![CDATA[IBM]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, when i am using a the CPYFRMQRYF command am getting the error message error writing to member &#038;3 in file &#038;1(with the message ID CPF2972). Could you please advice as how i can overcome this?    ]]></description>
				<content:encoded><![CDATA[<p>Hi,<br/><br/> when i am using a the CPYFRMQRYF command am getting the error message error writing to member &#038;3 in file &#038;1(with the message ID CPF2972).<br/><br/> Could you please advice as how i can overcome this?<br/><br/>  <br/><br/>  <br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/cpf2972/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CL Code: Cpyfrmqryf ends because of error</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmqryf-ends-because-of-error/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmqryf-ends-because-of-error/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 15:18:53 +0000</pubDate>
		<dc:creator>Lordyork</dc:creator>
				<category><![CDATA[CL Commands]]></category>
		<category><![CDATA[CL Errors]]></category>
		<category><![CDATA[CPYFRMQRYF]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[My CL code works up until it gets to the Cpyfrmqryf then the program ends with an message stating &#8221; Copy command ended because of error&#8221; but not what error how can you fix it if you don&#8217;t know the error?]]></description>
				<content:encoded><![CDATA[<p>My CL code works up until it gets to the Cpyfrmqryf then the program ends with an message stating &#8221; Copy command ended because of error&#8221; but not what error how can you fix it if you don&#8217;t know the error?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmqryf-ends-because-of-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OPNQRYF</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-5/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-5/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 14:21:51 +0000</pubDate>
		<dc:creator>Khadar</dc:creator>
				<category><![CDATA[CL/400]]></category>
		<category><![CDATA[Copy from Query File]]></category>
		<category><![CDATA[CPYFRMQRYF]]></category>
		<category><![CDATA[Open Query File]]></category>
		<category><![CDATA[OPNQRYF]]></category>
		<category><![CDATA[Physical File]]></category>
		<category><![CDATA[RPG/400]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have 4-fileds on Display File like frdiv(zoned),todiv(zoned),frpr(char),topr(char) all the fields are of size 2 only. I am using a &#8220;OPNQRYF&#8221; to filter the records froma Physical file (pfdiv), it containes 1,25,000 records . Through this openqryf all the selected records I will copy to a file (pftemp) using &#8220;CPYFRMQRYF&#8221;. Then I will use the [...]]]></description>
				<content:encoded><![CDATA[<p>I have 4-fileds on Display File like frdiv(zoned),todiv(zoned),frpr(char),topr(char) all the fields are of size 2 only.<br />
I am using a &#8220;OPNQRYF&#8221; to filter the records froma Physical file (pfdiv), it containes 1,25,000 records .<br />
Through this openqryf all the selected records I will copy to a file (pftemp) using &#8220;CPYFRMQRYF&#8221;.<br />
Then I will use the pftemp file in the RPG/400 programme to disply on Subfile Screen.</p>
<p>I have written a CL-programme like this:</p>
<p>PGM<br />
DCLF FILENAME(DISPLAY-FILE)<br />
OVRDBF PFDIV(PHYSICAL-FILE)<br />
OPNQRYF QRYSLT(&#8216;(&#038;FDIV *GE &#038;FRDIV *AND &#038;FDIV *LE &#038;TODIV) *AND (&#038;FPR *GE &#038;FRPR *AND &#038;TPR *LE &#038;TOPR)&#8217;)<br />
CPYFRMQRYF FROMF(PFDIV) TO(PFTEMP)<br />
CALL PGM(RPG)<br />
CLOF PFDIV<br />
DLTOVR PFDIV<br />
ENDPGM</p>
<p>WHERE &#038;FDIV = FROM DIVISION<br />
&#038;TDIV = TO DIVISION<br />
&#038;FPR = FROM PROJECT<br />
&#038;TPR = TO PROJECT</p>
<p>I am entering values 10,50,A1,A9 respectively</p>
<p>10,50 means from 10(division) to 50</p>
<p>A1,A9 means from A1(Project) to A9</p>
<p>ALL THE ABOVE FIELDS FROM THE PHYSICAL-FILE (PFDIV)</p>
<p>Here , once I am running this programme the query is not working properly, it is showing an error ,</p>
<p>Please can anyone help me in this regards.</p>
<p>Thanks In Advance.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</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/20 queries in 0.021 seconds using memcached
Object Caching 515/572 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 20:17:11 -->