1 TESTFILE

 Determines if a named file exists, without cluttering up SYS$OUTPUT
 with diagnostic messages, leaving $STATUS and $SEVERITY in a small set of
 known states. TESTFILE is a "foreign" command, so you must define it as
 a symbol (done in SYSLOGON.CMD automatically), viz.:

	     $TESTFILE:==@SYS$SYSROOT:[SYSMGR.CMDFIL]TESTFILE.COM

Format
      TESTFILE file-spec

Result
      o If file-spec exists, $STATUS = $SEVERITY = 1.
      o If file-spec does not exist, but the command was well formatted,
        then $STATUS = 3 (informational).

     The testfile command procedure replaces the task doing the same thing
under V2.5.  It turns out that it is faster to use the command procedure than
to invoke an image to check for the status of the file.
2 Exit_status
 For successfull completion of TESTFILE, $STATUS may take
 the following (hexidecimal) values:

	 1 -    normal (file found)
	 3 -    File not found via F$SEARCH

2 Uses

 To delete a file, without messages if it doesn't exist:
  $TESTFILE FILE.BAD
  $IF '$STATUS .EQ. 1 THEN DELETE FILE.BAD;*

 To run a command procedure which makes a file, but only if the file
 does not already exist:
  $TESTFILE NEEDED.DAT
  $IF '$STATUS .NE. 1 THEN @MAKEFIL
