NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.FILE.PATH
System Variables
106126 Tandem Computers Incorporated 5–41
&SYS.FILE.PATH The &SYS.FILE.PATH system variable contains the number of the file from which the
FILE GET verb retrieved a record. For a single file, the value is always ONE. For a file
pair, the value is either ONE (record retrieved from the first file in the pair) or TWO
(record retrieved from the second file in the pair).
&SYS.FILE.PATH
Consideration
If the FILE GET operation is unsuccessful, the value is null.
Example
In the following example, a procedure (FILEX) opens a file, reads a record, and
displays the &SYS.FILE.PATH and &SYS.FILE.RC system variables:
FILEX:PROCEDURE
/* open the file TEST1 */
FILE OPEN ID=TEST1
/* then read that record */
FILE GET OPT=SEQ ARGS
SAY &SYS.FILE.PATH " IS THE NUMBER OF THE FILE"
SAY &SYS.FILE.RC "IS THE FILE ERROR CODE"
IF &SYS.FILE.PATH = TWO THEN
SAY "Record was from the second file of the pair"
END FILEX