IBM AS/400 manual Source Debugging, Bindable APIs, RPG Programming in ILE, shown

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 44
Image 44
Source Debugging

RPG Programming in ILE

procedure names are resolved at bind time (that is, when you create static calls are faster than dynamic calls.

Static calls also allow

¹Operational descriptors

¹Omitted parameters

¹ The passing of parameters by value

¹ The use of return values

¹A greater number of parameters to be passed

Operational descriptors and omitted parameters can be useful when calli

bindable

APIs

or

procedures written in other ILE

languages.

 

For information

on

running

a

program refer to Chapter 9, “Running a Program”

page 103. For

information

on

program/procedure call,

refer to

Chapter 10,

Programs

and Procedures”

on

page 127.

 

 

Source Debugging

In ILE,

you

can perform source-level debugging

on any single- or mixed-l

ILE application.

The ILE source debugger also

supports

OPM programs. Yo

control

the

flow of

a program

by

using debug

commands

while the progra

running.

You

can

set

conditional

and

unconditional

job or

thread breakpoi

to running the program. After you call the program, you can then step

specified

number

of

statements, and display or change

variables. When

stops

because

of

a

breakpoint,

a step

command, or

a

run-time error, t

module

is

shown

on

the display

at

the

point where

the

program stopped

point,

you

can

enter

more debug

commands.

 

 

For information on the debugger, refer to Chapter 11, “Debugging Program page 163.

Bindable APIs

ILE offers a number of bindable APIs that can be used to supplement currently offered by ILE RPG. The bindable APIs provide program callin vation capability, condition and storage management, math functions, and d screen management.

Some APIs that you may wish to consider using in an ILE RPG application

¹ CEETREC – Signal the Termination-Imminent Condition

¹ CEE4ABN – Abnormal End

¹ CEECRHP – Create your own heap

¹ CEEDSHP – Discard your own heap

¹ CEEFRST – Free Storage in your own heap

¹ CEEGTST – Get Heap Storage in your own heap

¹ CEECZST – Reallocate Storage in your own heap

20 ILE RPG for AS/400 Programmer's Guide

Page 44
Image 44
IBM AS/400 manual Source Debugging, Bindable APIs, RPG Programming in ILE, shown