<?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: Hooray For Arrays.Part(2)</title>
	<atom:link href="http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/feed/" rel="self" type="application/rss+xml" />
	<link>http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/</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: Anand</title>
		<link>http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/comment-page-1/#comment-2544</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Thu, 27 Aug 2009 04:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=420#comment-2544</guid>
		<description>Of course, what you are saying is right.
I will mail you the output. 

Thanks
AnandhRaj</description>
		<content:encoded><![CDATA[<p>Of course, what you are saying is right.<br />
I will mail you the output. </p>
<p>Thanks<br />
AnandhRaj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/comment-page-1/#comment-2516</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Wed, 26 Aug 2009 15:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=420#comment-2516</guid>
		<description>Please e-mail your print file and your log file to me at steven@peoplesoftsqr.com.  Also, while this is an interesting problem, I&#039;m wondering why you&#039;re trying to read 240 rows into a 100 row array.  Our goal now is to debug a program that is designed to fail, to make it fail in the &quot;right&quot; way.</description>
		<content:encoded><![CDATA[<p>Please e-mail your print file and your log file to me at <a href="mailto:steven@peoplesoftsqr.com">steven@peoplesoftsqr.com</a>.  Also, while this is an interesting problem, I&#8217;m wondering why you&#8217;re trying to read 240 rows into a 100 row array.  Our goal now is to debug a program that is designed to fail, to make it fail in the &#8220;right&#8221; way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/comment-page-1/#comment-2510</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Wed, 26 Aug 2009 11:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=420#comment-2510</guid>
		<description>No it doesnt show any error in log.. instead i tried, what u said by selecting the value from table put it in array. and checked whether value is available.. I works fine to some extent.
Table contain 240 rows &amp; array size 100 but now it prints 92 records only (8 records not printed) and the value of &#039;J&#039; at the end of select statement is not printed.
why it is so..

begin-program
let #j=0
let #i=0
create-array name=emparr size=100
field=eno:number
field=empname:char
field=sall:number

begin-select 
empno
ename
sal 
    put &amp;empno &amp;ename &amp;sal into emparr(#j)
     do checkarray  
    let #j=#j+1
from test_emp
end-select

Print #j (+1) center bold
end-program

begin-procedure checkarray
while #i &lt;= #j
    get #eno $empname #sall from emparr(#i)
print #eno (+1,5)
print $empname (,15)
print #sall  (,25)
let #i=#i+1
end-while
print &#039; &#039; (+1)
end-procedure

Thanks,
AnandhRaj</description>
		<content:encoded><![CDATA[<p>No it doesnt show any error in log.. instead i tried, what u said by selecting the value from table put it in array. and checked whether value is available.. I works fine to some extent.<br />
Table contain 240 rows &amp; array size 100 but now it prints 92 records only (8 records not printed) and the value of &#8216;J&#8217; at the end of select statement is not printed.<br />
why it is so..</p>
<p>begin-program<br />
let #j=0<br />
let #i=0<br />
create-array name=emparr size=100<br />
field=eno:number<br />
field=empname:char<br />
field=sall:number</p>
<p>begin-select<br />
empno<br />
ename<br />
sal<br />
    put &amp;empno &amp;ename &amp;sal into emparr(#j)<br />
     do checkarray<br />
    let #j=#j+1<br />
from test_emp<br />
end-select</p>
<p>Print #j (+1) center bold<br />
end-program</p>
<p>begin-procedure checkarray<br />
while #i &lt;= #j<br />
    get #eno $empname #sall from emparr(#i)<br />
print #eno (+1,5)<br />
print $empname (,15)<br />
print #sall  (,25)<br />
let #i=#i+1<br />
end-while<br />
print &#8216; &#8216; (+1)<br />
end-procedure</p>
<p>Thanks,<br />
AnandhRaj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/comment-page-1/#comment-2496</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Wed, 26 Aug 2009 05:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=420#comment-2496</guid>
		<description>Have you read your log file carefully?  You may have an error message when the &lt;strong&gt;begin-select&lt;/strong&gt; loop tries to &lt;strong&gt;put&lt;/strong&gt; into emparr(10), which would stop the program before it executes any &lt;strong&gt;print&lt;/strong&gt; commands.</description>
		<content:encoded><![CDATA[<p>Have you read your log file carefully?  You may have an error message when the <strong>begin-select</strong> loop tries to <strong>put</strong> into emparr(10), which would stop the program before it executes any <strong>print</strong> commands.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/comment-page-1/#comment-2493</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Wed, 26 Aug 2009 04:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=420#comment-2493</guid>
		<description>Hi,

This is the program I tried for the Array.. test_emp table contain 14 records but but size of the array is 10. 

!TO check Array

begin-setup
declare-variable
default-numeric=integer
end-declare
end-setup


begin-program
let #j=0
create-array name=emparr size=10
field=eno:number
field=empname:char
field=sall:number

begin-select 
empno
ename
sal 
    put &amp;empno &amp;ename &amp;sal into emparr(#j)
    let #j=#j+1
from test_emp
end-select

while #i &lt; #j
    get #eno $empname #sall from emparr(#i)
print #eno (+1,5)
print $empname (,15)
print #sall  (,25)
let #i=#i+1
end-while
end-program

Initially I thought that error would be in #j since it is decimal so i made default numeric in begin-setup. After that also it doesnt work, and i tried increasing the size of the array to 14 or more then it works fine...</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is the program I tried for the Array.. test_emp table contain 14 records but but size of the array is 10. </p>
<p>!TO check Array</p>
<p>begin-setup<br />
declare-variable<br />
default-numeric=integer<br />
end-declare<br />
end-setup</p>
<p>begin-program<br />
let #j=0<br />
create-array name=emparr size=10<br />
field=eno:number<br />
field=empname:char<br />
field=sall:number</p>
<p>begin-select<br />
empno<br />
ename<br />
sal<br />
    put &amp;empno &amp;ename &amp;sal into emparr(#j)<br />
    let #j=#j+1<br />
from test_emp<br />
end-select</p>
<p>while #i &lt; #j<br />
    get #eno $empname #sall from emparr(#i)<br />
print #eno (+1,5)<br />
print $empname (,15)<br />
print #sall  (,25)<br />
let #i=#i+1<br />
end-while<br />
end-program</p>
<p>Initially I thought that error would be in #j since it is decimal so i made default numeric in begin-setup. After that also it doesnt work, and i tried increasing the size of the array to 14 or more then it works fine&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/comment-page-1/#comment-2480</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Tue, 25 Aug 2009 19:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=420#comment-2480</guid>
		<description>Hi Anand,

You read each row from the database table and store some values in the array.  You increment the array index either before or after each row.  Then you look at values in the array, with an index value that you previously used to store values, and you don&#039;t find anything.  That sounds strange.  If you use an index value less than zero or greater than 99, you should get a fatal error message that stops the program; it won&#039;t clear the array and continue.  Please send me a copy of the code that doesn&#039;t work.</description>
		<content:encoded><![CDATA[<p>Hi Anand,</p>
<p>You read each row from the database table and store some values in the array.  You increment the array index either before or after each row.  Then you look at values in the array, with an index value that you previously used to store values, and you don&#8217;t find anything.  That sounds strange.  If you use an index value less than zero or greater than 99, you should get a fatal error message that stops the program; it won&#8217;t clear the array and continue.  Please send me a copy of the code that doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/comment-page-1/#comment-2407</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Mon, 24 Aug 2009 05:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=420#comment-2407</guid>
		<description>Hi all..
 
I tried with concept of Array.. My table consist of more than 500 rows.. I tried with minimum value to size of the array says 100.. when i was trying to retrieve the value from table to array.. It didnt retrieve any value from table.. And it doesnt show any error message also.. After I increased the size of the array. Its retrieves the value from table.. why its so.. I hope the sql statement runs beyond the size of the array.. even it is overflow r underflow atleast it should retrieve minimum records as i mentioned in size.. I want to know when overflow occurs whether the entire array is cleared..  (I am using brio 6.1 and SQR for oracle. extent is not there to increase the size of the array automatically)

Thanks in Advance
Anandhraj</description>
		<content:encoded><![CDATA[<p>Hi all..</p>
<p>I tried with concept of Array.. My table consist of more than 500 rows.. I tried with minimum value to size of the array says 100.. when i was trying to retrieve the value from table to array.. It didnt retrieve any value from table.. And it doesnt show any error message also.. After I increased the size of the array. Its retrieves the value from table.. why its so.. I hope the sql statement runs beyond the size of the array.. even it is overflow r underflow atleast it should retrieve minimum records as i mentioned in size.. I want to know when overflow occurs whether the entire array is cleared..  (I am using brio 6.1 and SQR for oracle. extent is not there to increase the size of the array automatically)</p>
<p>Thanks in Advance<br />
Anandhraj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/comment-page-1/#comment-1661</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Mon, 03 Aug 2009 17:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=420#comment-1661</guid>
		<description>I may do that.  Thanks for the photo.</description>
		<content:encoded><![CDATA[<p>I may do that.  Thanks for the photo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Josephson</title>
		<link>http://peoplesoftsqr.com/index.php/2009/08/hooray-for-arrayspart2/comment-page-1/#comment-1660</link>
		<dc:creator>Bob Josephson</dc:creator>
		<pubDate>Mon, 03 Aug 2009 16:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=420#comment-1660</guid>
		<description>Maybe you should post the User Group info as a separate article, so people who don&#039;t read about arrays will still see it.

Alas, I don&#039;t live in Northern California. In fact, I&#039;m not sure I even have a life outside of computers.
&#160;.&#160;&#160; .
&#160;&#160; &#124;
~~~</description>
		<content:encoded><![CDATA[<p>Maybe you should post the User Group info as a separate article, so people who don&#8217;t read about arrays will still see it.</p>
<p>Alas, I don&#8217;t live in Northern California. In fact, I&#8217;m not sure I even have a life outside of computers.<br />
&nbsp;.&nbsp;&nbsp; .<br />
&nbsp;&nbsp; |<br />
~~~</p>
]]></content:encoded>
	</item>
</channel>
</rss>
