× 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 created a logical file over a rather large physical file to help speed
up a long running program.  I'd like to look at the data retrieved by
the logical file so I can get ready to test the changed program.

When I do RUNQRY *N FILENAME the system returns "Query running. Creating
a copy of file FILENAME in LIBNAME".   This grinds away for a long long
time and I have to kill my session.

>From Google I find that this message comes from OPNQRYF.

The question is what's going on here?   If there is an access path
created by the CRTLF command why doesn't it just display the data?
Other logical files instantly display records.

The DDS for the LF does contain select and omit directives.   Is that
any significance?   I don't think the program will run quicker if the
operating system is going to build its own path to the data.

Here is the DDS
...A..........T.Name++++++.Len++TDpB......Functions+++++++++++++++
   A          R IMHISTR                   PFILE(IMHIST)           
   A*                                                             
   A            CONO                                              
   A            TCODE                                             
   A            ITNBR                                             
   A            HOUSE                                             
   A            TRNDT                                             
   A            TRQTY                                             
   A*                                                             
   A          K ITNBR                                             
   A          K TRNDT                                             
   A*                                                             
   A          S TCODE                     COMP(EQ 'SA')           
   A          S TCODE                     COMP(EQ 'IS')           
   A          O CONO                      COMP(EQ 9)              
   A          O TRQTY                     COMP(EQ 0)              
   A          O                           ALL                     
 
TIA,                                                                 
Greg




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.