 




<?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: Get the ASPs with QYASPOL API from c++</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/get-the-asps-with/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/get-the-asps-with/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 00:24:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: gracep</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/get-the-asps-with/#comment-98374</link>
		<dc:creator>gracep</dc:creator>
		<pubDate>Fri, 28 Oct 2011 14:03:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-98374</guid>
		<description><![CDATA[Thanks again !]]></description>
		<content:encoded><![CDATA[<p>Thanks again !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/get-the-asps-with/#comment-98087</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 21 Oct 2011 21:32:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-98087</guid>
		<description><![CDATA[Sorry, ignore much of my previous comment. I glossed right over your use of QGYGTLE. Too often eyes see what they expect to see.

Tom]]></description>
		<content:encoded><![CDATA[<p>Sorry, ignore much of my previous comment. I glossed right over your use of QGYGTLE. Too often eyes see what they expect to see.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/get-the-asps-with/#comment-98085</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 21 Oct 2011 21:09:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-98085</guid>
		<description><![CDATA[Be aware that this cannot return more than 16 records. If you ever need more, you&#039;ll either need a sufficiently larger receiver variable or enough calls to QGYGETLE to get remaining records.

In any case, you probably should call the &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapis%2Fqgyclst.htm&quot;&gt;Close List (QGYCLST) API&lt;/a&gt; after you&#039;re done receiving the list.

Tom]]></description>
		<content:encoded><![CDATA[<p>Be aware that this cannot return more than 16 records. If you ever need more, you&#8217;ll either need a sufficiently larger receiver variable or enough calls to QGYGETLE to get remaining records.</p>
<p>In any case, you probably should call the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapis%2Fqgyclst.htm">Close List (QGYCLST) API</a> after you&#8217;re done receiving the list.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gracep</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/get-the-asps-with/#comment-98083</link>
		<dc:creator>gracep</dc:creator>
		<pubDate>Fri, 21 Oct 2011 20:47:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-98083</guid>
		<description><![CDATA[Thanks TomLiotta!
Changed to 16 and using the QGYGTLE  API and it gave me the ASP info :) 

&lt;pre&gt;
  Qgy_Gtle_ListInfo_t  listInfo ;                   
                                                    
                                                    
  char * handler = info.Request_Handle  ;           
  char r2 [1024 ];
                                                    
  QGYGTLE ( r2 ,                                    
            1024 ,                                  
            handler ,                               
            &amp;listInfo,                              
            info.Records_Returned ,                 
            -1 ,       
            &amp;errorCode ) ; 
                             
   ptr = r2  ;                                                     
   for ( int i =0 ; i &lt; info.Total_Records ; i ++ ) {                   
         printf ( &quot;Number:[%d] n&quot; , ((YASP0100_t *) ptr )-&gt; Number ) ; 
         ...
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Thanks TomLiotta!<br />
Changed to 16 and using the QGYGTLE  API and it gave me the ASP info <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<pre>
  Qgy_Gtle_ListInfo_t  listInfo ;                   
                                                    
                                                    
  char * handler = info.Request_Handle  ;           
  char r2 [1024 ];
                                                    
  QGYGTLE ( r2 ,                                    
            1024 ,                                  
            handler ,                               
            &amp;listInfo,                              
            info.Records_Returned ,                 
            -1 ,       
            &amp;errorCode ) ; 
                             
   ptr = r2  ;                                                     
   for ( int i =0 ; i &lt; info.Total_Records ; i ++ ) {                   
         printf ( "Number:[%d] n" , ((YASP0100_t *) ptr )-&gt; Number ) ; 
         ...
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/get-the-asps-with/#comment-98037</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 21 Oct 2011 02:16:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-98037</guid>
		<description><![CDATA[&lt;pre&gt;int numRecords = -1 ;&lt;/pre&gt;

Try changing that to:

&lt;pre&gt;int numRecords = 1 ;&lt;/pre&gt;

Since you are requesting format YASP0100 and it&#039;s only 64 bytes long, you could probably use:&lt;pre&gt;int numRecords = 16 ;&lt;/pre&gt;
By specifying Number of records to return as -1, the list will be built synchronously. But because it&#039;s a negative 1, you haven&#039;t actually asked that any records be returned to your program. All records should then need to be returned through calls to the &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapis%2Fmisc1b.htm&quot;&gt;Get List Entries (QGYGTLE)&lt;/a&gt; API.

I haven&#039;t quite figured out why this API was created as an &quot;Open List...&quot; API. It wouldn&#039;t seem ever to be enough ASPs to demand that much effort.

Tom]]></description>
		<content:encoded><![CDATA[<pre>int numRecords = -1 ;</pre>
<p>Try changing that to:</p>
<pre>int numRecords = 1 ;</pre>
<p>Since you are requesting format YASP0100 and it&#8217;s only 64 bytes long, you could probably use:
<pre>int numRecords = 16 ;</pre>
<p>By specifying Number of records to return as -1, the list will be built synchronously. But because it&#8217;s a negative 1, you haven&#8217;t actually asked that any records be returned to your program. All records should then need to be returned through calls to the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapis%2Fmisc1b.htm">Get List Entries (QGYGTLE)</a> API.</p>
<p>I haven&#8217;t quite figured out why this API was created as an &#8220;Open List&#8230;&#8221; API. It wouldn&#8217;t seem ever to be enough ASPs to demand that much effort.</p>
<p>Tom</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 6/8 queries in 0.012 seconds using memcached
Object Caching 329/330 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 03:27:18 -->