Writing System Exit Handlers

The following is a sample exit handler definition:
Sample system exit handler definition

LONG Rexx_IO_exit(
     LONG  ExitNumber,    /* code defining the exit function    */
     LONG  Subfunction,   /* code defining the exit subfunction */
     PEXIT ParmBlock);    /* function dependent control block   */