Example of a Service Program that Provides ILE Condition Handlers

The following example shows the source for the service program HANDLERS:
Figure 1. T1520XH6 — ILE C Source to Use ILE Condition Handlers — Service Program
#include <signal.h>
#include <stdio.h>
#include <lecond.h>
/* HANDLERS *SRVPGM (*CALLER) */
void my_handler(_FEEDBACK *cond, _POINTER *token, _INT4 *rc, _FEEDBACK *new)
{
 return;
}
void main_handler(_FEEDBACK *cond, _POINTER *token, _INT4 *rc, _FEEDBACK *new)
{
 printf("In main_handler\n");
}