You can use the individual
occurrence SAS variables created by the ACCESS procedure such as BRANCH_1,
BRANCH_2, and so on, in SAS WHERE clauses, but you cannot use them
in a view WHERE clause. Note that individual occurrence conditions
must be processed by SAS after
ADABAS has completed its selection processing.
For example, the following
SAS WHERE clause searches the second occurrence for BRANCH-OFFICE
and retrieves the London values. SAS post-processes all records returned
from the interface view engine to see whether they meet the SAS WHERE
clause in effect.
where branch_1='LONDON'
The SAS WHERE clause produces the results in the following output.
Results of Individual Occurrence SAS Variable in SAS WHERE
Clause
OBS CUSTNUM BR_ANY BRANCH_1 BRANCH_2 BRANCH_3 BRANCH_4
1 26422096 LONDON NEW YORK
2 26984578 LONDON NEW YORK ROME
3 27654351 LONDON BOSTON
4 28710427 LONDON