gtpg2m1lGeneral Macros

DETAC-Detach an ECB Working Storage Block

Use this general macro to detach a storage block from the specified entry control block (ECB) data level or data event control block (DECB) while allowing the ECB data level or DECB to be reused. The block is saved and can be reattached by using the ATTAC macro.

Format




Notes:

  1. level

label
A symbolic name may be assigned to the macro statement.

level
The ECB data level from which the block is to be detached. Valid formats are:

datalevel
Valid values are D0-DF.

reg
A register containing the ECB data level value.

DECB=(reg)|label1
The label or general register (R1-R7) containing the address of the DECB where the block will be detached.

ACPDB
The user is TPFDF. The ECB data level value is in register 7 (R7) if level or DECB is not specified.

CHECK
Specify one of the following:

YES
If specified and the ECB data level or DECB is not holding a block, the service routine will issue a system error.

NO
The macro service routine will make the ECB data level or DECB reusable without validating that a block is held.

Entry Requirements

Return Conditions

Programming Considerations

Examples

None.