A conditional statement selects a subset of records from the file for generating the report or mass load display. Use a combination of conjunctions, dictionary item names, operators, and comparison values to create the conditional statement.
We recommend that you attend a Report Writer/Mass Load class to learn how to use variables and placeholders in conditional statements. The following sections describe basic rules for creating conditional statements:
Use the guidelines in the following table for creating a conditional statement on the standard Report Writer/Mass Load screen:
In this column... |
Enter... |
Conj |
a term that links the condition defined on a given line to the condition defined on the previous line in a multi-conditional selection statement.
|
Dictionary Name |
the dictionary item to use for this conditional statement. For each record entering the selection process, the system compares the value in this field to the value in the Compare To column using the operator entered in the Op column, and determines whether the record meets the selection criteria. |
Op |
an operator that expresses the condition. Press F10 and select one of the following options:
|
Compare To |
the value to which the system compares each designated dictionary item, to determine whether to select the record for the report. This can be:
The value you enter can use the following wildcard characters:
To have the system prompt you to enter a Compare To value at the time the report or mass load runs, type a character or word between two dollar signs, such as $STATE$. The text between the dollar signs is not the prompt. By default, the system uses the corresponding dictionary item's Prompt value. Use the Edit Prompts hot key to view or change the prompt. |
On the Advanced Report Writer/Mass Load Selection screen, enter the same type of conditional statement described for the standard selection screen using the standard TCL retrieve sentence operators. This screen does not display the different parts of the statement in separate columns. You can enter up to five conditional statements on this screen.
See Also: