01-08-2015 08:05 PM
Hey this might be be a simple error to fix, however I am new to SAS. Its a simple if/else statement which is trying to separate the variable assign.
My code is:
DATA = stats20x.stats20x2;
SET = stats20x.stats20x;
IF assign >= 10 THEN pass_assign =1;
ELSE pass_assign = 0;
stats20x.stats20x is the original data set and assign is a variable in that data set.
The error is ERROR 180-322: Statement is not valid or it is used out of proper order.
I keep getting this for the data, if and else commands.
Need further help from the community? Please ask a new question.