Dec 24, 2010

Procedures in SAS

My second day in preparation for SAS BASE Certification. I have started with PROCEDURE PRINT .This is one of the most used procedures in SAS 9. Every time we play around with SAS data sets we want to see the output. This is also the easiest of all procedures.

PROC PRINT DATA="datasetname";
RUN;

This is the syntax of "proc data". There are many options that can be used with this procedure. Like noobs,obs, label, notes(for printing lines before and after the data set), etc.The noobs option omits the OBS column of output.The var option specifies the variables to be listed and the order in which they will appear. The label option uses variable labels as column headings rather than variable names (the default).The optional by statement produces output grouped by values of the by variable(s).



No comments:

Post a Comment