 




<?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: WRKQRY&#8217;S USE TO ADD NUMERIC FIELD&#8217;S RECORDS</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/wrkqrys-use-to-add-numeric-fields-records/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/wrkqrys-use-to-add-numeric-fields-records/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 13:28:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/wrkqrys-use-to-add-numeric-fields-records/#comment-71801</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Mon, 21 Dec 2009 07:52:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-71801</guid>
		<description><![CDATA[I&#039;m only discussing the question, not attempting to answer it.

Personally, I&#039;d skip that entirely and do the work with a QM query instead. To produce a sum over a field named FLD1 in a file named MYFILE in a library named MYLIB, I&#039;d put this statement into a source member:&lt;pre&gt;select sum( FLD1 ) from MYLIB/MYFILE&lt;/pre&gt;Then I&#039;d create the QM query with the CRTQMQRY command and run it with the STRQMQRY command.

That assumes I didn&#039;t have the SQL Dev Kit installed. If I was entitled to it, I&#039;d install it. If it was installed, I&#039;d simply work through the STRQM command. If I already knew Query/400, I&#039;d start my work with the &#039;Prompted&#039; mode and move to SQL mode later. If I was already comfortable with SQL, that&#039;s the mode I&#039;d start with.

I don&#039;t know if Query/400 (now apparently renamed Query for i5/OS) has been meaningfully updated since OS/400 V4. I won&#039;t be surprised if it&#039;s never updated again.

Tom]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m only discussing the question, not attempting to answer it.</p>
<p>Personally, I&#8217;d skip that entirely and do the work with a QM query instead. To produce a sum over a field named FLD1 in a file named MYFILE in a library named MYLIB, I&#8217;d put this statement into a source member:
<pre>select sum( FLD1 ) from MYLIB/MYFILE</pre>
<p>Then I&#8217;d create the QM query with the CRTQMQRY command and run it with the STRQMQRY command.</p>
<p>That assumes I didn&#8217;t have the SQL Dev Kit installed. If I was entitled to it, I&#8217;d install it. If it was installed, I&#8217;d simply work through the STRQM command. If I already knew Query/400, I&#8217;d start my work with the &#8216;Prompted&#8217; mode and move to SQL mode later. If I was already comfortable with SQL, that&#8217;s the mode I&#8217;d start with.</p>
<p>I don&#8217;t know if Query/400 (now apparently renamed Query for i5/OS) has been meaningfully updated since OS/400 V4. I won&#8217;t be surprised if it&#8217;s never updated again.</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 3/10 queries in 0.040 seconds using memcached
Object Caching 267/273 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 13:57:21 -->