 




<?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: SQL or RPG</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sql-or-rpg/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-or-rpg/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 07:13:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-or-rpg/#comment-63317</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Fri, 08 May 2009 10:39:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-63317</guid>
		<description><![CDATA[Hi,

Same thing as above in SQL would be :-

UPDATE MyFile SET Total = Cost * Qty

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Same thing as above in SQL would be :-</p>
<p>UPDATE MyFile SET Total = Cost * Qty</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: theheck</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-or-rpg/#comment-63295</link>
		<dc:creator>theheck</dc:creator>
		<pubDate>Thu, 07 May 2009 18:52:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-63295</guid>
		<description><![CDATA[Try this...
MyFile contains 3 fields: Cost, Qty, and Total
Cost = 5.00, Qty = 3, Total = 0 (needs to be updated)
Record format name is MyFiler

The code would look like this..

eval            Total = Cost * Qty
update       MyFiler


That&#039;s it!!!

Tod]]></description>
		<content:encoded><![CDATA[<p>Try this&#8230;<br />
MyFile contains 3 fields: Cost, Qty, and Total<br />
Cost = 5.00, Qty = 3, Total = 0 (needs to be updated)<br />
Record format name is MyFiler</p>
<p>The code would look like this..</p>
<p>eval            Total = Cost * Qty<br />
update       MyFiler</p>
<p>That&#8217;s it!!!</p>
<p>Tod</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-or-rpg/#comment-63250</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Thu, 07 May 2009 10:20:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-63250</guid>
		<description><![CDATA[Hi,

Yes, no problem.  eg add 10% to total price :-

UPDATE product_file SET total_price = (total_price + (total_price * 0.10))

Or

UPDATE product_file SET total_price = (total_price * 1.10)

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Yes, no problem.  eg add 10% to total price :-</p>
<p>UPDATE product_file SET total_price = (total_price + (total_price * 0.10))</p>
<p>Or</p>
<p>UPDATE product_file SET total_price = (total_price * 1.10)</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adeaver</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-or-rpg/#comment-63202</link>
		<dc:creator>adeaver</dc:creator>
		<pubDate>Wed, 06 May 2009 15:50:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-63202</guid>
		<description><![CDATA[Is it possible to do a &quot;Multiplacation&quot; in SQL... ? Using the example from Gilly400, instead of adding the Postage stamp, could I multiply by a fixed % instead?]]></description>
		<content:encoded><![CDATA[<p>Is it possible to do a &#8220;Multiplacation&#8221; in SQL&#8230; ? Using the example from Gilly400, instead of adding the Postage stamp, could I multiply by a fixed % instead?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-or-rpg/#comment-63201</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Wed, 06 May 2009 15:42:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-63201</guid>
		<description><![CDATA[Hi,

Just another thought - if you only need to update a couple of records you could also use DFU.  Use the command UPDDTA.

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Just another thought &#8211; if you only need to update a couple of records you could also use DFU.  Use the command UPDDTA.</p>
<p>Regards,</p>
<p>Martin Gilbert.</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.065 seconds using memcached
Object Caching 323/329 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 09:17:23 -->