HELPLIB.HLB  —  System Services, $RMSRUNDWN
    Closes all files opened by OpenVMS RMS for the image or process
    and halts I/O activity. This routine performs a $CLOSE service
    for each file opened for processing.

    Format

      SYS$RMSRUNDWN  buf-addr ,type-value

    C Prototype

      int sys$rmsrundwn  (void *buf-addr, unsigned char *type-value);

1  –  Arguments

 buf-addr

    OpenVMS usage:char_string
    type:         character-coded text string
    access:       write only
    mechanism:    by descriptor
    A descriptor pointing to a 22-byte buffer that is to receive the
    device identification (16 bytes) and the file identification (6
    bytes) of an improperly closed output file. The buf-addr argument
    is the address of the descriptor that points to the buffer.

 type-value

    OpenVMS usage:byte_unsigned
    type:         byte (unsigned)
    access:       read only
    mechanism:    by value
    A single byte code that specifies the type of I/O rundown to be
    performed. The type-value argument is the actual value used.

    This type of code has the following values and meanings:

    0     Rundown of image and indirect I/O for process permanent
          files.
    1     Rundown of image and process permanent files. The caller's
          mode must not be user.
    2     Abort RMS I/O. The caller's mode must be either executive
          or kernel (the system calls the I/O rundown control routine
          with this argument for process deletion).
Close Help