06-14-2012 05:59 AM
do i=1 to 5;
if i<n then
The sas log:
10 data _null_;
12 do i=1 to 5;
13 if i<n then
17 els??? ???? do;
WARNING 1-322: Assuming the symbol ELSE was misspelled as els.
ERROR 180-322: Statement is not valid or it is used out of proper order.
06-14-2012 06:59 AM
I am not seeing any errors when the above code was submitted.
If I replace 'else' with 'els' and submit I get the WARNING but not the ERROR.
What version of SAS and environment are you using?
06-14-2012 09:02 PM
Thank you for your help.
My SAS is version 9.2, and i used enhanced editor and submitted. But i always got ERROR , there were some question marks in the log. Very strange! I don't know why. I tried to install SAS again and the problem was still not resolved.
By the way, all other programs run correctly on the SAS.