× 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 have a file that I need to chain to during a program. 
>The file doesn't have a key field, so I am trying to 
>decide if I should create a Logical file over the file, 
>or should I use OPNQRYF. I want to use OPNQRYF, but
>how do I can't get the RPG program to compile since 
>the file that the program is using isn't keyed. 
>Any suggestions?

My general breakdown goes like this:  If you need fast response time, or the
same static access is used more than a dozen times a shift, build the
logical.  If it's an infrequently used access path and is for a report, I'll
use OPNQRYF.  The exceptions to this occur when somebody wants a dynamic
select/omit and ordering for an interactive job.  Then I'll use OPNQRYF AND
build a logical.

If the file isn't keyed then you'll have to create a format file that is, so
the RPG program will recognise the key you'll build at runtime with OPNQRYF.
  --buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.