Save disk space and make your data sets easier to understand by inputting only the data you need. Drop variables you no longer need.
DATA mylib.yearly(DROP=Rain1-Rain12);
SET Old(DROP=Snow1-Snow12);
Total = SUM(of Rain1-Rain12);
programming statements
RUN;
Drop DO loop indexing variables.
data Mylib.NewCost (DROP=i);
set Mylib.Cost;
array Amt(100) Amt1-Amt100;
do i=1 TO 100;
Amt(i)=MAX(0,Amt(i));
end;
run;
Store numeric categorical data in character variables to save space.
length quest1-quest40 $ 1;
DATA mylib.yearly(DROP=Rain1-Rain12);
SET Old(DROP=Snow1-Snow12);
Total = SUM(of Rain1-Rain12);
programming statements
RUN;
Drop DO loop indexing variables.
data Mylib.NewCost (DROP=i);
set Mylib.Cost;
array Amt(100) Amt1-Amt100;
do i=1 TO 100;
Amt(i)=MAX(0,Amt(i));
end;
run;
Store numeric categorical data in character variables to save space.
length quest1-quest40 $ 1;
No comments:
Post a Comment