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


  • Subject: RE: Tool to analyze queries
  • From: "Brad Bird" <BBird@xxxxxxxxxxxx>
  • Date: Wed, 9 Feb 2000 11:14:25 -0600
  • Importance: Normal

Elena Vázquez,

What I've done during our Y2K analysis is use the RTVQMQRY command on the
*QRYDFN objects.  It'll create a source file member of the query showing the
corresponding SQL statements. Then I can look at the source member for the
file names and field names used in the query.

i.e.;

RTVQMQRY QMQRY(MYQRYOBJ) SRCFILE(MYLIB/MYSRCFILE) ALWQRYDFN(*YES)

<MYLIB/MYSRCFILE(MYQRYOBJ)>

H QM4 05 Q 01 E V W E R 01 03 98/11/13 08:46
V 1001 050 looking for trucks in specific area
V 5001 004 *HEX
SELECT
  ALL       PHVEH, PHTIME, PHLCMI, PHLCDI, PHLCNM, PHCMIL, PHCDIR, PHCNAM,
PHCSTA
  FROM      OMNIDATA/OMPOSHIS T01
  WHERE     PHTIME BETWEEN 961102220000 AND 961103020000
    AND     PHLCST = 'TX'
  ORDER BY  PHLCNM ASC, PHTIME ASC, PHVEH ASC

The FROM shows your file name(s).
The WHERE is the field comparisons, ORDER BY is the sorting, etc.

HTH

-------------------------
Brad Bird                         mailto:bbird@primeinc.com
Prime, Inc.                       http://www.primeinc.com
2740 N Mayfair
Springfield, MO  65803
phone:(417) 866-0001 x3211
fax:  (417) 521-6863


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.