SAS Notes

Compiled by : Wilson Suraweera @ CGHR
Contents
Random Numbers in SAS
Data Sub-setting
Method  for Select a Random Sample
Missing values replacement with Means of the respective Variables
Logistic Regression with SAS
SAS made easy using Proc SQL
SAS PROC SQL procedure to access external ODBC data sources
SAS String Data Handling
External Resources
Macro Seminar - UCLA
Logistic regression
          Some Interesting SAS SQL Examples
SAS Dinosaur - Old and New way of SAS progrming
Paul Dicman's Web Page for SAS- This little old discusses SAS 8, but useful
Global Statements Dictionary - Alphabatical listing and Description of SAS Key words

 

         

 Data Sub-setting

/* This example divides the sample dataset into 2 subsets one with first 50 records and other with remaining */;
 

data sub1 sub2;
   set Sample;
        i+1 ;
    if (i <=50) then do; output out=sub1; end;
    else do; output out=sub2; end;
   drop i;
run;
 

run;

 

Back to Top