Index
program
(continued)
compiling
MI instruction program 7-4
creating
MI instruction program 7-5, 7-6
creating MI MICRTPG2 program 7-27
debugging
MI instruction program 7-7
MI MICRTPG2 complete program (enhanced)
example 7-28
MI MICRTPG2 complete program example 7-23
program activation 7-36
program adopt
displaying 5-12
program and CL command APIs
Create Program (QPRCRTPG) API
use of 8-19
use of 8-19
program invocation 7-36
program storage
MI (machine interface) instruction program 7-36
programming error, common
examples
incorrect coding with regard to new function 9-36
incorrectly defined byte alignment 9-22
incorrectly defined data structures 9-5
incorrectly defined list entry format lengths 9-14
incorrectly defined receiver variables 9-10
incorrectly using null pointers with OPM
APIs 9-18
incorrectly using offsets 9-27
incorrectly using the error code parameter 9-2
table of examples 9-1
programming language
control language (CL)
example (listing database file members) 2-22
example (receiving error messages) 2-10
Cross System Product (CSP) 2-3, 2-4
data type use
BASIC 2-4
CL (control language) 2-4
COBOL 2-4
ILE C 2-4
ILE CL (control language) 2-4
ILE COBOL 2-4
machine interface (MI) instructions 2-4
Pascal 2-4
PL/I 2-4
REXX 2-4
RPG 2-4
VisualAge C++ for OS/400 2-4
ILE C example
accessing field value (initial library list) B-22
accessing the hold attribute B-16
Add Exit Program (QusAddExitProgram) API 4-9
list API B-94
logging software error (OPM API without
pointers) 6-2
programming language
(continued)
ILE C example
(continued)
packaging your own software products B-129
Register Exit Point (QusRegisterExitPoint)
API 4-9
reporting software error (ILE API with
pointers) 6-7
retrieving the hold parameter (error code struc-
ture) B-10
retrieving the hold parameter (exception
message) B-2
using integrated file system B-175
using keys with List Spooled Files API B-33
ILE COBOL example
accessing field value (initial library list) B-25
accessing the hold attribute B-18
Add Exit Program (QusAddExitProgram)
API B-50
Deregister Exit Point (QusDeregisterExitPoint)
API B-87
List Objects That Adopt Owner Authority
(QSYLOBJP) API B-101
packaging your own software products B-136
Register Exit Point (QusRegisterExitPoint)
API B-50
Remove Exit Program (QusRemoveExitProgram)
API B-87
reporting software error (ILE API with
pointers) B-122
Retrieve Exit Information
(QusRetrieveExitInformation) API B-66
retrieving file description to user space B-152
retrieving the hold parameter (error code struc-
ture) B-12
retrieving the hold parameter (exception
message) B-4
setting COBOL error handler B-122
using integrated file system B-178
using keys with List Spooled Files API B-38
working with data queues B-165
ILE RPG example
accessing field value (initial library list) B-29
accessing the hold attribute B-21
Add Exit Program (QusAddExitProgram)
API B-58
changing user space 2-20
Deregister Exit Point (QusDeregisterExitPoint)
API B-92
handling error conditions B-8
keys with List Spooled Files API B-42
list API B-106
logging software error (OPM API without
pointers) B-119
packaging your own software products B-144
Register Exit Point (QusRegisterExitPoint)
API B-58
Remove Exit Program (QusRemoveExitProgram)
API B-92
Index X-21