The MCHP SAS MANUAL - Create Height/Weight (log)

         

Home    Contents

GENERAL GUIDELINES:
Windows in SAS
File management

The SAS Program
Program syntax
Debugging tips


 USING SAS PROGRAMMING TO: 
   
1. Prepare the data set 
   Types of data 
   Example programs    
    
2. View the data
   SAS Procedures
  
3. Explore the data  
   Numeric statistics    
   Frequency tables    
    
4. Manipulate the data  
   Basic techniques    
   New variables
  
5. Adding Variables and 
Observations to Data Sets
   The SET Statement
   The MERGE Statement

6. Data Processing
   ARRAY Statement
   Do Loops
   By-Group Processing
   RETAIN Statement
  
NON-PROGRAMMING 
      Alternatives

 
SAMPLE DATA SETS: 
 Height/weight
 Height/weight/region
 Simulated clinical data 
 Simulated Manitoba Health 
    

Sample Data Sets: Height/Weight - log

241
242  ************************************
243  * f=htwt_cr.sas                    *
244  *                                  *
245  * This program creates a temporary *
246  * SAS data set using raw values    *
247  * entered for 18 observations.     *
248  ************************************;
249
250  data htwt;                  /* Begin the DATA step */
251            /* Describe variable names and locations */
252    input name $ 1-10 sex $ 12 age 14-15
253          height 17-18 weight 20-22;
254             /* Read the following lines of raw data */
255  cards;

NOTE: The data set WORK.HTWT has 18 observations and 5
      variables.
NOTE: DATA statement used:
      real time           0.04 seconds


274  ;              /* End the lines of raw data */
275  run;           /* End the DATA step */
276
277                   /* Obtain info on the data set */
278  proc contents data=htwt; /* Begin a PROC step */
279  run;

NOTE: PROCEDURE CONTENTS used:
      real time           0.16 seconds

279!                          /* End the PROC step */

280
281        /* View the values of the 1st 10 observations */
282  proc print data=htwt(obs=10);  /* Begin a PROC step */
283  run;

NOTE: PROCEDURE PRINT used:
      real time           0.04 seconds

283!                                /* End the PROC step */


Contact: Charles Burchill       Telephone: (204) 789-3429
Manitoba Centre for Health Policy
Department of Community Health Sciences, University of Manitoba
4th floor Brodie Centre
408 - 727 McDermot Avenue
Winnipeg, Manitoba R3E 3P5       Fax: (204) 789-3910
Last modified on Wednesday, 24-Aug-2005 13:49:28 CDT