gtpc2m1dC/C++ Language Support User's Guide

dbsdc-Detach TPF Application Requester Database Support Structure

This function is used to detach the TPFAR Structured Query Language Transaction Profile (STP) and associated blocks from the ECB for later reattachment to this or another ECB.

Format

#include   <tpfarapi.h>
enum DBSDC_RETURN_CODE dbsdc(char *id);

id
A pointer to an 8-byte area where the function places the TPF Application Requester (TPFAR) database support structure identifier.

Normal Return

DBSDC_SUCCESSFUL
Completed successfully.

Error Return

DBSDC_NONE
The TPFAR database support structure is not attached to the ECB.

Programming Considerations

Examples

The following example detaches the TPFAR database support structure from the ECB.

#include <tpfarapi.h>
char id[8]

  ·
  ·
  ·
dbsdc(id);

Related Information