ECMap allows you to designate that a segment is to be generated only if a specified condition is true.
A condition consists of a left operand, an operator, and a right operand. The value in the left operand is tested against the value in the right operand, using one of the following operators – equal to, not equal to, less than, less than or equal to, “greater than, or greater than or equal to. If the condition is true, the segment is mapped.
Attaching a condition to
a segment
Do one of the following:
Highlight the segment and choose Segment>Condition
Right-click the segment and choose Condition from the drop-down list
The Segment Condition window displays.
Enter the following on the Segment Condition window:
Segment text boxes – the program automatically populates the identifier and description of the segment to which the condition will be attached.
Left Operand – contains the data to be evaluated. Select 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. You return to the Segment Condition window and the names of the record and field you selected display in the Left Operand text boxes.
If you choose Memory Variable, the Memory Variables window displays. Double-click a memory variable to select it. You return to the Segment Condition window and MEMVAR and the name of the memory variable you selected display in the Left Operand text boxes.
If you choose Clear Condition, all the values currently entered in the text boxes on the window are removed. This option removes any conditions previously defined for this segment.
Operator – defines how the data is evaluated. Select the up arrow and select from the following choices:
EQ – equal to
NE – not equal to
LT – less than
LE – less than or equal to
GT – greater than
GE – greater than or equal to
Right Operand – contains the data against which the data in the Left Operand will be evaluated. Select 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. You return to the Segment Condition window and the names of the record and field you selected display in the Right Operand text boxes.
If you choose Memory Variable, the Memory Variables window displays. Double-click a memory variable to select it. You return to the Segment Condition window and MEMVAR and the name of the memory variable you selected display in the Right Operand text boxes.
If you choose Constant, the Constant window displays. Enter the character string and select OK. You return to the Segment Condition window and STRVAR and the character string you entered display in the Right Operand text boxes.
Select Next to enter another condition; Select OK to return to the Mapping window.