Previous Topic: Control UDB Availability

Next Topic: Logical File Identifiers

Work with Files

NCL includes an &FILE verb that provides the high-level interface to its file processing facilities. The verb has seven major operands:

&FILE OPEN

Opens a file and identifies its processing mode

&FILE SET

Sets the default file ID, sets the full or partial key, sets the processing mode for subsequent processing

&FILE ADD

Adds a record

&FILE GET

Retrieves a record

&FILE PUT

Adds or updates a record

&FILE DEL

Deletes a current record

&FILE CLOSE

Releases file processing connections

The following system variables are provided to help test the success of functions:

&FILERC

the completion code for the last function

&FILERCNT

the number of records processed by the last generic delete (&FILE DEL) operation

&VSAMFDBK

the VSAM RPL feedback code from the last function

&FILEKEY

the key of the last record referenced

Note: For more information about the &FILE verb and system variables, see the Network Control Language Reference Guide. For more information about the UDBCTL command, which is used to control the availability of UDBs for processing, see the online help.