

CA Datacom/DB Reporting Facility Tutorial › Input Statements
Input Statements
Each input statement (line of coding) consists of a command and its parameters. The statements tell the system what data to access from the database and how the report is to appear. Since the Reporting Facility reacts to one line of coding at a time, reading from top to bottom, the order in which the statements are coded is important. In general, code your individual statements as follows:
- Specify a heading with the USER command.
- Define the tables with the appropriate INPUT command format.
- Define the fields with the appropriate DEFINE command format.
- Move data with the MOVE command if accessing a CA Datacom/DB table.
- Start reading the table with the GET command.
- Direct program flow with the GOTO command.
- Manipulate the data with one of the following commands:
COMPUTE SUBTRACT
DECODE MULTIPLY
SET DIVIDE
ADD
- Specify the report with the following commands:
REPORT CONTROL
SELECT PRINT
- End the program with the END command.
Copyright © 2014 CA.
All rights reserved.
 
|
|