If the file has never been closed, just do a quick LIST on the file.  If
FILE.USAGE is on then when you end the list, you'll at LEAST get some
read hits on it.

Bob Woodward
Programmer/Analyst
Harbor Wholesale Grocery
[EMAIL PROTECTED]


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:owner-u2-
> [EMAIL PROTECTED] On Behalf Of Glenn Herbert
> Sent: Thursday, November 18, 2004 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [U2] RE: [UV] Monitoring file changes
> 
> Yeah. I said that in a previous email.  The question was simply is
there a
> way to determine if statistics are enabled and, without having to
delve
> into the file header, listing out the statistics using FILE.USAGE is
the
> only way to tell.   Of course, you are
> correct that IF statistics collection HAS been enabled, yet the file
has
> NEVER been closed, thus no header updates have occurred.....
> 
> Ok. Tried this.  Statistics collection can definitely be determined
using
> the FILE.USAGE command.  If they are enabled, the listing will also
> include
> a line such as:
> 
> Statistics last reset <timestamp>
> 
> (Statistics last reset Thu Nov 18 17:06:33 2004)
> 
> IF this line does NOT appear, statistics collection is definitely OFF.
> 
> 
> 
> At 04:22 PM 11/18/2004, you wrote:
> >I don't think that's correct. I did some tests on this several years
ago.
> >If memory serves, when file usage is ON, counts are held in memory.
They
> >don't actually get written to the file header on disk until the file
is
> closed.
> >
> >Or am I mis-remembering again?
> >
> >--
> >
> >Regards,
> >
> >Clif
> >
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >W. Clifton Oliver, CCP
> >CLIFTON OLIVER & ASSOCIATES
> >Tel: +1 619 460 5678    Web: www.oliver.com
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> >Glenn Herbert wrote:
> >
> >>I believe if you run FILE.USAGE <filename> and all values are zero,
then
> >>statistic collection is OFF.  You enable it using FILE.USAGE.CLEAR;
> >>disable it using FILE.USAGE.OFF.
> >>At 02:54 PM 11/18/2004, you wrote:
> >>
> >>>Is there a way to tell if FILE.USAGE has been set to collect
> information?
> >>>-Dianne
> >-------
> >u2-users mailing list
> >[EMAIL PROTECTED]
> >To unsubscribe please visit http://listserver.u2ug.org/
> -------
> u2-users mailing list
> [EMAIL PROTECTED]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to