RPG Programming in ILE
procedure names are resolved at bind time (that is, when you create the program),
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 calling
bindable APIs or procedures written in other ILE languages.
For information on running a program refer to Chapter 9, “Running a Program” on
page 103. For information on program/procedure call, refer to Chapter 10, “Calling
Programs and Procedures” on page 127.
Source Debugging
In ILE, you can perform source-level debugging on any single- or mixed-language
ILE application. The ILE source debugger also supports OPM programs. You can
control the flow of a program by using debug commands while the program is
running. You can set conditional and unconditional job or thread breakpoints prior
to running the program. After you call the program, you can then step through a
specified number of statements, and display or change variables. When a program
stops because of a breakpoint, a step command, or a run-time error, the pertinent
module is shown on the display at the point where the program stopped. At that
point, you can enter more debug commands.
For information on the debugger, refer to Chapter 11, “Debugging Programs” on
page 163.
Bindable APIs
ILE offers a number of bindable APIs that can be used to supplement the function
currently offered by ILE RPG. The bindable APIs provide program calling and acti-
vation capability, condition and storage management, math functions, and dynamic
screen management.
Some APIs that you may wish to consider using in an ILE RPG application include:
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