IBM AS/400 The Entire ARRSRPT Program, Example of Module with Multiple Procedures, Part, 1 of

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 65
Image 65
The Entire ARRSRPT Program

Example of Module with Multiple Procedures

The Entire ARRSRPT Program

The ARRSRPT program consists of Figure 21 shows the different

two modules: ARRSRPT and CVTPROCS. pieces of our mini-application.

ARRSRPT *PGMARRSRPT *PGM

 CVTPROCS *MODULE  NOMAIN ARRSRPT *MODULE

Figure 22 (Part Main Procedure

1 of InArrears

3). ILE RPG Complete Source for ARRSRPT Module FmtCust

Manual background CVTPROCS *MODULE Manual background NOMAIN

Manual background NumToChar

/COPY member

CVTPROCP

CUSTFILE

DDS

CUSTRPT

DDS

Figure 21. The ARRSRPT Application

Figure 22 shows the source for the entire ARRSRPT module.

*=================================================================*

*Source for module ARRSRPT. Contains a main procedure and

*two subprocedures: InArrears and FmtCust.

*

*Related Module: CVTPROCS (NumToChar called by FmtCust) *=================================================================*

*--------------------------------------------------------------

*

*F I L E S

*CUSTFILE - contains customer information

*CUSTRPT - printer file (using format ARREARS)

*--------------------------------------------------------------

 

*

FCUSTFILE

IP

E

DISK

FCUSTRPT

O

E

PRINTER

 

 

 

Figure 22 (Part

1 of

3). ILE RPG Complete Source for ARRSRPT Module

Chapter 4. Creating an Application Using Multiple41 Procedures

Page 65
Image 65
IBM AS/400 manual The Entire ARRSRPT Program, Example of Module with Multiple Procedures, Part, 1 of