I have the following code, but if you notice the "END;" is in red as if there is a statement missing. And when I run this I get an error message "ERROR 180-322: Statement is not valid or it is used out of proper order."
Here is my code:
DATA _NULL_;
SET TEST;
IF FIRST.RECNO ^= 0 THEN DO;
PROC SORT DATA=TEST OUT=TEMP;
BY DESCENDING RECNO;
RUN;
DATA DATASET2;
SET TEMP;
BY RECNO;
IF FIRST.RECNO;
RUN;
END;
RUN;
Aucun commentaire:
Enregistrer un commentaire