 




<?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: how to code the parameters for API QUSRSPLA</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-code-the-parameters-for-api-qusrspla/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-code-the-parameters-for-api-qusrspla/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 00:46:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-code-the-parameters-for-api-qusrspla/#comment-73780</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 12 Feb 2010 20:46:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-73780</guid>
		<description><![CDATA[There are two parameters that might be most commonly declared incorrectly -- Length of receiver variable and Spooled file number. The API documentation shows both as BINARY(4). That essentially means they are &quot;4-byte binary numbers&quot;. (Or 32-bit binary.)

In ILE CL at V5R3 and later, they could both be declared as *INT, which defaults to *INT (4). In RPG IV, they could be declared as 10I 0.

Note that because &#039;Spooled file number&#039; can accept negative values, the declaration cannot be &quot;10U 0&quot;. A sign must be accommodated.

Also note that &quot;BINARY(4)&quot; is not precisely the same as RPG&#039;s &#039;B&#039; data type. While the parms can generally be declared as data type &#039;B&#039;, there are plenty of reasons not to do so.

Tom]]></description>
		<content:encoded><![CDATA[<p>There are two parameters that might be most commonly declared incorrectly &#8212; Length of receiver variable and Spooled file number. The API documentation shows both as BINARY(4). That essentially means they are &#8220;4-byte binary numbers&#8221;. (Or 32-bit binary.)</p>
<p>In ILE CL at V5R3 and later, they could both be declared as *INT, which defaults to *INT (4). In RPG IV, they could be declared as 10I 0.</p>
<p>Note that because &#8216;Spooled file number&#8217; can accept negative values, the declaration cannot be &#8220;10U 0&#8243;. A sign must be accommodated.</p>
<p>Also note that &#8220;BINARY(4)&#8221; is not precisely the same as RPG&#8217;s &#8216;B&#8217; data type. While the parms can generally be declared as data type &#8216;B&#8217;, there are plenty of reasons not to do so.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matis</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-code-the-parameters-for-api-qusrspla/#comment-73771</link>
		<dc:creator>matis</dc:creator>
		<pubDate>Fri, 12 Feb 2010 16:39:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-73771</guid>
		<description><![CDATA[this is a batch job and i email the report. yes, the job was emailing some other report produced - perhaps in this job stream - perhaps somewhere else - with the same name. i began doing research and came up with this particular api. which special value -1? in the qusrspla api? my difficulty is in actually defining and coding the parameters so i get the expected results. so far i&#039;ve been getting a CPF3C20 when I call the api]]></description>
		<content:encoded><![CDATA[<p>this is a batch job and i email the report. yes, the job was emailing some other report produced &#8211; perhaps in this job stream &#8211; perhaps somewhere else &#8211; with the same name. i began doing research and came up with this particular api. which special value -1? in the qusrspla api? my difficulty is in actually defining and coding the parameters so i get the expected results. so far i&#8217;ve been getting a CPF3C20 when I call the api</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/10 queries in 0.045 seconds using memcached
Object Caching 281/287 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 00:54:56 -->