NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.FILE.RC
System Variables
106126 Tandem Computers Incorporated 5–43
Table 5-3. FILE Verb Return Codes (Page 2 of 2)
File Verb Return Code Explanation
FILE PUT 0
4
8
12
16
Record added or updated successfully.
Record not added or updated; existing alternate key.
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 PUTGET 0
4
8
12
16
PUTGET completed successfully.
End-of-file detected.
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 SET 0
4
8
12
16
FILE SET completed successfully.
Not used.
Not used.
Not used.
An error occurred. More information is contained in &SYSMSG.
Considerations
The &SYS.FILE.ERROR and &SYSMSG variables can contain additional file error
information.
See also &SYSMSG, which contains an error message set by NCL panel services
and/or NCL file processing.
Testing of &SYS.FILE.RC and transferring to the appropriate NCL processing
routine can be simplified by using direct transfer techniques. For more
information, refer to the NonStop NET/MASTER NCL Programmer’s Guide.
See also the FILE verbs in Section 3, “Verbs.”
Example
The following example opens a file and tests the &SYS.FILE.RC system variable for the
result. If the operation is unsuccessful, the procedure displays an explanatory
message:
PROC3:PROCEDURE
FILE OPEN ID=TEST1
IF &SYS.FILE.RC = 16 THEN
WRITE DATA=&SYSMSG
END PROC3