IBM AS/400 Frozen Dessert Maker User Manual


 
Creating a Module Object
A*****************************************************************
A* RELATED FILES: TRNSRPT *
A* DESCRIPTION: This is the physical file TRNSDTA. It has *
A* one record format called TRNSREC. *
A*****************************************************************
A* PARTS TRANSACTION FILE -- TRNSDTA
A R TRNSREC
A PROD 10S 0 TEXT('Product')
A QTY 5S 0 TEXT('Quantity')
A DISCOUNT 2S 2 TEXT('Discount')
Figure 39. DDS for TRNSDTA
Additional Examples
For additional examples of creating modules, see:
“Sample Service Program” on page 94, for an example of creating a module
for a service program.
“Binding to a Program” on page 98. for an example of creating a module to be
used with a service program.
“Managing Your Own Heap Using ILE Bindable APIs” on page 119, for an
example of creating a module for dynamically allocating storage for a run-time
array
“Sample Source for Debug Examples” on page 211, for example of creating an
RPG and C module for use in a sample debug program.
Behavior of Bound ILE RPG Modules
In ILE RPG, the
main procedure
is the boundary for the scope of LR semantics and
the RPG cycle. The
module
is the boundary for the scope of open files.
In any ILE program, there may be several RPG cycles active; there is one RPG
cycle for each RPG module that has a main procedure. The cycles are
independent: setting on LR in one main procedure has no effect on the cycle in
another.
Related CL Commands
The following CL commands can be used with modules:
Display Module (DSPMOD)
Change Module (CHGMOD)
Delete Module (DLTMOD)
Work with Modules (WRKMOD)
For further information on these commands see the
CL Reference (Abridged)
.
80 ILE RPG for AS/400 Programmer's Guide