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 - Output
The SAS System 12
16:11 Thursday, June 24, 1999
The CONTENTS Procedure
Data Set Name: WORK.HTWT Observations: 18
Member Type: DATA Variables: 5
Engine: V7 Indexes: 0
Created: 16:24 Thursday, Observation Length: 40
June 24, 1999
Last Modified: 16:24 Thursday, Deleted Observations: 0
June 24, 1999
Protection: Compressed: NO
Data Set Type: Sorted: NO
Label:
-----Engine/Host Dependent Information-----
Data Set Page Size: 4096
Number of Data Set Pages: 1
First Data Page: 1
Max Obs per Page: 101
Obs in First Data Page: 18
Number of Data Set Repairs: 0
File Name: C:\WINDOWS\TEMP\SAS Temporary
Files\_TD71645\htwt.sas7bdat
Release Created: 7.00.00P
Host Created: WIN_95
-----Alphabetic List of Variables and Attributes-----
# Variable Type Len Pos
-----------------------------------
3 age Num 8 0
4 height Num 8 8
1 name Char 10 24
2 sex Char 1 34
5 weight Num 8 16
The SAS System 13
16:11 Thursday, June 24, 1999
Obs name sex age height weight
1 Aubrey M 41 74 170
2 Ron M 42 68 166
3 Carl M 32 70 155
4 Antonio M 39 72 167
5 Deborah F 30 66 124
6 Jacqueline F 33 66 115
7 Helen F 26 64 121
8 David M 30 71 158
9 James M 53 72 175
10 Michael M 32 69 143
|
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
|