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” o

 

 

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 po￿rtion of

\/

 

 

 

/\ error code for the exception data.

 

\/

 

 

 

/\

 

 

 

 

\/

 

 

 

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

 

 

 

typedef struct {

 

 

 

 

 

 

 

Qus_EC_t

ec_fields;

 

 

 

B-94

System

API Programming

V4R1

 

 

 

 

 

Page 372
Image 372
IBM Version 4 manual Api-Ile C, Object