gtpc2m1iC/C++ Language Support User's Guide

detac-Detach a Working Storage Block from the ECB

This function detaches a working storage block from an entry control block (ECB). The ECB must be holding a storage block on the specified level.

Format

#include   <tpfapi.h>
void       detac(enum t_lvl level);

level
One of 16 possible values representing a valid data level from the enumeration type t_lvl, expressed as Dx, where x represents the hexadecimal number of the level (0-F). The working storage block on this data level is the block to be detached.

Normal Return

Void. The CBRW has been modified to indicate that no block is held.

Error Return

Not applicable.

Programming Considerations

Examples

The following example detaches a working storage block from level D6.

#include <tpfapi.h>

  ·
  ·
  ·
detac(D6);

Related Information

See TPF Application Programming for more information about DECBs.