MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » January 2014

RE: RUNNING DMPOBJ on a *QRYDFN shows file names not used in file selection?



fixed


Personally, I prefer to use the RTVQMQRY command to place the query information
into a source file member and then scan the member with a program or utility.

Terry
TGIF!

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Gerald Kern
Sent: Friday, January 24, 2014 2:22 PM
To: Midrange
Subject: RUNNING DMPOBJ on a *QRYDFN shows file names not
used in file selection?

Hi All,

We have a homegrown utility that will take a file name and use that to
determine any dependent logicals and build a list of
physical/logical file
names and then search the system source code for their use.

The second step is to also search any queries that might be
using the file
or one of it's logicals.

To search the queries we issue a DMPOBJ OBJ(YOURLIB/YOURQRY)
OBJTYPE(*QRYDFN) command which produces a spool file that we
can then copy
to a data file and scan the data file for the file name(s).

So we ran this utility last night it reported a file name
being used by a
query, but when we examined the query we found there was only
one file used
in the file selection, and that file didn't have any
dependent logicals on
that physical.

So we are kind of stumped as to why the dump shows a file
being used that
clearly isn't. Could this dump data be residual from perhaps
an earlier use
where maybe the file name seen in the dump was used in this query?

Or is there a better way to determine what queries use a file
(and or it's
associated logicals)?

--
Thanks, Jerry

Gerald Kern - Information Technology
Programming Supervisor
IBM Certified RPG IV Developer
Lotus Notes/Domino Administrator
The Toledo Clinic, Inc.
4235 Secor Road
Toledo, OH 43623
Phone 419-479-5535
--
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.


Confidentiality Notice:

The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is
not authorized and may be unlawful.








Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact