From:	SMTP%"dwing@uh01.Colorado.EDU" 16-DEC-1993 09:58:27.90
To:	EVERHART
CC:	
Subj:	Re: RMS Indexed file problem

X-Newsgroups: comp.os.vms
Subject: Re: RMS Indexed file problem
Message-ID: <1993Dec14.152840.508@buckie.hsc.colorado.edu>
From: dwing@uh01.Colorado.EDU (Dan Wing)
Date: 14 Dec 93 15:28:39 MDT
Reply-To: dwing@uh01.Colorado.EDU
Organization: Ski Bum Wanna-be, Incorporated
Nntp-Posting-Host: buckie.hsc.colorado.edu
Lines: 57
To: Info-VAX@CRVAX.SRI.COM
X-Gateway-Source-Info: USENET

In article <2ehusc$l64@genesis.ait.psu.edu>, jeo@psulias.psu.edu writes:
>We are running applications writing to indexed files and are seeing a random
>problem of garbage being written to the file with a consistent record size
>of 30004.  We have put checks in all of our programs that access the file to
>display messages to the console for record sizes greater than 20000.  TO date
>we have not had any messages displayed from our programs yet we still continue 
>to have these garbage records appear.  We are running VMS v6.0 on a cluster
>of a VAX 10630  and 9420.  Any help would be appreciated.

Try this to see what is going on.  It might help (be careful with it,
though -- you can see a lot of information fly by, and it requires 
privileges to use it, and could possibly crash your system).  This command 
should exist on AXP and in VMS V6.0, but I'm not 100% sure of either....

-Dan Wing, Systems Administrator, University Hospital, Denver
 dwing@uh01.colorado.edu or wing@eisner.decus.org

-----
                                SET WATCH

The following *undocumented* (and unsupported) DCL command allows you to 
monitor the VMS file system opening, closing, reading, and writing to files.  
This may be useful when running programs to determine the filenames opened 
and read/write counts to these files.

Because this is an undocumented command, it should not be included in any
production programs or .COM files.  


  $ SET WATCH FILE/CLASS=(option[,...])

     where "option" is one or more of the following options.  If you 
     specify more than one option, enclose the options in paraenthesis
     and separate the options with commas.

        NONE                    Disable all watching
        QUOTA_OPERATIONS        Disk quota changes
        MAJOR_FUNCTION          Opens, closes, reads, writes
        ATTACHED                <??>
        DUMP                    FIB (File Information Block) dump
        DIRECTORY_OPERATIONS    All functions on directories
        CONTROL_FUNCTION        Protection changes
        ATTRIBUTES              Changes to file attributes
        ALL                     All options listed above
        

Useful information may be obtained by using the option MAJOR_FUNCTION and
DIRECTORY_OPERATIONS.  Most of the other options display a lot of information 
which may not be helpful for most tasks.

This command requires CMEXEC privilege.  It activates image SETWATCH.EXE in
SYS$SYSTEM:.  If you want users without CMEXEC to be able to use it, 
install SETWATCH.EXE with CMEXEC privilege -- no side effects have been 
found in doing this.

Jerry Leichter <leichter%LRW.COM@uga.cc.uga.edu> mentioned (in INFO-VAX) 
that SET WATCH has the potential to crash your system.

