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



Greg

Before doing the RUNQRY, execute STRDBG without any program. Then you will get messages in your job log that will say why the optimizer took the action it did - create a copy.

Is FILENAME the PF name of the LF name? When you use RUNQRY like this, I'm not sure what happens.

You might try DYNSLT on the LF. If it helps, keep it. Look it up in InfoCenter for what it does.

The STRDBG is the most important thing to do first.

HTH
Vern

At 08:14 AM 8/16/2005, you wrote:

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



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


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.