163 data newdata;
164 input name$ age maj$ score;
165 cards;
NOTE: The data set WORK.NEWDATA has 4 observations and 4 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
170 run;
171 data newdata;
172 set newdata_2;
ERROR: File WORK.NEWDATA_2.DATA does not exist.
173 if maj nursing psychology then newmaj = sci;
-------
388
76
174 if maj dance then newmajo = art;
-----
388
76
ERROR 388-185: Expecting an arithmetic operator.
ERROR 76-322: Syntax error, statement will be ignored.
175 if score <1 then newscore = low;
176 if score <=1 then newscore = mid;
177 if score <=3 then newscore = high;
178 run;
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.NEWDATA may be incomplete. When this step was
stopped there were 0 observations and 5 variables.
WARNING: Data set WORK.NEWDATA was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
... View more