You can specify
a WHERE statement to subset CA-Datacom/DB data when you invoke the SAS/FSP procedures. You
can also use a WHERE command to do the same thing after you have invoked
one of the SAS/FSP procedures.
In the following example,
a WHERE statement is used to retrieve only customers from California:
proc fsedit data=vlib.usacust;
where state='CA';
run;
The following graphic shows the
FSEDIT window
after the statements have been submitted.
Only two records with a STATE value of CA are retrieved for editing. Note that the
word (Subset) appears after Vlib.UsaCust in the window title. This is 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 record by typing over the information that you want to modify.
Issue the END command to end your editing session. If you want to cancel changes
to a record, you can issue the CANCEL command before you scroll. Once you scroll though,
the change is committed.
You can also use a SAS
WHERE command to display a subset of your data. A WHERE command is
a SAS WHERE expression that is entered on the command line. The following
graphic shows how the
FSEDIT window appears
when the subset is generated within the procedure with the following
WHERE command:
where state='CA'
Only the two records
with a STATE value of CA are retrieved for editing. Where 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 record, as described earlier.
Although these examples
have shown a WHERE clause with the FSEDIT procedure, you can also
retrieve a subset of the data when using the FSBROWSE and FSVIEW procedures.
For more information about the SAS WHERE statement, see the SAS Functions and CALL Routines: Reference. For more information about the SAS WHERE command
within the SAS/FSP procedures, see the SAS/FSP Procedures
Guide.