 




<?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: F9=Retrieve&#8230;</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/f9retrieve/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/f9retrieve/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 06:06:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: sloopy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/f9retrieve/#comment-99147</link>
		<dc:creator>sloopy</dc:creator>
		<pubDate>Thu, 17 Nov 2011 12:12:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-99147</guid>
		<description><![CDATA[It&#039;s interesting that this question has been running nearly three and a half years now.

OK. I would write a utility program to do this, using a window similar to that provided by QUSCMDLN. But, I would use QCAPCMD to run the command, and store the returned command string if there were no errors, or the original command string if there were (along with an error flag). Storage would be in a local (QTEMP) file with a variable-length field to hold the command string.

If you wanted to restrict by command name or other values, create an exclusion file (non-local, of course). Parse the command string for forbidden keywords, library names, command names (the command name is of course the first word in the string unless they write SBMJOB or similar)....

It does sound useful. I think I WILL write it.]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s interesting that this question has been running nearly three and a half years now.</p>
<p>OK. I would write a utility program to do this, using a window similar to that provided by QUSCMDLN. But, I would use QCAPCMD to run the command, and store the returned command string if there were no errors, or the original command string if there were (along with an error flag). Storage would be in a local (QTEMP) file with a variable-length field to hold the command string.</p>
<p>If you wanted to restrict by command name or other values, create an exclusion file (non-local, of course). Parse the command string for forbidden keywords, library names, command names (the command name is of course the first word in the string unless they write SBMJOB or similar)&#8230;.</p>
<p>It does sound useful. I think I WILL write it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/f9retrieve/#comment-90187</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Mon, 28 Mar 2011 21:32:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-90187</guid>
		<description><![CDATA[Note that when using QUSCMDLN (or any similar system function that implements &lt;F9=Retrieve&gt; for commands), you still need to have the job&#039;s LOG() level set high enough to log commands. If the job doesn&#039;t log your commands, you can&#039;t retrieve them through system functions.

If you display your own command line, you can simply store each one in an array with no regard for the job&#039;s LOG() level.

Tom]]></description>
		<content:encoded><![CDATA[<p>Note that when using QUSCMDLN (or any similar system function that implements &lt;F9=Retrieve&gt; for commands), you still need to have the job&#8217;s LOG() level set high enough to log commands. If the job doesn&#8217;t log your commands, you can&#8217;t retrieve them through system functions.</p>
<p>If you display your own command line, you can simply store each one in an array with no regard for the job&#8217;s LOG() level.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaisersosa</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/f9retrieve/#comment-90176</link>
		<dc:creator>kaisersosa</dc:creator>
		<pubDate>Mon, 28 Mar 2011 19:00:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-90176</guid>
		<description><![CDATA[The dead easiest thing to do would be what Sloopy and others suggested, use the quscmdln.


      //---------------------------------------------------------------
      // Prototyped call to get Command Line
      //---------------------------------------------------------------
     d #CmdLine        pr                  extpgm(&#039;QUSCMDLN&#039;)

. . . . .

         if dvInKey = F10;
           #CmdLine();
         endif;]]></description>
		<content:encoded><![CDATA[<p>The dead easiest thing to do would be what Sloopy and others suggested, use the quscmdln.</p>
<p>      //&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
      // Prototyped call to get Command Line<br />
      //&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
     d #CmdLine        pr                  extpgm(&#8216;QUSCMDLN&#8217;)</p>
<p>. . . . .</p>
<p>         if dvInKey = F10;<br />
           #CmdLine();<br />
         endif;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaisersosa</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/f9retrieve/#comment-90174</link>
		<dc:creator>kaisersosa</dc:creator>
		<pubDate>Mon, 28 Mar 2011 18:57:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-90174</guid>
		<description><![CDATA[I agree with Splat.  With the qcapcmd api, if the user changes any of the parms, qcapcmd can &#039;catch&#039; the changes.
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/qcapcmd.htm

If you really want to punish yourself, you could use the User Interface Manager (UIM) apis.  Then your F9=Retrieve is built in.  Set aside a few months though. &lt;g&gt;

John B]]></description>
		<content:encoded><![CDATA[<p>I agree with Splat.  With the qcapcmd api, if the user changes any of the parms, qcapcmd can &#8216;catch&#8217; the changes.<br />
<a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/qcapcmd.htm" rel="nofollow">http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/qcapcmd.htm</a></p>
<p>If you really want to punish yourself, you could use the User Interface Manager (UIM) apis.  Then your F9=Retrieve is built in.  Set aside a few months though. &lt;g&gt;</p>
<p>John B</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aladiw</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/f9retrieve/#comment-90089</link>
		<dc:creator>Aladiw</dc:creator>
		<pubDate>Sun, 27 Mar 2011 04:16:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-90089</guid>
		<description><![CDATA[All you need to do is call QUSCMDLN (no parameters) from your program. IMHO
&lt;a href=&quot;http://aladiw.us/&quot;&gt;Berita Aladiw&lt;/a&gt; &#124; &lt;a href=&quot;http://aladiw.com/&quot;&gt;Belajar Aladiw&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>All you need to do is call QUSCMDLN (no parameters) from your program. IMHO<br />
<a href="http://aladiw.us/">Berita Aladiw</a> | <a href="http://aladiw.com/">Belajar Aladiw</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: splat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/f9retrieve/#comment-76546</link>
		<dc:creator>splat</dc:creator>
		<pubDate>Tue, 27 Apr 2010 14:55:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-76546</guid>
		<description><![CDATA[If you&#039;re going to allow users to enter parameters in the commands, you might be better served using QCAPCMD rather than QCMDEXC.]]></description>
		<content:encoded><![CDATA[<p>If you&#8217;re going to allow users to enter parameters in the commands, you might be better served using QCAPCMD rather than QCMDEXC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vatchy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/f9retrieve/#comment-53952</link>
		<dc:creator>vatchy</dc:creator>
		<pubDate>Mon, 16 Jun 2008 16:29:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-53952</guid>
		<description><![CDATA[If you&#039;re using the display file in RPG then just create an array in which to save the commands.]]></description>
		<content:encoded><![CDATA[<p>If you&#8217;re using the display file in RPG then just create an array in which to save the commands.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sloopy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/f9retrieve/#comment-53916</link>
		<dc:creator>sloopy</dc:creator>
		<pubDate>Fri, 13 Jun 2008 15:32:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-53916</guid>
		<description><![CDATA[All you need to do is call QUSCMDLN (no parameters) from your program. This will bring up the command line window - the same one you get from SEU when you press F21.

It already has a full F9=Retrieve function, built in.

However, you would have no control over the commands that could be entered. What the user can do from that command line is limited only by their security level and user type.

If you use the RCVMSG method, you want to receive message of type *RQS.

Regards,

Sloopy]]></description>
		<content:encoded><![CDATA[<p>All you need to do is call QUSCMDLN (no parameters) from your program. This will bring up the command line window &#8211; the same one you get from SEU when you press F21.</p>
<p>It already has a full F9=Retrieve function, built in.</p>
<p>However, you would have no control over the commands that could be entered. What the user can do from that command line is limited only by their security level and user type.</p>
<p>If you use the RCVMSG method, you want to receive message of type *RQS.</p>
<p>Regards,</p>
<p>Sloopy</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.013 seconds using memcached
Object Caching 366/369 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 07:07:11 -->