Figure B-4 (Page 2 of 2). Pointer API Examples fromChapter 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