<?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 for Peoplesoft and SQR</title>
	<atom:link href="http://peoplesoftsqr.com/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://peoplesoftsqr.com</link>
	<description>When Peoplebooks Is Not Enough</description>
	<lastBuildDate>Mon, 12 Jul 2010 20:20:25 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on The Rewrite And The Bug Fix by administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2010/02/the-rewrite-and-the-bug-fix/comment-page-1/#comment-5954</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Mon, 12 Jul 2010 20:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=657#comment-5954</guid>
		<description>The short answer is no.  That&#039;s why I had to rewrite the program using a more complex algorithm.

The long answer is, the SQR Language Reference hints that Oracle could do it, but it would be difficult for them to implement and difficult for us to use.  Since Oracle hasn&#039;t made even the easy improvements to SQR, I don&#039;t think we&#039;ll ever get this feature.

SQR has a feature called &quot;last-page&quot; which allows us to enhance our page numbering with phrases like &quot;Page 1 of 10&quot;.  When we use &quot;last-page&quot;, SQR keeps all our printed output in a buffer until the program has ended.  It counts the pages (this is independent of the #page-count variable, so don&#039;t bother to manipulate it) and annotates each page in the buffer with the final page count.

Wow!  Think of what we could do with access to that buffer.  Now think about never being able to do it.  Sorry.</description>
		<content:encoded><![CDATA[<p>The short answer is no.  That&#8217;s why I had to rewrite the program using a more complex algorithm.</p>
<p>The long answer is, the SQR Language Reference hints that Oracle could do it, but it would be difficult for them to implement and difficult for us to use.  Since Oracle hasn&#8217;t made even the easy improvements to SQR, I don&#8217;t think we&#8217;ll ever get this feature.</p>
<p>SQR has a feature called &#8220;last-page&#8221; which allows us to enhance our page numbering with phrases like &#8220;Page 1 of 10&#8243;.  When we use &#8220;last-page&#8221;, SQR keeps all our printed output in a buffer until the program has ended.  It counts the pages (this is independent of the #page-count variable, so don&#8217;t bother to manipulate it) and annotates each page in the buffer with the final page count.</p>
<p>Wow!  Think of what we could do with access to that buffer.  Now think about never being able to do it.  Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Rewrite And The Bug Fix by Lulu Catarroja</title>
		<link>http://peoplesoftsqr.com/index.php/2010/02/the-rewrite-and-the-bug-fix/comment-page-1/#comment-5953</link>
		<dc:creator>Lulu Catarroja</dc:creator>
		<pubDate>Mon, 12 Jul 2010 14:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=657#comment-5953</guid>
		<description>Hi!  I wanted to ask if there is a syntax/command to go back to the previous page.  I have a similar situation in which I have 2 arrays.. However, if the first array printed on one column has moved to the next page, the second array (2nd column) continues to print on where the cursor stopped (which is the 2nd page).  I would just need to control the page to go back the previous.  I have tried doing let #prev-page = #page-count - 1 and it doesn&#039;t seem to work.  Please advise.  Thank you.  Lulu Catarroja 215/784-1448</description>
		<content:encoded><![CDATA[<p>Hi!  I wanted to ask if there is a syntax/command to go back to the previous page.  I have a similar situation in which I have 2 arrays.. However, if the first array printed on one column has moved to the next page, the second array (2nd column) continues to print on where the cursor stopped (which is the 2nd page).  I would just need to control the page to go back the previous.  I have tried doing let #prev-page = #page-count &#8211; 1 and it doesn&#8217;t seem to work.  Please advise.  Thank you.  Lulu Catarroja 215/784-1448</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by administrator</title>
		<link>http://peoplesoftsqr.com/index.php/about/comment-page-1/#comment-5951</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Wed, 07 Jul 2010 19:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/wordpress/?page_id=2#comment-5951</guid>
		<description>Thanks, Joe.

I don&#039;t understand your question.  The Oracle logo appears on Peoplesoft pages, but it doesn&#039;t appear on the output of an SQR program.  It&#039;s possible to take the logo off Peoplesoft pages, but I&#039;ve never paid attention to the explanations I&#039;ve seen about it.  Sorry - you might try an Internet search.</description>
		<content:encoded><![CDATA[<p>Thanks, Joe.</p>
<p>I don&#8217;t understand your question.  The Oracle logo appears on Peoplesoft pages, but it doesn&#8217;t appear on the output of an SQR program.  It&#8217;s possible to take the logo off Peoplesoft pages, but I&#8217;ve never paid attention to the explanations I&#8217;ve seen about it.  Sorry &#8211; you might try an Internet search.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by Joe Johnson</title>
		<link>http://peoplesoftsqr.com/index.php/about/comment-page-1/#comment-5950</link>
		<dc:creator>Joe Johnson</dc:creator>
		<pubDate>Wed, 07 Jul 2010 14:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/wordpress/?page_id=2#comment-5950</guid>
		<description>Great blog!

I am also looking in sqrug, but I have a basic question.

For Oracle/PeopleSoft SQR, where does the Oracle logo reside and get called.  I presume it is in a header sqc or two, but I&#039;m having trouble locating the logo.  My coa mpny wants to put their logo in it&#039;s place.

Thanks,

Joe</description>
		<content:encoded><![CDATA[<p>Great blog!</p>
<p>I am also looking in sqrug, but I have a basic question.</p>
<p>For Oracle/PeopleSoft SQR, where does the Oracle logo reside and get called.  I presume it is in a header sqc or two, but I&#8217;m having trouble locating the logo.  My coa mpny wants to put their logo in it&#8217;s place.</p>
<p>Thanks,</p>
<p>Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQR Functions by administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/10/sqr-functions/comment-page-1/#comment-5949</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Tue, 06 Jul 2010 17:57:01 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=502#comment-5949</guid>
		<description>Great question!  Both examples will PERFORM the same way, executing the &quot;Do Print-Failure(1)&quot; command, but they get to that point quite differently.  Running an SQR program is usually a two step process.  First, the SQR interpreter (SQRW.EXE or PSSQR.EXE) reads the program and translates it into a form that is easier and faster to execute.  Second, the SQR interpreter executes that form.

Your second example, with the hash marks, indicate that the SQR interpreter should not translate all your code.  The translator evaluates the &quot;a=a&quot; expression and determines that it is true.  It translates the &quot;Do Print-Failure(1)&quot; command and ignores the &quot;Do Print-Failure(2)&quot; command.  The translation will be the same as if you had just coded &quot;Do Print-Failure(1).&quot;

Your first example translates all five lines of code.  When we get to the second stage of executing code, the SQR interpreter will evaluate the IF statement every time you pass through this code, perform the first branch, &quot;Do Print-Failure(1)&quot;, and skip over the rest of the translated code (&quot;Do Print-Failure(2)&quot;).

In the first example, the translation takes a little longer because it translates five lines instead of one, and the execution takes a little longer because it has to test the expression &quot;a=a&quot; and branch appropriately.

The &quot;#IF&quot; command is a directive to the code translator.  The &quot;IF&quot; command is a directive to the code executor.  As for usage:

- #IF can only evaluate simple expressions; complex expressions require IF.
- #IF is good if you have to choose between two blocks of code and SQR won&#039;t let you compile both.  For example, two different BEGIN-SELECT blocks that use the same aliases.
- #IF is good if you have a piece of code that is not a full, stand-alone command, and you might or might not want to use it.  For example: (1) part of a WHERE clause, (2) fields in a CREATE-ARRAY command.</description>
		<content:encoded><![CDATA[<p>Great question!  Both examples will PERFORM the same way, executing the &#8220;Do Print-Failure(1)&#8221; command, but they get to that point quite differently.  Running an SQR program is usually a two step process.  First, the SQR interpreter (SQRW.EXE or PSSQR.EXE) reads the program and translates it into a form that is easier and faster to execute.  Second, the SQR interpreter executes that form.</p>
<p>Your second example, with the hash marks, indicate that the SQR interpreter should not translate all your code.  The translator evaluates the &#8220;a=a&#8221; expression and determines that it is true.  It translates the &#8220;Do Print-Failure(1)&#8221; command and ignores the &#8220;Do Print-Failure(2)&#8221; command.  The translation will be the same as if you had just coded &#8220;Do Print-Failure(1).&#8221;</p>
<p>Your first example translates all five lines of code.  When we get to the second stage of executing code, the SQR interpreter will evaluate the IF statement every time you pass through this code, perform the first branch, &#8220;Do Print-Failure(1)&#8221;, and skip over the rest of the translated code (&#8221;Do Print-Failure(2)&#8221;).</p>
<p>In the first example, the translation takes a little longer because it translates five lines instead of one, and the execution takes a little longer because it has to test the expression &#8220;a=a&#8221; and branch appropriately.</p>
<p>The &#8220;#IF&#8221; command is a directive to the code translator.  The &#8220;IF&#8221; command is a directive to the code executor.  As for usage:</p>
<p>- #IF can only evaluate simple expressions; complex expressions require IF.<br />
- #IF is good if you have to choose between two blocks of code and SQR won&#8217;t let you compile both.  For example, two different BEGIN-SELECT blocks that use the same aliases.<br />
- #IF is good if you have a piece of code that is not a full, stand-alone command, and you might or might not want to use it.  For example: (1) part of a WHERE clause, (2) fields in a CREATE-ARRAY command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQR Functions by Florian Böttcher</title>
		<link>http://peoplesoftsqr.com/index.php/2009/10/sqr-functions/comment-page-1/#comment-5948</link>
		<dc:creator>Florian Böttcher</dc:creator>
		<pubDate>Tue, 06 Jul 2010 08:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=502#comment-5948</guid>
		<description>I have a Problem understanding an existing SQR-Code, I would be very glad if you could help me:

Where is the difference between:

If a=a
    Do Print-Failure(1)
ELSE
    Do Print-Failure(2)       
END-IF

...and an IF with a hashmark, like the following:

#IF a=a
    Do Print-Failure(1)
#ELSE
    Do Print-Failure(2)
#END-IF

...its only a small example of me problem.
Please tell me whats the difference and in which cases you use a hashmark...

Please make me happy ;)</description>
		<content:encoded><![CDATA[<p>I have a Problem understanding an existing SQR-Code, I would be very glad if you could help me:</p>
<p>Where is the difference between:</p>
<p>If a=a<br />
    Do Print-Failure(1)<br />
ELSE<br />
    Do Print-Failure(2)<br />
END-IF</p>
<p>&#8230;and an IF with a hashmark, like the following:</p>
<p>#IF a=a<br />
    Do Print-Failure(1)<br />
#ELSE<br />
    Do Print-Failure(2)<br />
#END-IF</p>
<p>&#8230;its only a small example of me problem.<br />
Please tell me whats the difference and in which cases you use a hashmark&#8230;</p>
<p>Please make me happy <img src='http://peoplesoftsqr.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by administrator</title>
		<link>http://peoplesoftsqr.com/index.php/about/comment-page-1/#comment-5941</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Wed, 23 Jun 2010 14:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/wordpress/?page_id=2#comment-5941</guid>
		<description>Sadly, the makers of SQR do very little to encourage people to use it.  There are two versions of SQR, and neither is sold as a separate product.  Nor is there a single user or self-contained version.  There are third party products that execute SQR programs, but they won&#039;t work without the official SQR product on your system.</description>
		<content:encoded><![CDATA[<p>Sadly, the makers of SQR do very little to encourage people to use it.  There are two versions of SQR, and neither is sold as a separate product.  Nor is there a single user or self-contained version.  There are third party products that execute SQR programs, but they won&#8217;t work without the official SQR product on your system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Load-Lookup Love Letter: Introduction by administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/02/load-lookup-love-letter-introduction/comment-page-1/#comment-5940</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Wed, 23 Jun 2010 14:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=200#comment-5940</guid>
		<description>Wow, Prashanth, that is a very large query!  The &quot;where&quot; parameter in load-lookup is limited to 256 characters, and the &quot;table&quot; parameter must be a literal string on a single line.  That&#039;s going to be hard to write and harder to read.  Try creating database views that encapsulate as much logic as you can.  The SQL statement for a view can join tables and be as long as you need.  Then you can use the view in the load-lookup statement and it will appear simple.</description>
		<content:encoded><![CDATA[<p>Wow, Prashanth, that is a very large query!  The &#8220;where&#8221; parameter in load-lookup is limited to 256 characters, and the &#8220;table&#8221; parameter must be a literal string on a single line.  That&#8217;s going to be hard to write and harder to read.  Try creating database views that encapsulate as much logic as you can.  The SQL statement for a view can join tables and be as long as you need.  Then you can use the view in the load-lookup statement and it will appear simple.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About by Shankar</title>
		<link>http://peoplesoftsqr.com/index.php/about/comment-page-1/#comment-5937</link>
		<dc:creator>Shankar</dc:creator>
		<pubDate>Fri, 18 Jun 2010 09:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/wordpress/?page_id=2#comment-5937</guid>
		<description>Hi Steve,

I am a new comer to your site as well as peoplesoft too. But i am eager in learning the peoplesoft and SQR. Is there is any single user or minimal user version to practice peoplesoft applications. Or anything like simulations.

Please Help me on this. 

Shankar.S</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>I am a new comer to your site as well as peoplesoft too. But i am eager in learning the peoplesoft and SQR. Is there is any single user or minimal user version to practice peoplesoft applications. Or anything like simulations.</p>
<p>Please Help me on this. </p>
<p>Shankar.S</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Load-Lookup Love Letter: Introduction by prashanth</title>
		<link>http://peoplesoftsqr.com/index.php/2009/02/load-lookup-love-letter-introduction/comment-page-1/#comment-5933</link>
		<dc:creator>prashanth</dc:creator>
		<pubDate>Mon, 14 Jun 2010 08:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=200#comment-5933</guid>
		<description>How can i write a query using load lookup for joining two or more tables...
Here is my query..Can you just change the query using load lookup...

begin-select
	
	alter-printer
        font={CourierFont}
        point-size={PointSize2}


a.account_name			(,{Col1},{Col1Width})    on-break level=1  
sh.service_name			(,{Col2},{Col2Width})   on-break level=2 
!i.effective_date  		(,{Col3},{Col3Width})  !Edit {TaskQueueDTFormat}
to_char(i.effective_date,&#039;dd-mm-yyyy hh24:mi:ss&#039;)   &amp;BillDate    (,{Col3},{Col3Width})
        move &amp;BillDate to  $BillDate
i.invoice_id			(,{Col4},{Col4Width})   
a.unbilled_amount		(,{Col5},{Col5Width})    Edit {NumberMask}
sh.general_1        &amp;RatePlan
	move &amp;RatePlan to #RatePlan
sh.general_2   &amp;ServiceCategory
	move &amp;ServiceCategory to  #ServiceCategory
sh.general_4   &amp;ConnectionType
	move &amp;ConnectionType to #ConnectionType
sh.general_5	&amp;CircuitType
	move &amp;CircuitType to #CircuitType
sh.general_6   &amp;SubscriptionType
	move &amp;SubscriptionType to #SubscriptionType
pih.product_id   &amp;ProdId
	move &amp;ProdId to #ProdId
	
  do RequiredRentAmount
	
	position (+1)

from account a,service_history sh,invoice i,reference_code rc,customer_node_history cnh,product_instance_history pih
where sh.customer_node_id=a.customer_node_id 
and a.invoice_id=i.invoice_id
and a.account_id=i.account_id
and a.account_type_id=10000
and i.invoice_type_id=1000020
and sh.BASE_PRODUCT_INSTANCE_ID = pih.PRODUCT_INSTANCE_ID
			and pih.BASE_PRODUCT_INSTANCE_ID is null
			and sh.customer_node_id=pih.customer_node_id
and sh.service_id=(select max(service_id) from service_history sh,product_instance_history pih 
			where sh.BASE_PRODUCT_INSTANCE_ID = pih.PRODUCT_INSTANCE_ID
			and pih.BASE_PRODUCT_INSTANCE_ID is null
			and sh.customer_node_id=cnh.customer_node_id)
and to_char(rc.reference_code)=sh.general_1
and rc.reference_type_id in(select reference_type_id from reference_type where type_label like $PlanName)
and cnh.region_code=#ref_code
and sh.customer_node_id=cnh.customer_node_id
and a.customer_node_id=cnh.customer_node_id
and i.customer_node_id=cnh.customer_node_id  
and trunc(a.LAST_MODIFIED) between trunc(to_date($ReportStDate,&#039;dd-mm-yyyy hh24:mi:ss&#039;))
and trunc(to_date($RptEndDate,&#039;dd-mm-yyyy hh24:mi:ss&#039;))
and trunc(a.LAST_MODIFIED) between trunc(sh.effective_start_date) and trunc(sh.effective_end_date)
and trunc(a.LAST_MODIFIED) between trunc(cnh.effective_start_date) and trunc(cnh.effective_end_date)
and trunc(a.LAST_MODIFIED) between trunc(pih.effective_start_date) and trunc(pih.effective_end_date)
!and cnh.node_name like &#039;PcustomerAccured5&#039;

end-select




SOMEONE PLEASE DO THE NEEDFUL AS IT IS HIGHLY ESSENTIAL FOR PERFORMANCE........</description>
		<content:encoded><![CDATA[<p>How can i write a query using load lookup for joining two or more tables&#8230;<br />
Here is my query..Can you just change the query using load lookup&#8230;</p>
<p>begin-select</p>
<p>	alter-printer<br />
        font={CourierFont}<br />
        point-size={PointSize2}</p>
<p>a.account_name			(,{Col1},{Col1Width})    on-break level=1<br />
sh.service_name			(,{Col2},{Col2Width})   on-break level=2<br />
!i.effective_date  		(,{Col3},{Col3Width})  !Edit {TaskQueueDTFormat}<br />
to_char(i.effective_date,&#8217;dd-mm-yyyy hh24:mi:ss&#8217;)   &amp;BillDate    (,{Col3},{Col3Width})<br />
        move &amp;BillDate to  $BillDate<br />
i.invoice_id			(,{Col4},{Col4Width})<br />
a.unbilled_amount		(,{Col5},{Col5Width})    Edit {NumberMask}<br />
sh.general_1        &amp;RatePlan<br />
	move &amp;RatePlan to #RatePlan<br />
sh.general_2   &amp;ServiceCategory<br />
	move &amp;ServiceCategory to  #ServiceCategory<br />
sh.general_4   &amp;ConnectionType<br />
	move &amp;ConnectionType to #ConnectionType<br />
sh.general_5	&amp;CircuitType<br />
	move &amp;CircuitType to #CircuitType<br />
sh.general_6   &amp;SubscriptionType<br />
	move &amp;SubscriptionType to #SubscriptionType<br />
pih.product_id   &amp;ProdId<br />
	move &amp;ProdId to #ProdId</p>
<p>  do RequiredRentAmount</p>
<p>	position (+1)</p>
<p>from account a,service_history sh,invoice i,reference_code rc,customer_node_history cnh,product_instance_history pih<br />
where sh.customer_node_id=a.customer_node_id<br />
and a.invoice_id=i.invoice_id<br />
and a.account_id=i.account_id<br />
and a.account_type_id=10000<br />
and i.invoice_type_id=1000020<br />
and sh.BASE_PRODUCT_INSTANCE_ID = pih.PRODUCT_INSTANCE_ID<br />
			and pih.BASE_PRODUCT_INSTANCE_ID is null<br />
			and sh.customer_node_id=pih.customer_node_id<br />
and sh.service_id=(select max(service_id) from service_history sh,product_instance_history pih<br />
			where sh.BASE_PRODUCT_INSTANCE_ID = pih.PRODUCT_INSTANCE_ID<br />
			and pih.BASE_PRODUCT_INSTANCE_ID is null<br />
			and sh.customer_node_id=cnh.customer_node_id)<br />
and to_char(rc.reference_code)=sh.general_1<br />
and rc.reference_type_id in(select reference_type_id from reference_type where type_label like $PlanName)<br />
and cnh.region_code=#ref_code<br />
and sh.customer_node_id=cnh.customer_node_id<br />
and a.customer_node_id=cnh.customer_node_id<br />
and i.customer_node_id=cnh.customer_node_id<br />
and trunc(a.LAST_MODIFIED) between trunc(to_date($ReportStDate,&#8217;dd-mm-yyyy hh24:mi:ss&#8217;))<br />
and trunc(to_date($RptEndDate,&#8217;dd-mm-yyyy hh24:mi:ss&#8217;))<br />
and trunc(a.LAST_MODIFIED) between trunc(sh.effective_start_date) and trunc(sh.effective_end_date)<br />
and trunc(a.LAST_MODIFIED) between trunc(cnh.effective_start_date) and trunc(cnh.effective_end_date)<br />
and trunc(a.LAST_MODIFIED) between trunc(pih.effective_start_date) and trunc(pih.effective_end_date)<br />
!and cnh.node_name like &#8216;PcustomerAccured5&#8242;</p>
<p>end-select</p>
<p>SOMEONE PLEASE DO THE NEEDFUL AS IT IS HIGHLY ESSENTIAL FOR PERFORMANCE&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
