 




<?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: SQLRPGLE- Query Not fetching records in program</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-query-not-fetching-records-in-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-query-not-fetching-records-in-program/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 20:47:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-query-not-fetching-records-in-program/#comment-115331</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Thu, 17 Jan 2013 15:22:32 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-query-not-fetching-records-in-program/#comment-115331</guid>
		<description><![CDATA[Yeah, the query is only the description of records that will be returned. It doesn&#039;t actually return any records. They need to be FETCHed. What does the embedded SQL look like other than the query?

Further, the SELECT statement that you show clearly cannot work in STRSQL nor embedded in a program. And if you are going to select based on a value input through a display file, you can&#039;t use the same statement in a program as you would in STRSQL anyway.

If you&#039;re going to show us a statement that has a problem, you have to show us the actual statement. We can&#039;t guess how you might have changed it from what your program is running.

Tom]]></description>
		<content:encoded><![CDATA[<p>Yeah, the query is only the description of records that will be returned. It doesn&#8217;t actually return any records. They need to be FETCHed. What does the embedded SQL look like other than the query?</p>
<p>Further, the SELECT statement that you show clearly cannot work in STRSQL nor embedded in a program. And if you are going to select based on a value input through a display file, you can&#8217;t use the same statement in a program as you would in STRSQL anyway.</p>
<p>If you&#8217;re going to show us a statement that has a problem, you have to show us the actual statement. We can&#8217;t guess how you might have changed it from what your program is running.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-query-not-fetching-records-in-program/#comment-115313</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 17 Jan 2013 12:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-query-not-fetching-records-in-program/#comment-115313</guid>
		<description><![CDATA[so if this is going to return multiple records you need to declare a cursor for the sql, open it and fetch records from it...]]></description>
		<content:encoded><![CDATA[<p>so if this is going to return multiple records you need to declare a cursor for the sql, open it and fetch records from it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-query-not-fetching-records-in-program/#comment-115312</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 17 Jan 2013 12:41:44 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-query-not-fetching-records-in-program/#comment-115312</guid>
		<description><![CDATA[Group by Flie1.Fld1, File1.Fldx Order by Balance Desc 
should be File1.Fld1, File1.Fld2 
I think that you will only be able to order by fields that are extracted.]]></description>
		<content:encoded><![CDATA[<p>Group by Flie1.Fld1, File1.Fldx Order by Balance Desc<br />
should be File1.Fld1, File1.Fld2<br />
I think that you will only be able to order by fields that are extracted.</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/8 queries in 0.035 seconds using memcached
Object Caching 297/298 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 20:57:17 -->