Figure B-4 (Page 2 of 2). Pointer API Examples from Chapter 6
Task
Programming Language and Location of Example
ILE C OPM COBOL ILE COBOL OPM RPG ILE RPG
Reporting Software Error (ILE API with
Pointers)
6-7 N/A B-122 N/A B-126
Figure B-5. Performing Tasks Using API Examples from Appendix A
Task
Programming Language and Location of Example
ILE C OPM COBOL ILE COBOL OPM RPG ILE RPG
Program for Packaging a Product B-129 B-136 B-136 A-3 B-144
Retrieving a File Description to a User Space A-11 B-152 B-152 No B-155
Working with Data Queues A-16 B-165 B-165 B-169 B-172
Working with User Queues A-17 No No No No
Figure B-6. UNIX-Type API Examples
Task
Programming Language and Location of Example
ILE C OPM COBOL ILE COBOL OPM RPG ILE RPG
Using the Integrated File System B-175 No B-178 No B-183
Original Program Model (OPM) APIs—Examples
This topic includes the examples in Chapter 3, “Common Information across
APIs—Basic (OPM) Example.”
Retrieving the Hold Parameter (Exception Message)—ILE C Example
Refer to “Retrieving the Hold Parameter (Exception Message)—OPM RPG
Example” on page 3-6 for the original example.
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ ᑍ/
/ᑍProgram Name: JOBDAPI ᑍ/
/ᑍ ᑍ/
/ᑍProgramming Language: ILE C ᑍ/
/ᑍ ᑍ/
/ᑍDescription: This example expects errors sent as ᑍ/
/ᑍ escape messages. ᑍ/
/ᑍ ᑍ/
/ᑍHeader Files Included: SIGNAL - C Error Signalling Routines ᑍ/
/ᑍ STDIO - Standard Input/Output ᑍ/
/ᑍ STRING - String Functions ᑍ/
/ᑍ QUSEC - Error Code Parameter ᑍ/
/ᑍ QWDRJOBD - Retrieve Job Description API ᑍ/
/ᑍ QLIEPT - Entry Point Table ᑍ/
/ᑍ ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
#include <signal.h>
#include <stdio.h>
#include <string.h>
B-2 System API Programming V4R1