IBM Version 4 manual Remove Exit Program and Deregister Exit Point-ILE C Example

Models: Version 4

1 505
Download 505 pages 30.92 Kb
Page 109
Image 109

} /\ End program \/

Remove Exit Program and Deregister Exit Point—ILE C Example

The following program removes an exit program from an exit point and d the exit point from the registration facility.

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

/\

PROGRAM:

Remove an Exit Program

 

\/

/\

 

Deregister an Exit Point

\/

/\

 

 

 

\/

/\

LANGUAGE:

ILE C

 

\/

/\

 

 

 

\/

/\

DESCRIPTION:

This program removes an exit program and

\/

/\

 

deregisters an exit point from the registration

\/

/\

 

facility.

 

\/

/\

 

 

 

\/

/\

APIs USED:

QusRemoveExitProgram

- Remove Exit Program

\/

/\

 

QusDeregisterExitPoint - Deregister Exit Point

\/

/\

 

 

 

\/

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

/\

NOTE: This example uses APIs that are

shipped with

\EXCLUDE

\/

/\

authority. The user needs \USE

authority to

the service \/

/\

program QUSRGFA1 to use these APIs.

 

\/

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

/\Includes\/ /\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/ #include <stdio.h>

#include <signal.h> #include <string.h> #include <stdlib.h> #include <qusrgfa1.h> #include <qusec.h> #include <qliept.h>

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

/\Structures\/ /\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

typedef struct {

/\ Error code

\/

Qus_EC_t ec_fields;

 

 

char

exception_data[1ðð];

 

 

} error_code_struct;

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

/\

 

\/

/\

main

\/

/\

 

\/

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/ int main()

{

int pgm_num=1;

error_code_struct error_code;

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

Chapter 4. Common Information across APIs—Advanced (ILE)4-19Example

Page 109
Image 109
IBM Version 4 manual Remove Exit Program and Deregister Exit Point-ILE C Example, Language ILE C Description