![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/ACCESS Interface To ADABAS: Reference |
sex=femaleand the SAS WHERE clause condition translates into
position=marketingthe resulting selection criteria are
(position=marketing) and (sex=female)
proc print data=vlib.emp1; where lastname < 'KAP' and payrate > 30 * overtime; run;The interface view engine translates as much of the SAS WHERE clause as possible without producing incorrect results or a syntax error. In the example above, the engine has no problem with the first condition, but the arithmetic in the second condition is not supported. The interface view engine uses the condition where lastname < 'KAP' to filter out as many logical records as possible to improve performance.
In Periodic Group Fields in WHERE Clauses , assume DF1, DF2, and DF3 are ADABAS data fields referenced by a view descriptor. Remember that the SAS System never sees view WHERE clauses.
| SAS WHERE Clause Conditions Acceptable to ADABAS |
| SAS WHERE Clause Syntax | View WHERE Clause Translation |
|---|---|
| = | = |
| > | > |
| < | < |
| <> | != |
![]() |
![]() |
![]() |
![]() |
| ( | ( |
| ) | ) |
| AND | AND |
| OR | OR |
| SAS WHERE Clause Conditions Not Acceptable to ADABAS |
WHERE DF1 = DF4 * 3 WHERE DF4 < - DF5
WHERE DF1 WHERE (DF1 = DF2) * 20
DF1 =: ABC
'12:00'T '01JAN60:12:00'DT
| When a SAS WHERE Clause Must Reference Descriptor Data Fields |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.