SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Basic Concepts
SAS Programs


You've seen the results of submitting our sample program. For other SAS programs, the results of processing may vary:
  • Some SAS programs open an interactive window, such as the REPORT window.
         proc report data=clinic.admit;
            columns id name sex age actlevel;
         run;
    

REPORT window



  • SAS programs often invoke procedures that create output in the form of a report, as is the case with the TABULATE procedure.
         proc tabulate data=clinic.admit;
            class sex;
            var height weight;
            table sex*(height weight),mean;
         run;
    

  Mean
Sex F Height 64.82
Weight 141.73
M Height 72.00
Weight 172.80



  • Other SAS programs perform tasks such as sorting and managing data, which have no visible results besides messages in the log. (All SAS programs produce log messages, but some SAS programs produce only log messages.)
         proc datasets library=clinic;
            modify results;
            format testdate mmddyy8.;
         run;
    

SAS Log
2    proc datasets library=clinic;

                          -----Directory-----

        Libref:        CLINIC
        Engine:        V8
        Physical Name: C:\WINNT\Profiles\Personal\My SAS
        File Name:     C:\WINNT\Profiles\Personal\My SAS


                                               File
           #  Name      Memtype      size  Last modified
          -----------------------------------------------
           1  ADMIT     DATA         9216  2/23/99 12:40:


back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement