<?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: 5 Uses: Load-Lookup Love Letter</title>
	<atom:link href="http://peoplesoftsqr.com/index.php/2009/03/5-uses-load-lookup-love-letter/feed/" rel="self" type="application/rss+xml" />
	<link>http://peoplesoftsqr.com/index.php/2009/03/5-uses-load-lookup-love-letter/</link>
	<description>When Peoplebooks Is Not Enough</description>
	<lastBuildDate>Mon, 16 Aug 2010 16:52:22 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/5-uses-load-lookup-love-letter/comment-page-1/#comment-2326</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Fri, 21 Aug 2009 22:15:05 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=246#comment-2326</guid>
		<description>Welcome to SQR and welcome to my blog, Anand.

&lt;strong&gt;Load-lookup&lt;/strong&gt; requires a key, but it doesn&#039;t have to be a key field of a database table.  It can be any field or a formula based on one or more fields.  It ought to be unique among the rows that the &lt;strong&gt;load-lookup&lt;/strong&gt; selects.  I don&#039;t think you can avoid assigning some name to &lt;strong&gt;key=&lt;/strong&gt;.  The idea behind &lt;strong&gt;lookup&lt;/strong&gt; is that you give it one value and it returns a related value.  What would you do with it if you weren&#039;t giving it a value?

&lt;strong&gt;Load-lookup&lt;/strong&gt; will not store multiple rows with the same key value, but multiple key values could have the same return value.

The &lt;strong&gt;rows=&lt;/strong&gt; parameter gives &lt;strong&gt;load-lookup&lt;/strong&gt; an estimate of the number of rows you expect it to read.</description>
		<content:encoded><![CDATA[<p>Welcome to SQR and welcome to my blog, Anand.</p>
<p><strong>Load-lookup</strong> requires a key, but it doesn&#8217;t have to be a key field of a database table.  It can be any field or a formula based on one or more fields.  It ought to be unique among the rows that the <strong>load-lookup</strong> selects.  I don&#8217;t think you can avoid assigning some name to <strong>key=</strong>.  The idea behind <strong>lookup</strong> is that you give it one value and it returns a related value.  What would you do with it if you weren&#8217;t giving it a value?</p>
<p><strong>Load-lookup</strong> will not store multiple rows with the same key value, but multiple key values could have the same return value.</p>
<p>The <strong>rows=</strong> parameter gives <strong>load-lookup</strong> an estimate of the number of rows you expect it to read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/5-uses-load-lookup-love-letter/comment-page-1/#comment-2297</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Fri, 21 Aug 2009 06:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=246#comment-2297</guid>
		<description>Hi all

Am new to SQR. Is it mandatory to use key field in Load-lookup. If it is not what would be the alternative for using key field... ie I dont want to assign any column name to key and dont want to pass the value through lookup. I know its possible to use simple begin-select but is it possible through load-lookup.. 

I have a doubt whether load-lookup return multiple row for same key value.. If i want to do so wat i have to do... 

What is the use of row in load-lookup

Pls..help to solve the queries

Thanks in Advance..
AnandhRaj</description>
		<content:encoded><![CDATA[<p>Hi all</p>
<p>Am new to SQR. Is it mandatory to use key field in Load-lookup. If it is not what would be the alternative for using key field&#8230; ie I dont want to assign any column name to key and dont want to pass the value through lookup. I know its possible to use simple begin-select but is it possible through load-lookup.. </p>
<p>I have a doubt whether load-lookup return multiple row for same key value.. If i want to do so wat i have to do&#8230; </p>
<p>What is the use of row in load-lookup</p>
<p>Pls..help to solve the queries</p>
<p>Thanks in Advance..<br />
AnandhRaj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/5-uses-load-lookup-love-letter/comment-page-1/#comment-655</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Wed, 17 Jun 2009 20:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=246#comment-655</guid>
		<description>&lt;code&gt;begin-procedure main
&#160;&#160;move 0 to #dept_num
&#160;&#160;while #dept_num &lt; 50
&#160;&#160;&#160;&#160;do initialize_variables
&#160;&#160;&#160;&#160;do get_and_print_department_data
&#160;&#160;&#160;&#160;add 1 to #dept_num
&#160;&#160;end-while
end-procedure main&lt;/code&gt;

&lt;code&gt;begin-procedure initialize_variables
! Do this procedure in a single command (plus a single command somewhere else)
&#160;&#160;let #num_employees = 0
&#160;&#160;let #total_pay = 0
&#160;&#160;let #highest_pay = 0
&#160;&#160;let #highest_paid_name = &#039;&#039;
&#160;&#160;let #lowest_pay = 1000000
&#160;&#160;let #lowest_paid_name = &#039;&#039;
&#160;&#160;let $employee_list = &#039;Department employees: &#039;
end-procedure initialize_variables&lt;/code&gt;

&lt;code&gt;begin-procedure get_and_print_department_data
...
&#160;&#160;add 1 to #num_employees
&#160;&#160;add #pay to #total_pay
&#160;&#160;if #pay &gt; #highest_pay
&#160;&#160;&#160;&#160;move #pay to #highest_pay
&#160;&#160;&#160;&#160;move $name to $highest_paid_name
&#160;&#160;end-if
&#160;&#160;if #pay &lt; #lowest_pay
&#160;&#160;&#160;&#160;move #pay to #lowest_pay
&#160;&#160;&#160;&#160;move $name to $lowest_paid_name
&#160;&#160;end-if
&#160;&#160;let $employee_names = $employee_name &#124;&#124; $name &#124;&#124; &#039; &#039;
...
end-procedure get_and_print_department_data&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p><code>begin-procedure main<br />
&nbsp;&nbsp;move 0 to #dept_num<br />
&nbsp;&nbsp;while #dept_num < 50<br />
&nbsp;&nbsp;&nbsp;&nbsp;do initialize_variables<br />
&nbsp;&nbsp;&nbsp;&nbsp;do get_and_print_department_data<br />
&nbsp;&nbsp;&nbsp;&nbsp;add 1 to #dept_num<br />
&nbsp;&nbsp;end-while<br />
end-procedure main</code></p>
<p></code><code>begin-procedure initialize_variables<br />
! Do this procedure in a single command (plus a single command somewhere else)<br />
&nbsp;&nbsp;let #num_employees = 0<br />
&nbsp;&nbsp;let #total_pay = 0<br />
&nbsp;&nbsp;let #highest_pay = 0<br />
&nbsp;&nbsp;let #highest_paid_name = ''<br />
&nbsp;&nbsp;let #lowest_pay = 1000000<br />
&nbsp;&nbsp;let #lowest_paid_name = ''<br />
&nbsp;&nbsp;let $employee_list = 'Department employees: '<br />
end-procedure initialize_variables</code></p>
<p><code>begin-procedure get_and_print_department_data<br />
...<br />
&nbsp;&nbsp;add 1 to #num_employees<br />
&nbsp;&nbsp;add #pay to #total_pay<br />
&nbsp;&nbsp;if #pay > #highest_pay<br />
&nbsp;&nbsp;&nbsp;&nbsp;move #pay to #highest_pay<br />
&nbsp;&nbsp;&nbsp;&nbsp;move $name to $highest_paid_name<br />
&nbsp;&nbsp;end-if<br />
&nbsp;&nbsp;if #pay < #lowest_pay<br />
&nbsp;&nbsp;&nbsp;&nbsp;move #pay to #lowest_pay<br />
&nbsp;&nbsp;&nbsp;&nbsp;move $name to $lowest_paid_name<br />
&nbsp;&nbsp;end-if<br />
&nbsp;&nbsp;let $employee_names = $employee_name || $name || ' '<br />
...<br />
end-procedure get_and_print_department_data</code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sundeep Kumar</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/5-uses-load-lookup-love-letter/comment-page-1/#comment-648</link>
		<dc:creator>Sundeep Kumar</dc:creator>
		<pubDate>Wed, 17 Jun 2009 15:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=246#comment-648</guid>
		<description>I haven&#039;t got your question correctly.Can you give the sample code that you are doing to reset the values. And point me where i need to automate the resetting values.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t got your question correctly.Can you give the sample code that you are doing to reset the values. And point me where i need to automate the resetting values.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
