ILE C/C++ Programmer's Guide


Process Flow

Figure 51. Sample Application: High-Level Input/Processing/Output Flow




Figure 51 shows:

Session input
Data entered during a terminal session:

CL CMD Program T1520CM1
A developer-created CL command that accepts user input and passes it to CL Program T1520CL1.

CL Program T1520CL1
A CL program that processes the input, and passes it to ILE C/400 Program T1520PG1.

ILE C/400 Program T1520PG1
An ILE C program that processes the input and directs output to the user's terminal and to an externally described file. The ILE C program consists of two modules: T1520IC1 and T1520IC2, as shown in Figure 52. Module T1520IC1 provides the user entry procedure main(), which calls the calc_and_format() procedure.

Service Program T1520SP1
An ILE service program that makes the write_audit_trail() procedure available for a program to import, as shown in Figure 52.

Service Program T1520SP2
An ILE service program that makes the tax rate data item available for a program to import, as shown in Figure 52.

Session Output
The following appears on the screen:

Audit File T1520DD1
A log that is updated with each transaction. The DDS source, shown in Figure 53, defines the data fields and relationships (that is, layout) of the audit file.


[ Top of Page | Previous Page | Next Page | Table of Contents ]