Previous Topic: #COMMIT Status CodesNext Topic: @CONNECT Syntax


@CONNECT—establishes a record occurrence

The @CONNECT statement establishes a record occurrence as a member of a set occurrence. The specified record must be defined as an optional automatic, optional manual, or mandatory manual member of the set.

Note: Native VSAM users—The @CONNECT statement is not valid since all sets in native VSAM data sets must be defined as mandatory automatic.

Currency

Before execution of the @CONNECT statement, you must satisfy the following conditions:

Following successful execution of the @CONNECT statement, the named record is current of run unit, its record type, its area, and all sets in which it currently participates. The following figure illustrates the steps required to connect an EMPLOYEE record to an occurrence of the OFFICE-EMPLOYEE set.

To connect EMPLOYEE 459 to the OFFICE 1 occurrence of the OFFICE- EMPLOYEE set, you must establish EMPLOYEE 459 as current of record type, locate the proper occurrence of the OFFICE record, and connect EMPLOYEE 459 to the OFFICE-EMPLOYEE set.

@connect2