IBM Version 4 Universal Remote User Manual


 
MOVE SPACES TO CONTIN-HDL.
PERFORM GETLST.
ᑍ Get a resolved pointer to the User Space for performance
CALL "QUSPTRUS" USING SPC-NAME, SPCPTR, QUS-EC.
ᑍ Check for errors on QUSPTRUS
IF BYTES-AVAILABLE OF QUS-EC > 
MOVE "QUSPTRUS" TO APINAM,
PERFORM APIERR.
ᑍ If no error, then set addressability to User Space
SET ADDRESS OF QUS-GENERIC-HEADER-1 TO SPCPTR.
SET ADDRESS OF STRING-SPACE TO SPCPTR.
ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
APIERR.
ᑍ Log any error encountered, and exit the program
DISPLAY APINAM.
DISPLAY EXCEPTION-ID OF QUS-EC.
PERFORM DONE.
ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
DONE.
ᑍ Exit the program
WRITE LIST-LINE FROM END-LIST.
STOP RUN.
List Object API—ILE RPG Example
Refer to “List Object API—OPM RPG Example” on page 5-4 for the original
example.
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
F
Fᑍ Program: List objects that adopt owner authority
F
Fᑍ Language: ILE RPG
F
Fᑍ Description: This program prints a report showing all objects
Fᑍ that adopt owner authority. The two parameters
Fᑍ passed to the program are the profile to be
Fᑍ checked and the type of objects to be listed.
Fᑍ The parameter values are the same as those
Fᑍ accepted by the QSYLOBJP API.
F
Fᑍ APIs Used: QSYLOBJP - List Objects that Adopt Owner Authority
Fᑍ QUSCRTUS - Create User Space
Fᑍ QUSPTRUS - Retrieve Pointer to User Space
Fᑍ QUSROBJD - Retrieve Object Description
B-106 System API Programming V4R1