You are asking if two abbreviated relational conditions are the same.
The effect of using such abbreviations is as if the last preceding stated subject were inserted in place of the omitted subject, and the last stated relational operator were inserted in place of the omitted relational operator.
The interpretation applied to the use of the word NOT in an abbreviated combined relation condition is:[ul square][li]If the word immediately following NOT is GREATER, >, LESS, <, EQUAL or =, the NOT participates as part of the relational operator.[/li][li]In all other circumstances, the NOT is interpreted as a logical operator and, therefore, the implied insertion of subject or relational operator results in a negated relation condition.[/li][/ul]
Since the word that follows NOT is =, the omitted relational operator is NOT =.
The non-abbreviated equivalent of
Code:
IF FIELD-1 NOT = 'AB' AND 'CD'
is
Code:
IF FIELD-1 NOT = 'AB' AND FIELD-1 NOT = 'CD'
because the omitted subject is FIELD-1 and the omitted relational operator is NOT =.
The non-abbreviated equivalent of
Code:
IF FIELD-1 NOT = 'AB' AND NOT = 'CD'
is
Code:
IF FIELD-1 NOT = 'AB' AND FIELD-1 NOT = 'CD'
because the omitted subject is FIELD-1 and the omitted relational operator is NOT =.
They look the same to me.
Tom Morrison