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



logical L1:
   K CmCusn
   S CmDiv               Values('01')

Logical L2:
   K CmCusn
   S CmDiv               Values('02')

this will create 2 access paths.  Using DYNSLT the system creates 1 accpth.

another way to go to create only 1 accpth is to move the select field into
the keylist:

logical L1:
   K CmCusn
   K CmDiv

then use SETLL and READE in your code to just get records of a selected key.


Steve

-----Original Message-----
From: midrange-l-bounces@midrange.com
[mailto:midrange-l-bounces@midrange.com]On Behalf Of Smith, Nelson
Sent: Thursday, February 06, 2003 11:03 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Database Access Path Question


The DYNSLT discussion is interesting, but doesn't directly address my
original question:

If two logicals have the same keys and select field, but select on different
data in that select field, will they use the same access path, part of the
access path, or not at all?

> -----Original Message-----
> From: Steve Richter [SMTP:srichter@autocoder.com]
> Sent: Thursday, February 06, 2003 10:35 AM
> To:   Midrange Systems Technical Discussion
> Subject:      RE: Database Access Path Question
>
> It depends on how many records meet the selection criteria. One factor
> that
> will always favor dynslt is that data mgmt can select records much faster
> than rpg code can.
>
> accpth(*rebld or *dly) is another option.  Create standalone logicals w/o
> dynslt.  If they are used once a week in batch or if conditions permit in
> an
> online appl, tell the system to *DLY accpth maint or *REBLD the accpth
> with
> the file is opened.
>
> Steve
>
> -----Original Message-----
> From: midrange-l-bounces@midrange.com
> [mailto:midrange-l-bounces@midrange.com]On Behalf Of David Dunfield
> Sent: Thursday, February 06, 2003 10:12 AM
> To: Midrange Systems Technical Discussion
> Subject: RE: Database Access Path Question
>
>
> DYNSLT may be an option, but we have experienced less than great
> results using dynslt in reading records. It does work, but it still
> reads all records in access path to select only those DYNSLT.
>
>
> _______________________________________________


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.