This example creates
an output data set of all the players who earn less than $750,000
and who are in the American League.
-
In the
Tasks section,
expand the
Data folder, and then double-click
Filter
Data. The user interface for the Filter Data task opens.
-
For the input data source,
select
SASHELP.BASEBALL.
-
To create the filter
for salaries less than $750,000:
-
Under the
Filter
1 heading, assign
Salary to
the
Variable 1 role.
-
From the
Comparison drop-down
list, select
Less than.
-
From the
Value
type drop-down list, select
Enter a value.
-
In the
Value box,
enter
750
.
-
From the
Logical drop-down
list, select
AND.
-
To create the filter
for players in the American League:
-
Under the
Filter
2 heading, assign
League to
the
Variable 2 role.
-
From the
Comparison drop-down
list, select
Equal.
-
From the
Value
type drop-down list, select
Select distinct
value.
-
From the
Value drop-down
list, select
American.
-
Under the
Output
Data Set heading, select
Show output data to
view the output data set in the results. From the
Show drop-down
list, select
Show all output data.
-
To run the task, click
.