Administrator's Guide
Figure 89. ANRUSRXC.C
/***********************************************************************
* Name: ANRUSRXC.C
* Description: Example user-exit program that is invoked by
* the TSM V3 Server
* Environment: *********************************************
* ** This is a platform-specific source file **
* ** versioned for: "MVS/VM" **
* *********************************************
***********************************************************************/
#include <stdio.h>
/**************************************
*** Do not modify below this line. ***
**************************************/
#include "ANRUSRXH.H"
/******************************************************************
* Procedure: main
* If the user-exit is specified on the server, a valid and
* appropriate event will cause an elEventRecvData structure
* (see USREXITH.H) to be passed in as argv[0].
* INPUT : Normal C argc, argv structure.
* RETURNS: return code
******************************************************************/
int main(int argc, char *argv--)
{
elEventRecvData *eventData = (elEventRecvData *)argv[0];
/**************************************
*** Do not modify above this line. ***
**************************************/
if( ( eventData->eventNum == USEREXIT_END_EVENTNUM ) ||
( eventData->eventNum == END_ALL_RECEIVER_EVENTNUM ) )
{
/* Server says to end this user-exit. Perform any cleanup, *
* but do NOT exit() !!! */
return 0;
}
/* Field Access: eventData->.... */
/* Your code here ... */
return 0; /* For picky compilers */
} /* End of main() */
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]