 




<?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: USROPN &#8211; AS/400 question</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/usropn/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/usropn/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 14:10:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: ToddN2000</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/usropn/#comment-115957</link>
		<dc:creator>ToddN2000</dc:creator>
		<pubDate>Wed, 06 Feb 2013 17:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/usropn/#comment-115957</guid>
		<description><![CDATA[Another reason for USROPN, OPEN and&#160;CLOSE is if you use the QCMDEXC command.&#160; We use this if we want to change spool attributes. Say a certain user want 2 copies of the&#160;spoolfile.&#160;You would close ther current, OVRSPLF, OPEN.. do job , then revert back to original spool file attributes.&#160;We have also used the feature when we developed some of our CGI apps. This was to control the proper OVRDBF commands within an RPG program to grab the correct data files.]]></description>
		<content:encoded><![CDATA[<p>Another reason for USROPN, OPEN and&nbsp;CLOSE is if you use the QCMDEXC command.&nbsp; We use this if we want to change spool attributes. Say a certain user want 2 copies of the&nbsp;spoolfile.&nbsp;You would close ther current, OVRSPLF, OPEN.. do job , then revert back to original spool file attributes.&nbsp;We have also used the feature when we developed some of our CGI apps. This was to control the proper OVRDBF commands within an RPG program to grab the correct data files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/usropn/#comment-115932</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 06 Feb 2013 10:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/usropn/#comment-115932</guid>
		<description><![CDATA[&lt;EM&gt;When normal handling of opening and closing is done in RPG why do you need USROPN , OPEN &amp; CLOSE commands?&lt;/EM&gt;
&#160;
You use those when you want files opened and close at times other than when it would automatically be done. Your FileA and FileB example is a possible use.
&#160;
Another example would be spooled output from a program I wrote a few years ago. The program might be called thousands of times per second, day after day for months. Under certain error conditions that might happen once in a couple years, or never, the program needed to print some records about what caused the error. I didn&#039;t want the printer file to be opened and closed every time the program was called, so it was a USROPN file.
&#160;
&lt;EM&gt;...the interviewe specifically questioned about the usage of USROPN in Display file. Can you please state an example?&lt;/EM&gt;
&#160;
Yes.
&#160;
But you should be able to think of circumstances when you do not want a display file opened. 
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p><em>When normal handling of opening and closing is done in RPG why do you need USROPN , OPEN &amp; CLOSE commands?</em><br />
&nbsp;<br />
You use those when you want files opened and close at times other than when it would automatically be done. Your FileA and FileB example is a possible use.<br />
&nbsp;<br />
Another example would be spooled output from a program I wrote a few years ago. The program might be called thousands of times per second, day after day for months. Under certain error conditions that might happen once in a couple years, or never, the program needed to print some records about what caused the error. I didn&#8217;t want the printer file to be opened and closed every time the program was called, so it was a USROPN file.<br />
&nbsp;<br />
<em>&#8230;the interviewe specifically questioned about the usage of USROPN in Display file. Can you please state an example?</em><br />
&nbsp;<br />
Yes.<br />
&nbsp;<br />
But you should be able to think of circumstances when you do not want a display file opened.<br />
&nbsp;<br />
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/8 queries in 0.017 seconds using memcached
Object Caching 283/284 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 15:35:37 -->