gtpc2m1sC/C++ Language Support User's Guide

ecbptr-ECB Reference

This macro returns a pointer to the eb0eb structure (see c$eb0eb.h). It provides access to data in the ECB.

Format

#include     <c$eb0eb.h>
struct eb0eb *ecbptr(void);

Normal Return

Pointer of type struct eb0eb to the currently executing ECB.

Error Return

Not applicable.

Programming Considerations

None.

Examples

The following example obtains a pointer to the record on level D2.

#include <c$am0sg.h>
#include <c$eb0eb.h>
struct am0sg *amsg;           /* Pointer to message block */

  ·
  ·
  ·
amsg = ecbptr()->ce1cr2; /* Get base of record */

Related Information

None.