O exit point failed: '
O QUSEI
OQPRINT E ERRAEPGM 1 6
O 'Attempt to remove exit -
O program failed: '
O QUSEI
List Object API—Examples
This section includes the examples in “List Object API—OPM RPG Example” on
page 5-4.
List Object API—ILE C Example
Refer to “List Object API—OPM RPG Example” on page 5-4 for the original
example. This example uses includes from the QSYSINC library.
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ ᑍ/
/ᑍ Program: List objects that adopt owner authority ᑍ/
/ᑍ ᑍ/
/ᑍ Language: ILE C ᑍ/
/ᑍ ᑍ/
/ᑍ Description: This program prints a report showing all objects ᑍ/
/ᑍ that adopt owner authority. The two parameters ᑍ/
/ᑍ passed to the program are the profile to be ᑍ/
/ᑍ checked and the type of objects to be listed. ᑍ/
/ᑍ The parameter values are the same as those ᑍ/
/ᑍ accepted by the QSYLOBJP API. ᑍ/
/ᑍ ᑍ/
/ᑍ APIs Used: QSYLOBJP - List Objects that Adopt Owner Authority ᑍ/
/ᑍ QUSCRTUS - Create User Space ᑍ/
/ᑍ QUSPTRUS - Retrieve Pointer to User Space ᑍ/
/ᑍ QUSROBJD - Retrieve Object Description ᑍ/
/ᑍ ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
#include <stdio.h>
#include <string.h>
#include <qsylobjp.h> /ᑍ QSYLOBJP API Header ᑍ/
#include <quscrtus.h> /ᑍ QUSCRTUS API Header ᑍ/
#include <qusptrus.h> /ᑍ QUSPTRUS API Header ᑍ/
#include <qusrobjd.h> /ᑍ QUSROBJD API Header ᑍ/
#include <qusgen.h> /ᑍ Format Structures for User Space ᑍ/
#include <qusec.h> /ᑍ Error Code Parameter Include for the APIs ᑍ/
#include <qliept.h> /ᑍ Entry Point Table Include ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Error Code Structure ᑍ/
/ᑍ ᑍ/
/ᑍ This shows how the user can define the variable length portion of ᑍ/
/ᑍ error code for the exception data. ᑍ/
/ᑍ ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
typedef struct {
Qus_EC_t ec_fields;
B-94 System API Programming V4R1