IBM Version 4 manual Description, Exclude

Models: Version 4

1 505
Download 505 pages 30.92 Kb
Page 100
Image 100

/\

 

 

 

 

\/

/\

DESCRIPTION:

This program registers

an exit point with the

\/

/\

 

registration facility.

After the successful

\/

/\

 

completion of the registration of the exit point, \/

/\

 

an exit program is added to the exit point.

\/

/\

 

 

 

 

\/

/\

APIs USED:

QusRegisterExitPoint -

Register Exit Point

\/

/\

 

QusAddExitProgram

-

Add Exit Program

\/

/\

 

 

 

 

\/

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

/\

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;

 

typedef struct {

/\ Exit point control keys

\/

int

 

num_rec;

 

Qus_Vlen_Rec_4_t max_pgms_rec;

 

int

 

max_pgms;

 

Qus_Vlen_Rec_4_t descrip_rec;

 

char

 

text_desc[5ð];

 

} rgpt_controls;

 

 

typedef struct {

/\ Exit program attribute keys\/

int

 

num_rec;

 

Qus_Vlen_Rec_4_t replace_rec;

 

char

 

replace;

 

char

 

Reserved[3];

 

Qus_Vlen_Rec_4_t CCSID_rec;

 

int

 

CCSID;

 

} addep_attributes;

 

 

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

/\

 

\/

/\

main

\/

/\

 

\/

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

4-10System API Programming V4R1

Page 100
Image 100
IBM Version 4 manual Description, Exclude