<?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"
	>
<channel>
	<title>Comments on: AS/400: Unique records in file</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/uniqe-records-in-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/uniqe-records-in-file/</link>
	<description></description>
	<pubDate>Mon, 09 Nov 2009 03:30:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Ambrish 82</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/uniqe-records-in-file/#comment-58287</link>
		<dc:creator>Ambrish 82</dc:creator>
		<pubDate>Wed, 03 Dec 2008 04:16:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-58287</guid>
		<description>thanks , it's really useful.</description>
		<content:encoded><![CDATA[<p>thanks , it&#8217;s really useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/uniqe-records-in-file/#comment-58261</link>
		<dc:creator>Philpl1jb</dc:creator>
		<pubDate>Tue, 02 Dec 2008 16:45:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-58261</guid>
		<description>Select distinct works great provide that all the fields retrivied are the same for a specific value of FLD1. It retrieves distinctly different rows.</description>
		<content:encoded><![CDATA[<p>Select distinct works great provide that all the fields retrivied are the same for a specific value of FLD1. It retrieves distinctly different rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/uniqe-records-in-file/#comment-58256</link>
		<dc:creator>Gilly400</dc:creator>
		<pubDate>Tue, 02 Dec 2008 15:01:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-58256</guid>
		<description>Hi,

Or if you're using SQL you could use a SELECT DISTINCT.

Regards,

Martin Gilbert.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Or if you&#8217;re using SQL you could use a SELECT DISTINCT.</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/uniqe-records-in-file/#comment-58253</link>
		<dc:creator>Philpl1jb</dc:creator>
		<pubDate>Tue, 02 Dec 2008 14:13:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-58253</guid>
		<description>A logical with UNIQUE keyword will prevent adding records that violate the rule.  It will error when compiled if the file contains duplicte key values.

The method to see one occurance of each varies with the access method.  
In QUERY/400 you could use report summary functions on fld1 and other fields that you want to report.

In RPG you could use the Key - something like this

*loval   SETTLL myfile
             Read      myfile
             dow        not %eof(myfile)
            process your record
FLd1  SETGT myfile
            Read      myfile
            enddo           

The SETGT will position you at the first record past the key value.

Phil</description>
		<content:encoded><![CDATA[<p>A logical with UNIQUE keyword will prevent adding records that violate the rule.  It will error when compiled if the file contains duplicte key values.</p>
<p>The method to see one occurance of each varies with the access method.<br />
In QUERY/400 you could use report summary functions on fld1 and other fields that you want to report.</p>
<p>In RPG you could use the Key - something like this</p>
<p>*loval   SETTLL myfile<br />
             Read      myfile<br />
             dow        not %eof(myfile)<br />
            process your record<br />
FLd1  SETGT myfile<br />
            Read      myfile<br />
            enddo           </p>
<p>The SETGT will position you at the first record past the key value.</p>
<p>Phil</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->