Figure B-4 (Page

2

of

2).

Pointer API Examples from Chapter 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programming Language

and Location of

Example

 

 

 

 

 

 

 

 

 

 

 

 

Task

 

 

 

 

ILE C

OPM COBOL

ILE COBOL

 

OPM RPG

ILE RPG

 

 

 

 

 

 

 

 

 

 

 

Reporting Software

Error

(ILE

API

 

with6-7

N/A

B-122

 

N/A

B-126

Pointers)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure

B-5. Performing Tasks Using

API

Examples

from

Appendix

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programming

Language

and Location

of

Example

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Task

 

 

 

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

UserA-11

 

Space 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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Programming Language

and Location of

Example

 

 

 

 

 

 

 

 

 

 

 

 

Task

 

 

 

 

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 Routin￿es

\/

 

 

 

/\

 

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

 

 

 

 

Page 280
Image 280
IBM Version 4 manual Original Program Model OPM APIs-Examples, Hold Parameter Exception Message-ILE C, Jobdapi