Missed asking this question here Very similar question, but put quotes for Horsepower > 250 and NOT put quotes for Horsepower if it does not meet the condition. data _null_;
file "/path/output/unix/cars.csv"
dsd dlm = ',';
set sashelp.cars;
if _n_ = 1 then put @1
"Make,Model,Type,Origin,DriveTrain,MSRP,Invoice,EngineSize,Cylinders,Horsepower,MPG_City,MPG_Highway,Weight,Wheelbase,Length";
put Make
Model
Type
Origin
DriveTrain
MSRP
Invoice
EngineSize
Cylinders
Horsepower ~
MPG_City
MPG_Highway
Weight
Wheelbase
Length;
run;
... View more