You can specify a SAS WHERE statement or a SAS WHERE command to
retrieve a subset of ADABAS data while you are using the FSP procedures.
The WHERE statement is submitted when the FSP procedure is invoked
and retrieves only the observations that meet the conditions of the
WHERE statement. The other observations are not available until you
exit the procedure. This is called a
permanent WHERE clause. A SAS WHERE command is a WHERE expression that is
invoked from the command line within an FSP procedure. You can clear
the command to make all the observations available so it is known
as a
temporary WHERE clause.
The following example
of a WHERE statement retrieves the customers from California. These
customers are a subset of the customers for the CUSTOMERS DDM.
proc fsview data=vlib.usacust edit;
where state='CA';
run;
The following output shows the
FSVIEW window after the statements have been submitted.
Results of Specifying a WHERE Statement While Updating Data
FSVIEW: VLIB.USACUST (Subset)
Command ===>
ROW CUSTNUM STATE ZIPCODE COUNTRY
2 14324742 CA 95123 USA
3 14324742 CA 95123 USA
15 19876078 CA 93274 USA
16 19876078 CA 93274 USA
Only the logical records
with a STATE value of
CA
are retrieved for
editing. Note that (Subset) appears after VLIB.USACUST in the window
title to remind you that the data retrieved is a subset of the data
that is described by the view descriptor. You can then edit each observation
by typing over the information that you want to modify. Issue the
END command to end your editing session.
The following output
shows the
FSVIEW window when the subset of
data is generated by the WHERE command:
where state='CA'
Results of Specifying a WHERE Command While Updating Data
FSVIEW VLIB.USACUST WHERE ...
Command ===>
ROW CUSTNUM STATE ZIPCODE COUNTRY
2 14324742 CA 95123 USA
3 14324742 CA 95123 USA
15 19876078 CA 93274 USA
16 19876078 CA 93274 USA
Although these examples
have shown a SAS WHERE statement and a SAS WHERE command with the
FSVIEW procedure, you can also retrieve a subset of data using the
FSBROWSE and FSEDIT procedures. For more information about the SAS
WHERE statement, refer to
SAS Statements: Reference. For
more information about using the SAS WHERE command within the
SAS/FSP
procedures, refer to
SAS/FSP Procedures Guide.