NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.FILE.RC
System Variables
5–42 106126 Tandem Computers Incorporated
&SYS.FILE.RC The &SYS.FILE.RC system variable contains the return code of a file processing
function after the execution of the FILE ADD, FILE CLOSE, FILE DEL, FILE GET, FILE
OPEN, FILE PUT, FILE PUTGET, or FILE SET verb.
&SYS.FILE.RC
&SYS.FILE.RC can be tested to find the result of the FILE verb operation. The
meaning of the various return codes is shown in Table 5-3.
Table 5-3. FILE Verb Return Codes (Page 1 of 2)
File Verb Return Code Explanation
FILE ADD 0
4
8
12
16
Record added successfully.
Record already exists.
A file system error occurred during NCL processing. More
information is contained in &SYS.FILE.ERROR.
Not used.
An error occurred. More information is contained in &SYSMSG.
FILE CLOSE 0
4
8
12
16
Not used.
Not used.
Not used.
Not used.
File closed.
FILE DEL 0
4
8
12
16
Record(s) deleted successfully.
Record not found.
A file system error occurred during NCL processing. More
information is contained in &SYS.FILE.ERROR.
Not used.
An error occurred. More information is contained in &SYSMSG.
FILE GET 0
4
8
12
16
Record retrieved successfully.
Record not found (or end of data). No record retrieved.
A file system error occurred during NCL processing. More
information is contained in &SYS.FILE.ERROR.
Not used.
An error occurred. More information is contained in &SYSMSG.
FILE OPEN 0
4
8
12
16
File opened for read access only.
File opened for read/write but not delete.
File opened for read, write, and delete access.
File not accessible.
An error occurred. More information is contained in &SYSMSG.