Example (C)

The following is an example of an HFZXFXIT exit that is written in C.
#include "HFZSXPLC"
int HFZXFXIT(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 */
}