PROGRAM
--------------------------------------
**************************************************
SORT: ORDER BY CLAUSE
TWO OPTIONS OF ASCENDING(ASC) AND
DECENDING(DESC)
**************************************************;
PROC SQL ;
CREATE TABLE DEMOG1 AS
SELECT *
SELECT *
FROM DEMOG
ORDER BY DOSE DESC, SEX
/*NOT USE 'DESCENDING.' THIS IS DIFFERENT FROM 'PROC SORT'*/
/*NOT USE 'DESCENDING.' THIS IS DIFFERENT FROM 'PROC SORT'*/
;
QUIT ;
PROC PRINT DATA=DEMOG1;
RUN ;
--------------------------------------
Post a Comment
別ページに移動します