× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I don't get where the confusion is supposed to be coming from. The OP
and everyone else who has replied to his question is talking about what
happens when doing a SETLL on a logical view with a partial key. Any
mention of SQL is just clouding the issue IMHO.

Trevor Briggs
Analyst/Programmer
Lincare, Inc.
(727) 431-1246
TBriggs2@xxxxxxxxxxx
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of TheBorg
Sent: Thursday, June 20, 2013 11:14 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: READE with partial key

Booth wrote:
Here is where I am having trouble. Lets say that the file is uniquely
keyed by Item and SKU number. Lets say there are logicals defined by
Item & color, Item & size, and Item & date.

If my program uses the logical of Item & Date and I SETLL on item
alone,

will I always get the lowest Item & Date record?


Then Trevor wrote:
Yes. (If you define the file as keyed on the F spec.)

Then Booth wrote:
Any day is a good day when I learn something new. Thank you. :)


Booth -

As Birgitta implied, perhaps you are confusing RLA with SQL.

If Jeff was using an SQL cursor to retrieve the data, his select
statement
would necessarily need to include an ORDER BY clause which specifies
item
*and* date in order to ensure the proper sequencing.

-sjl




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.