libname SASDATA “C:\Users\C62738\Downloads”;

libname SASAV “C:\Users\C62738\Downloads”;

data SASDATA.TWO;

input X Y;

datalines;

5 2

3 1

5 6

data SASAV.ONE SASAV.TWO OTHER;

set SASDATA.TWO;

if X eq 5 then output SASAV.ONE;

if Y lt 5 then output SASAV.TWO;

output;

run;

proc print data=SASDATA.TWO;

title “SASDATA.TWO “;

run;

proc print data=SASAV.ONE;

title “SASAV.ONE “;

run;

proc print data=SASAV.TWO;

title ” SASAV.TWO “;

run;

proc print data=OTHER;

title ” OTHER “;

run;

There were 3 observations read from the data set SASDATA.TWO.

The data set SASAV.ONE has 5 observations and 2 variables.

The data set SASAV.TWO has 5 observations and 2 variables.

The data set WORK.OTHER has 3 observations and 2 variables.