Example (C)

The following is an example of an IDIXFXIT exit that is written in C.

#include "IDISXPLC"
int IDIXFXIT(char *action, char *userid, char *group, char *jobnm,
             char *histDSN, DDIR_DATA_HD *pHD) {
  if (strcmp("MY.HIST", histDSN) == 0) return 2;  /* Update access ok */
  else return 0 ;                                 /* No access */
}