VMS Help  —  CLOSE  Qualifiers

1    /DISPOSITION

       /DISPOSITION=option

    Specifies what action to take when the file is closed. The
    options are:

    DELETE          Delete the file.

    KEEP            Keep the file.
    (default)

    PRINT           Print the file.

    SUBMIT          Submit the file.

2    /ERROR

       /ERROR=label

    Specifies a label in the command procedure to receive control
    if the close operation results in an error. Overrides any ON
    condition action specified. If an error occurs and the target
    label is successfully given control, the global symbol $STATUS
    retains the code for the error that caused the error path to be
    taken.

3    /LOG

       /LOG (default)
       /NOLOG

    Generates a warning message when you attempt to close a file that
    was not opened by DCL. If you specify the /ERROR qualifier, the
    /LOG qualifier has no effect. If the file has not been opened by
    DCL, the error branch is taken and no message is displayed.
Close Help