Previous Topic: #DEQ ExampleNext Topic: @DISCON Syntax


@DISCON—cancels the current membership of a specified record

The @DISCON statement cancels the current membership of a specified record in a set occurrence. The specified record must be defined as an optional member of the named set.

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

The following consideration apply:

Currency

Before execution of the @DISCON statement, the following currency-related conditions must be satisfied:

A successfully executed @DISCON statement nullifies currency in the named set. However, the next of set and prior of set are maintained, thereby enabling continued access within the set. The disconnected record is current of run unit, its record type, and its area.