The MCHP SAS MANUAL - Create Height/Weight/Region (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/Region - log

NOTE: Copyright (c) 2002-2003 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) 9.1 (TS1M2)
Licensed to UNIVERSITY OF MANITOBA, Site 0002246003.
NOTE: This session is executing on the WIN_PRO platform.

NOTE: SAS initialization used:
real time 7.68 seconds
cpu time 1.31 seconds

1 ******************************************
2 * Example 3 - only for creating *
3 * htwt_reg data used *
4 * f=htwt_reg_cr.sas *
5 * *
6 * This program creates a temporary *
7 * SAS data set used in in the example 3 *
8 * program. In most cases this data set *
9 * will be available as a permanent SAS *
10 * file in the course library *
11 ****************************************** ;
12
13 data htwt_reg ;
14 ** informats are similar to usign an informat on
15 an input statement to define the lenght of
16 a variable. This method is often used
17 when reading variable length fields from
18 list or delimited input files. ;
19 informat name $10. region $12. ;
20 input @1 name @14 region ;
21 cards ;

NOTE: The data set WORK.HTWT_REG has 18 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.42 seconds
cpu time 0.04 seconds


40 ;
41 run;
42
43 proc contents data=htwt_reg; /* Begin a PROC step */
44 run;

NOTE: PROCEDURE CONTENTS used (Total process time):
real time 0.45 seconds
cpu time 0.07 seconds

44 ! /* End the PROC step */

45
46 /* View the values of the 1st 10 observations */
47 proc print data=htwt_reg(obs=10); /* Begin a PROC step */
48 run;

NOTE: There were 10 observations read from the data set WORK.HTWT_REG.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.06 seconds
cpu time 0.03 seconds


48 ! /* 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 Friday, 26-Aug-2005 10:35:44 CDT