Sharing Files and Locking Records
8.3 Ensuring Successful File Sharing
Example 82 (Cont.) Program Segment for File Status Values
* handle other possible errors here
.
.
.
RETRY-OPEN.
OPEN I-O FILE-NAME.
add 1 to RETRY-COUNT.
On OpenVMS, Table 8–4 describes RMS-STS values used in a file-sharing
environment.
Table84 RMS-STS Values Used in a File-Sharing Environment (OpenVMS)
RMS-STS Value Meaning
RMS$_DIR Error in directory name
RMS$_DNF Directory not found
RMS$_DNR Devicenot ready or not mounted
RMS$_DUP Duplicate key detected (DUP not set)
RMS$_ENQ Systemservice request failed
RMS$_EOF End of file detected
RMS$_FLK1File is locked
RMS$_FNF File not found
RMS$_FUL Device full (insufficient space)
RMS$_KEY Invalid record number key or key value
RMS$_KRF Invalid key of reference for $GET/$FIND
RMS$_KSZ Invalid key size for $GET/$FIND
RMS$_OK_RLK Recordlocked but read anyway
RMS$_OK_RRL Record locked against read but read anyway
RMS$_PRV2File protection violation
RMS$_RAC Invalid record access mode
RMS$_REX Record already exists
RMS$_RLK Record currently locked by another stream
RMS$_RNF Record not found
RMS$_RNL Record not locked
RMS$_RSZ Invalidrecord size
RMS$_SNE File sharing not enabled
RMS$_SPE File$_sharing page count exceeded
RMS$_SUC3Successful operation
RMS$_WLK Devicecurrently write locked
1Corresponds to File Status Valueof 91
2Corresponds to File Status Valueof 30
3Corresponds to File Status Valueof 00
814 Sharing Files and Locking Records