Previous Topic: Parameter SpecificationsNext Topic: Detail Definition Provides Report Definition


Using a Table Defined in Working Data

This program is special because it prints three rows from the customer table using a single PRODUCE statement. To do this, a table is defined in working data to contain the information for the three rows. This table is formatted so that it can be used in the Detail Definition of the report for the print‑line layout. Each field in the table is defined as an alphanumeric value of 30 characters.

=> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ IDEAL : WORKING DATA DEFN. PGM LBLPGM (001) TEST SYS: DOC DISP Command Level Field name T I Ch/Dg Occur Value/Comments/Clauses ‑‑‑‑‑‑ ‑‑‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑ ‑ ‑‑‑‑‑ ‑‑‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ====== ===== ====== T O P ====== = = ===== ===== ============================= 000100 1 LABEL‑DATA 3 000200 2 L‑NAME X 30 000300 2 L‑ADD X 30 000400 2 L‑CTYST X 30 ====== ===== === B O T T O M === = = ===== ===== =============================