Page 72 - SAS_manual
P. 72

7.1 PROCEDURE STEPS


               Procedures are predefined program to perform specific task. Procedures are used to perform analysis
               and generate reports.

               All procedures start with keyword proc and follow procedure name like PROC SORT, PROC PRINT etc.
               Most of the procedures end with RUN keyword but few ends with QUIT keyword.

               Conventions:
               Dsn                             dataset name
               Newdsn                      new dataset name
               Varlist                         multiple variable list

               Numeric varlist           only numeric variable
               Presorted varlist         variables of sorted datasets

               7.2 PROC SORT:


               Proc sort is used to sort the dataset in ascending order or in descending order according to by statement
               variable .Default storing data is ascending.

               SYNTAX:

               Proc sort data=dsn out=newdsn;
               By varlist;
               Run;

               Program 7.1:















               Output:



                                                    SAS HANDBOOK | VISIT:: http://nikhilanalytics.com  72
   67   68   69   70   71   72   73   74   75   76   77