IBM AS/400 manual Advanced Application Scenario, ILE Application Using CRTRPGMOD

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 54
Image 54
Mixed-Language Application

ILE Application Using CRTRPGMOD

Job

 

Y Activation Group

 

*PGM(Y)

 

CL *MODULE(Y1)

 

RPG *MODULE(Y2)

 

C *MODULE(Y3)

Default Activation Group

 

 

*PGM(QUSCRTUS)

RPG *MODULE(Y4)

 

Figure

9.

Mixed-Language Application

 

 

 

 

 

The call from program Y to the

OPM API is a dynamic

call. The

calls

am

modules

in

program

Y are

static

calls.

 

 

 

See “Effect of ILE” on page 26

for

details on the

effects

of ILE

o

application

handles

calls,

data,

files

and errors.

 

 

 

Advanced Application Scenario

In

this

scenario,

you take full advantage of

ILE function,

including se

The

use

of bound

calls, used for procedures

within modules

and servic

provide improved performance especially if the service program runs in activation group as the caller.

Figure 10 on page 31 shows an example in which an ILE program is bound service programs.

30 ILE RPG for AS/400 Programmer's Guide

Page 54
Image 54
IBM AS/400 manual Advanced Application Scenario, ILE Application Using CRTRPGMOD, Mixed-Language Application