× 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.



Thank you,

Rich


-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Barbara
Morris
Sent: Friday, February 05, 2016 3:04 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: SETLL question

On 2/2/2016 10:51 PM, Rich Marion wrote:
Is there documentation explaining about the use of parenthesis? I was
unaware that there is a difference when you do not specify the
parenthesis.

When you don't specify the parentheses, the compiler uses the normal
historical rules for Factor 2 of a fixed-form statement which require an
exact match.

Here's where it says that a list of keys can have expressions that don't
have to match the file's key exactly. But I see that it doesn't say that a
single field name must match the file's key.


If the file is keyed by multiple fields, wouldn't either example below
return the first record that matches the key specified? (at least that is
what is specified in the manuals I have read.)


Yes. The only difference between coding a field with and without
parentheses is that the compiler's rules are relaxed when it is a
parenthesized list. The value used actually used as the search argument
in the keyed operation would be the same.


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.