Hi Bob -

  First off, I thought *CAT is used only for numeric variable.  &DIV is a
   one character field as is the GTDIV field in the file.

   Second, If I take out the lines with:

   *AND GTDIV *EQ &DIV

You have to use *CAT (or *BCAT or *TCAT) for any kind of variable so that the contents of the variable are substituted into the select.

Numeric:

... *AND FIELD *EQ ' *CAT &NUMBER *CAT ' ...

Character:

... *AND FIELD *EQ "' *CAT &ALPHA *CAT '" ...

Note the double quotes on either side of the concatenated value for character fields. You could also use a pair of single quotes but the double quotes are much nicer to work with.

Ken
http://www.kensims.net/
Opinions expressed are my own and do not necessarily represent the views
of my employer or anyone in their right mind.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.