 




<?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: Using QUSRTVUS API in COBOL</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 17:13:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/#comment-116254</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Thu, 14 Feb 2013 03:10:02 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/#comment-116254</guid>
		<description><![CDATA[&lt;EM&gt;...to fetch the header information what values i need to pass in &#160;the start variable and Length variable ?&lt;/EM&gt;
&#160;
I don&#039;t know what values you want. It depends on where you want to start in the headers and how much of the headers you want to retrieve.
&#160;
The link I gave diagrams possible ares that you might need or be interested in. Offsets are shown.
&#160;
You can use the QUSPTRUS API to retrieve a pointer to the space. The offsets to the pointer address are shown in the diagram.
&#160;
If you don&#039;t want to use QUSPTRUS, you can use the QUSRTVUS API, as you showed. Instead of an offset for a pointer, you use the position to start your retrieval.
&#160;
Offsets use a zero base for the start of the space. Positions use (1) as the start of the space. You used QUSRTVUS, so you would take an offset value from the diagram and add (1) to it for the position. The position is the &quot;starting value&quot;.
&#160;
But I don&#039;t know where you want to start. Try different starting positions and lengths, retrieve some values and look at them. Compare what you retrieve to the format definitions in the documentation. That&#039;s how you will learn.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p><em>&#8230;to fetch the header information what values i need to pass in &nbsp;the start variable and Length variable ?</em><br />
&nbsp;<br />
I don&#8217;t know what values you want. It depends on where you want to start in the headers and how much of the headers you want to retrieve.<br />
&nbsp;<br />
The link I gave diagrams possible ares that you might need or be interested in. Offsets are shown.<br />
&nbsp;<br />
You can use the QUSPTRUS API to retrieve a pointer to the space. The offsets to the pointer address are shown in the diagram.<br />
&nbsp;<br />
If you don&#8217;t want to use QUSPTRUS, you can use the QUSRTVUS API, as you showed. Instead of an offset for a pointer, you use the position to start your retrieval.<br />
&nbsp;<br />
Offsets use a zero base for the start of the space. Positions use (1) as the start of the space. You used QUSRTVUS, so you would take an offset value from the diagram and add (1) to it for the position. The position is the &#8220;starting value&#8221;.<br />
&nbsp;<br />
But I don&#8217;t know where you want to start. Try different starting positions and lengths, retrieve some values and look at them. Compare what you retrieve to the format definitions in the documentation. That&#8217;s how you will learn.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asakla</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/#comment-116176</link>
		<dc:creator>asakla</dc:creator>
		<pubDate>Wed, 13 Feb 2013 11:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/#comment-116176</guid>
		<description><![CDATA[Hi Tom ,&#160;Thanks .I made the changes, But how do i fetch the header information ,&#160;Meaning to fetch the header information what values i need to pass in &#160;the start variable and Length variable ?]]></description>
		<content:encoded><![CDATA[<p>Hi Tom ,&nbsp;Thanks .I made the changes, But how do i fetch the header information ,&nbsp;Meaning to fetch the header information what values i need to pass in &nbsp;the start variable and Length variable ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/#comment-116175</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 13 Feb 2013 11:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/#comment-116175</guid>
		<description><![CDATA[First, you can&#039;t use 9(04) COMP variables. Those would only only define 2-byte integers, and the API asks for 4-byte integers. Make those 9(09) COMP instead. And if you start in position 1 and retrieve 28 bytes, you&#039;re only getting the first 28 bytes of the 64-byte &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapiref%2Fusfcommonstructure.htm&quot; rel=&quot;nofollow&quot;&gt;User Area of the space&lt;/a&gt;. To get to the list, you first need to retrieve the 4-byte binary offset value beginning in position 125 (offset 124) of the header. Use the offset that you retrieve to access the list entries rather than using (1). And be aware that it&#039;s an offset value, not a position; so you&#039;ll need to increment it by (1) before sending it into QUSRTVUS again. -- Tom]]></description>
		<content:encoded><![CDATA[<p>First, you can&#8217;t use 9(04) COMP variables. Those would only only define 2-byte integers, and the API asks for 4-byte integers. Make those 9(09) COMP instead. And if you start in position 1 and retrieve 28 bytes, you&#8217;re only getting the first 28 bytes of the 64-byte <a href="http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapiref%2Fusfcommonstructure.htm" rel="nofollow">User Area of the space</a>. To get to the list, you first need to retrieve the 4-byte binary offset value beginning in position 125 (offset 124) of the header. Use the offset that you retrieve to access the list entries rather than using (1). And be aware that it&#8217;s an offset value, not a position; so you&#8217;ll need to increment it by (1) before sending it into QUSRTVUS again. &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asakla</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/#comment-116174</link>
		<dc:creator>asakla</dc:creator>
		<pubDate>Wed, 13 Feb 2013 11:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/#comment-116174</guid>
		<description><![CDATA[HI Tom ,&#160;&lt;div&gt;&#160;&lt;/div&gt;&lt;div&gt;Paameters setup of QUSRTVUS&lt;/div&gt;&lt;div&gt;&lt;div&gt;05 QUSR-REC. &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;/div&gt;&lt;div&gt;&#160; &#160;10 QUSRSPN &#160; &#160; &#160;PIC X(20) VALUE &quot;MJSDTMGRSPMIUOALLV1&quot;.&#160;&lt;/div&gt;&lt;div&gt;&#160; &#160;10 QUSRSTR &#160; &#160; &#160;PIC 9(04) COMP VALUE 1 &#160;. &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;/div&gt;&lt;div&gt;&#160; &#160;10 QUSRLNG &#160; &#160; &#160;PIC 9(04) COMP VALUE 28. &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160;&lt;/div&gt;&lt;div&gt;&#160; &#160;10 QUSRDTA &#160; &#160; &#160;PIC X(5000) VALUE SPACES. &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Calling of the API&#160;&lt;/div&gt;&lt;div&gt;&lt;div&gt;CALL &quot;QUSRTVUS&quot; USING QUSRSPN &#160; &#160;&lt;/div&gt;&lt;div&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; QUSRSTR &#160; &#160;&lt;/div&gt;&lt;div&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; QUSRLNG &#160; &#160;&lt;/div&gt;&lt;div&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; QUSRDTA &#160; &#160;&lt;/div&gt;&lt;div&gt;END-CALL &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160;&lt;/div&gt;&lt;/div&gt;]]></description>
		<content:encoded><![CDATA[<p>HI Tom ,&nbsp;
<div>&nbsp;</div>
<div>Paameters setup of QUSRTVUS</div>
<div>
<div>05 QUSR-REC. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div>&nbsp; &nbsp;10 QUSRSPN &nbsp; &nbsp; &nbsp;PIC X(20) VALUE &#8220;MJSDTMGRSPMIUOALLV1&#8243;.&nbsp;</div>
<div>&nbsp; &nbsp;10 QUSRSTR &nbsp; &nbsp; &nbsp;PIC 9(04) COMP VALUE 1 &nbsp;. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div>&nbsp; &nbsp;10 QUSRLNG &nbsp; &nbsp; &nbsp;PIC 9(04) COMP VALUE 28. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
<div>&nbsp; &nbsp;10 QUSRDTA &nbsp; &nbsp; &nbsp;PIC X(5000) VALUE SPACES. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</div>
<div></div>
<div>Calling of the API&nbsp;</div>
<div>
<div>CALL &#8220;QUSRTVUS&#8221; USING QUSRSPN &nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QUSRSTR &nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QUSRLNG &nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QUSRDTA &nbsp; &nbsp;</div>
<div>END-CALL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/#comment-116172</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 13 Feb 2013 10:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/using-qusrtvus-api-in-cobol/#comment-116172</guid>
		<description><![CDATA[You need to show us your code. We can&#039;t know what values you should use without seeing how you set it up. -- Tom]]></description>
		<content:encoded><![CDATA[<p>You need to show us your code. We can&#8217;t know what values you should use without seeing how you set it up. &#8212; 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/9 queries in 0.021 seconds using memcached
Object Caching 321/327 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 18:36:37 -->