""Carol Srna"" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Hello All.
> Input Fields:
> Volser: 3-8
> 
> STATUS $ 71 
> 
> DSN: $ 10-53
> 
> Location: $ 55-62
> 
> IF STATEMENTS:
> IF (STATUS = 'M' AND VOLSER NE '.' AND DSN NE ' '
>    OR LOCATION NE 'OAM' OR LOCATION NE 'DYLT');
> 
> I do not want any Locations of OAM or DYLT. BUT, I am getting records
for 
> them and also records where the VOLSER and DSN fields are blanks.
> 
> What's wrong with this code?
> TIA
> ~~Carol

Carol,

If you make sure it works the way you want, use more brackets or
separate IF statements.

E.g.: this is always true: LOCATION NE 'OAM' OR LOCATION NE 'DYLT'. If
location = OAM, it is unequal to DYNLT and visa versa.

Kees.


**********************************************************************
For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential and 
privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment may be 
disclosed, copied or distributed, and that any other action related to this 
e-mail or attachment is strictly prohibited, and may be unlawful. If you have 
received this e-mail by error, please notify the sender immediately by return 
e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), 
its subsidiaries and/or its employees shall not be liable for the incorrect or 
incomplete transmission of this e-mail or any attachments, nor responsible for 
any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch 
Airlines) is registered in Amstelveen, The Netherlands, with registered number 
33014286 
**********************************************************************

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to