Previous Topic: CA Datacom/DB Reporting FacilityNext Topic: Program and Its Output


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:

  1. Specify a heading with the USER command.
  2. Define the tables with the appropriate INPUT command format.
  3. Define the fields with the appropriate DEFINE command format.
  4. Move data with the MOVE command if accessing a CA Datacom/DB table.
  5. Start reading the table with the GET command.
  6. Direct program flow with the GOTO command.
  7. Manipulate the data with one of the following commands:
       COMPUTE             SUBTRACT
       DECODE              MULTIPLY
       SET                 DIVIDE
       ADD
    
  8. Specify the report with the following commands:
       REPORT              CONTROL
       SELECT              PRINT
    
  9. End the program with the END command.