 




<?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: Printing Array in Set Order</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/printing-array-in-set-order/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/printing-array-in-set-order/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 14:10:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/printing-array-in-set-order/#comment-69653</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 29 Oct 2009 06:29:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-69653</guid>
		<description><![CDATA[Your question leaves out far too much info to give a decent answer. What OS version/release are you working with? Do you have 53 3-char variables plus six 2-char variables? ...or do you have 59 3-char variables with six of them only having values two chars wide? If you have 53 3-char variables, can they have blanks in them? (Trailing blanks?) Are these all separate variables or do you have them in an array? Do these print with spaces between them or are they concatenated together? Are they all printed on a single line? How wide is your print line?

Can you give an example of maybe half a dozen 3-char variables and three 2-char variables, with their values, and show what the expected output should look like?

Tom]]></description>
		<content:encoded><![CDATA[<p>Your question leaves out far too much info to give a decent answer. What OS version/release are you working with? Do you have 53 3-char variables plus six 2-char variables? &#8230;or do you have 59 3-char variables with six of them only having values two chars wide? If you have 53 3-char variables, can they have blanks in them? (Trailing blanks?) Are these all separate variables or do you have them in an array? Do these print with spaces between them or are they concatenated together? Are they all printed on a single line? How wide is your print line?</p>
<p>Can you give an example of maybe half a dozen 3-char variables and three 2-char variables, with their values, and show what the expected output should look like?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: waltz400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/printing-array-in-set-order/#comment-47947</link>
		<dc:creator>waltz400</dc:creator>
		<pubDate>Wed, 13 Jul 2005 13:13:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-47947</guid>
		<description><![CDATA[What I would do is first intialize all array elements to *HIVAL. For a 3 character field this would place values of hex FFFFFF in each. 

Next to load the array do a lookup with the value you want to place in the array element. If no entry is found do a lookup using *HIVAL to find the first available blank entry and load the data into it with the EVALR operation code. This loads the array element and right justifies the data so a value of &#039; 12&#039; will be stored this way. 

Once you get all values loaded into the array, do a SORTA operation on the array. This sorts the array in ascending sequence as a default and since any blank entries will still have *HIVAL in them these will be at the end of the array when done. 

Then do a DO loop to run through the array and end your processing when you hit the first *HIVAL entry. 

Hope this helps.]]></description>
		<content:encoded><![CDATA[<p>What I would do is first intialize all array elements to *HIVAL. For a 3 character field this would place values of hex FFFFFF in each. </p>
<p>Next to load the array do a lookup with the value you want to place in the array element. If no entry is found do a lookup using *HIVAL to find the first available blank entry and load the data into it with the EVALR operation code. This loads the array element and right justifies the data so a value of &#8216; 12&#8242; will be stored this way. </p>
<p>Once you get all values loaded into the array, do a SORTA operation on the array. This sorts the array in ascending sequence as a default and since any blank entries will still have *HIVAL in them these will be at the end of the array when done. </p>
<p>Then do a DO loop to run through the array and end your processing when you hit the first *HIVAL entry. </p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bradskk</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/printing-array-in-set-order/#comment-47948</link>
		<dc:creator>bradskk</dc:creator>
		<pubDate>Wed, 13 Jul 2005 13:10:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-47948</guid>
		<description><![CDATA[As far as the unwanted spaces - use the one of the trim functions to remove them as you are building the output]]></description>
		<content:encoded><![CDATA[<p>As far as the unwanted spaces &#8211; use the one of the trim functions to remove them as you are building the output</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.076 seconds using memcached
Object Caching 295/301 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 14:18:32 -->