if LandCost=. then delete;
data remove;
set mylib.arts;
if LandCost=. then delete;
run;
proc print data=remove;
title 'Tours With Complete Land Costs';
run;
if Nights ne 6 then delete;
if Nights = 6;
data subset6;
set mylib.arts;
if nights=6;
run;
proc print data=subset6;
title 'Six-Night Tours';
run;
Low
, Medium
,
and High
, a first thought would be
to delete observations with a value of High
.
The following program creates a SAS data set by deleting observations
that have a Budget value of HIGH
:
/* first attempt */
data lowmed;
set mylib.arts;
if upcase(Budget)='HIGH' then delete;
run;
proc print data=lowmed;
title 'Medium and Low Priced Tours';
run;
/* a safer method */
data lowmed2;
set mylib.arts;
if upcase(Budget)='MEDIUM' or upcase(Budget)='LOW';
run;
proc print data=lowmed2;
title 'Medium and Low Priced Tours';
run;
13.59.174.202