NET/MASTER Network Control Language (NCL) Reference Manual
FILE SET
Verbs
3–102 106126 Tandem Computers Incorporated
MAP=
map-name
specifies the name of the map, which can be a user-defined map, to be used by an
MDO. If you do not specify MAP, NCL uses the default map ($NCL).
Considerations
The &SYS.FILE.RC system variable reflects the result of all file operations within
NCL. NCL sets this variable on completion of the FILE SET verb as follows:
Return Code Meaning
0 FILE SET completed successfully.
4 Not used.
8 Not used.
12 Not used.
16 An error occurred. Further information is contained in &SYSMSG.
It is the user’s responsibility to test the &SYS.FILE.RC system variable for errors.
There is an implicit resumption of the NCL procedure after any errors, unless the
user has coded an error handler for the FILE_ERROR condition. See the core
statements ON and RESUME in Section 2, “Core Statements.”
For return codes other than 0 (zero) and 4, the FILE_ERROR condition is signalled.
This condition can be trapped (or intercepted) by an error handler.
See FILE OPEN which also allows the setting of the key extraction operand
KEYEXTR.
Example
The following example makes local file identifier MAY31 the current
fileid
and
specifies a generic key length of 2:
FILE SET ID=MAY31 GENLEN=2 KEY=&EGS