IBM AS/400 manual Mixed-Language ILE Application Scenario, ILE Application Using CRTRPGMOD

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 53
Image 53
Figure 8. Single-Language Application Using CRTRPGMOD and CRTPGM

ILE Application Using CRTRPGMOD

Job

XY Activation Group

*PGM(X)

RPG

*PGM(Y)

RPG *MODULE(Y1)

RPG *MODULE(Y2)

RPG *MODULE(Y3)

RPG *MODULE(Y4)

Figure 8. Single-Language Application Using CRTRPGMOD and CRTPGM

The call from program X to program Y 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 application handles calls, data, files and errors.

Mixed-Language ILE Application Scenario

In this scenario, you create integrated mixed-language applications. module, written in one ILE language, calls procedures written in anothe guage. The main module opens files that the other modules then share of the use of different languages, you may not expect consistent b However, ILE ensures that this occurs.

Figure 9 on page 30 shows the run-time view of an application containing language ILE program where one module calls a non-bindable API, QUSCRTU (Create User Space).

Chapter 3. Program Creation Strategies29

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