libname ashish "/folders/myfolders";
proc import datafile="/folders/myfolders/Car_sales.csv" out=Car_sales dbms=csv replace;getnames=yes;
proc copy in=work out=ashish;
select Car_sales;
proc print data=ashish.Car_sales;
IF Price_in_thousands='.' then delete;
run;
If you want to modify the data set you need to use a data step.
data filtered;
set ashish.car_sales;
where not missing(price_in_thousands);
run;
If you want to filter the results to display in Proc print then use a where.
Where not missing(price_in_thousands );
Proc print does not allow If or delete.
To show the records where a specific condition is needed use a WHERE clause:
WHERE Price_in_Thousands ne . ;
If you want to modify the data set you need to use a data step.
data filtered;
set ashish.car_sales;
where not missing(price_in_thousands);
run;
If you want to filter the results to display in Proc print then use a where.
Where not missing(price_in_thousands );
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.