Outbound conditional segment mapping lets you to designate that a segment is to be generated only if a condition specified is true. You use the Segment Condition window to specify a record/field or memory variable that is to be checked against another record/field, memory variable or constant value before generating the segment.
Attaching a condition to a segment on an outbound
map
From the Segment menu, right-click the segment and choose Condition from the submenu.
The Segment Condition window displays. The program automatically enters the identifier and description of the segment to which the condition will be attached. The condition consists of a left operand (record/field or memory variable), an operator (equal, not equal, less than, less than or equal to, greater than, or greater than or equal to) and a right operand (record/field, memory variable, or constant).
To choose the Left Operand, click the up arrow and select from the following choices:
If you choose Record/Field, the Records/Tables window displays.
Double-click a record field to select it, and the program automatically enters the record and field names into the Left Operand text boxes.
If you choose Memory Variable, the Memory Variables window displays.
Double-click a memory variable to select it, and the program automatically enters MEMVAR and the name of a memory variable into the Left Operand text boxes.
If you choose Clear Condition, you remove a condition previously defined for this segment.
To choose the Operator that will be used in the condition, select the up arrow.
A menu of Operator choices displays.
Select the operator you want to use. You will return to the Segment Condition window and the operator you chose displays in the Operator text box.
To choose the Right Operand, click the up arrow and select from the following choices:
If you choose Record/Field, the Record/Tables window displays.
Double-click a record/field to select it, and the program automatically enters the names of the record and field into the Right Operand text boxes.
If you choose Memory Variable, the Memory Variables window displays.
Double-click a memory variable to select it, and the program automatically enters MEMVAR and the name of the memory variable in the Right Operand text boxes.
If you choose Constant, the Constant window displays.
Enter a constant value and select OK. The program enters STRVAR and the constant value into the Right Operand text boxes.
If you want to enter another condition, select Next. If you are finished entering conditions, select OK to return to the Mapping window.