gtpg2m0j | General Macros |
Use this general macro to reattach a working storage block to an entry control block (ECB) data level or data event control block (DECB). This storage block must have been previously detached by using the DETAC macro.
Format
|
Notes:
Entry Requirements
Return Conditions
Programming Considerations
For ATTAC reg, register reg contains the ECB data level.
For ATTAC datalevel, the ECB level is datalevel.
Therefore, ATTAC with ACPDB as the first positional parameter picks the ECB data level from R7 and uses data from the FARW corresponding to that level. The detached block list for that ECB data level is searched for the key given in the FARW and reattaches the detached block on the specified level. Similarly, ATTAC reg,ACPDB picks the ECB data level from reg and ATTAC datalevel,ACPDB uses ECB data level datalevel and its corresponding FARW. ATTAC DECB=(reg),ACPDB gets the DECB address from reg and uses the FARW in the DECB.
Examples