ILE C/C++ Programmer's Guide
Figure 51. Sample Application: High-Level Input/Processing/Output Flow
Figure 51 shows:
- Session input
- Data entered during a terminal session:
- Name of the item being ordered
- Price per unit
- Quantity of units being ordered
- 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:
- A statement: "(Quantity of units being ordered) (Name of
item being ordered) plus tax = (Calculated cost to user)"
- A prompt: "Press ENTER to end terminal session."
- 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 ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.