 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; RPG arrays</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/rpg-arrays/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 10:19:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>RPG Free Array Processing Problem</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg-free-array-processing-problem-2/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/rpg-free-array-processing-problem-2/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 15:21:30 +0000</pubDate>
		<dc:creator>SKF</dc:creator>
				<category><![CDATA[iSeries]]></category>
		<category><![CDATA[RPG arrays]]></category>
		<category><![CDATA[RPG ILE]]></category>
		<category><![CDATA[V5R4]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[If you&#8217;ve seen this question before it&#8217;s because when I add my code and submit and view it, it is unreadable. I&#8217;m trying to get a &#8220;clean&#8221; representation of my question. Thanks for your patience. I have loaded a data structure from a database file with three 3 byte fields, i.e. 100101102. It loads into [...]]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;ve seen this question before it&#8217;s because when I add my code and submit and view it, it is unreadable. I&#8217;m trying to get a &#8220;clean&#8221; representation of my question. Thanks for your patience.<br/><br/> I have loaded a data structure from a database file with three 3 byte fields, i.e. 100101102. It loads into the array just fine. Now, I want to pick the first element of the array and process it&#8217;s content, then the second element and the third. Currently, Im attempting to load the first element into a 3 byte standalone field with the %subarr BIF and I get the message (Array has too many omitted indexes) when compiling. Someone in another forum, different problem, said the receiver value must be a %subarr also. Does anyone have any examples of something like this?<br/><br/> Thanks in advance.<br/><br/> Below is my code:<br/><br/> Fmaster if e k disk <br/><br/>  <br/><br/> Dx s 3u 0 <br/><br/> Dy s 3u 0 <br/><br/> Ditmtype s 3a <br/><br/> Darr1 s 9 dim(1000) <br/><br/>  <br/><br/> Dtypes ds <br/><br/> D type1 3a <br/><br/> D type2 3a <br/><br/> D type3 3a <br/><br/>  <br/><br/> /free <br/><br/> x = 1; <br/><br/> read master; <br/><br/> dow NOT %eof(master) and x &lt;= 600; <br/><br/> arr1 = types; <br/><br/> dow x &lt;= 3; <br/><br/> itmtype = %subarr(arr1:x:3); <br/><br/> x = x + 1; <br/><br/> enddo; <br/><br/> read master; <br/><br/> enddo; <br/><br/>  <br/><br/> *inlr = *on; <br/><br/>  <br/><br/> /end-free <br/><br/> The array loads just the way I want it. <br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/rpg-free-array-processing-problem-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RPG Free Array Processing</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg-free-array-processing/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/rpg-free-array-processing/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 15:28:13 +0000</pubDate>
		<dc:creator>ShawnKF</dc:creator>
				<category><![CDATA[iSeries]]></category>
		<category><![CDATA[RPG arrays]]></category>
		<category><![CDATA[RPG ILE]]></category>
		<category><![CDATA[V5R4]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am loading a DS from a database file into an array nine length with three elements, i.e. 100101102. I want to increment the array to load each element one at a time and save it to a standalone variable ( 3 bytes long). In another forum, someone said the receiver must be a %subarr [...]]]></description>
				<content:encoded><![CDATA[<p>I am loading a DS from a database file into an array nine length with three elements, i.e. 100101102. I want to increment the array to load each element one at a time and save it to a standalone variable ( 3 bytes long). In another forum, someone said the receiver must be a %subarr variable. In any case, this code gives an error of (Array has too many omitted indexes).</p>
<p>Below is my code example:</p>
<p>                                                              <br />
 Fmaster    if   e           k disk                           <br />
                                                              <br />
 Dx               s              3u 0                        <br />
 Dy                s              3u 0                        <br />
 Ditmtype       s              3a                          <br />
 Darr1            s              9    dim(1000)              <br />
                                                              <br />
 Dtypes            ds                                         <br />
 D type1                          3a                          <br />
 D type2                          3a                          <br />
 D type3                          3a                          <br />
                                                              <br />
  /free                                                       <br />
    x = 1;                                                    <br />
    read master;                                              <br />
    dow NOT %eof(master) and x &lt;= 600;                        <br />
      arr1 = types;                                           <br />
      dow x &lt;= 3;                                             <br />
       itmtype = %subarr(arr1:x:3);                           <br />
       x = x + 1;                                             <br />
      enddo;                                                  <br />
    read master;                                              <br />
    enddo;          <br />
                    <br />
    *inlr = *on;    <br />
                    <br />
  /end-free          </p>
<p>The array gets loaded, just as I want but picking out the individual elements from the array gives me the compilation error.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/rpg-free-array-processing/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Can anyone please tell me what is the basic difference between arrays and tables in RPG.</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/can-anyone-please-tell-me-what-is-the-basic-differance-between-arrays-and-tables-in-rpg/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/can-anyone-please-tell-me-what-is-the-basic-differance-between-arrays-and-tables-in-rpg/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 05:56:54 +0000</pubDate>
		<dc:creator>Mohan K</dc:creator>
				<category><![CDATA[RPG]]></category>
		<category><![CDATA[RPG arrays]]></category>
		<category><![CDATA[RPG Tables]]></category>
		<category><![CDATA[RPG/400]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi All, Can anyone please tell me what is the basic differance between arrays and tables in RPG and for which type of requirement we have to use arrays and tables. since there might be bit difference between both of them. Please explain me.]]></description>
				<content:encoded><![CDATA[<p>Hi All, <br/><br/> Can anyone please tell me what is the basic differance between arrays and tables in RPG and for which type of requirement we have to use arrays and tables. <br/><br/> since there might be bit difference between both of them. <br/><br/> Please explain me.<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/can-anyone-please-tell-me-what-is-the-basic-differance-between-arrays-and-tables-in-rpg/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Sorting data in RPGLE</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sorting-data-in-rpgle/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sorting-data-in-rpgle/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 16:46:58 +0000</pubDate>
		<dc:creator>6r</dc:creator>
				<category><![CDATA[RPG]]></category>
		<category><![CDATA[RPG arrays]]></category>
		<category><![CDATA[RPGLE]]></category>
		<category><![CDATA[RPGLE Program]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[How to sort data in rpgle program countrywise in program coding only?]]></description>
				<content:encoded><![CDATA[<p>How to sort data in rpgle program countrywise in program coding only?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sorting-data-in-rpgle/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RPG Array</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/array-3/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/array-3/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 09:47:42 +0000</pubDate>
		<dc:creator>Uppikal</dc:creator>
				<category><![CDATA[Report Program Generator]]></category>
		<category><![CDATA[RPG]]></category>
		<category><![CDATA[RPG arrays]]></category>
		<category><![CDATA[RPG IV]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hello ! Can I check for all the elements of an Array in single statement ? e.g. If Array(*All) = *Blanks ? I want to check that all elements of an array is blank or not.]]></description>
				<content:encoded><![CDATA[<p>Hello !<br />
Can I check for all the elements of an Array in single statement ? e.g. If Array(*All) = *Blanks ?<br />
I want to check that all elements of an array is blank or not.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/array-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</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/14 queries in 0.018 seconds using memcached
Object Caching 589/622 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 11:14:06 -->