Practical Data Management
and Statistical Computing (BioEp691F)
Outline: Lec1 Lec2
Lec3 Lec4
Lec5 Lec6
Lec7 Lec8
Lec9 Lec10
Lectures: Lec1
Lec2
Lec3 Lec4
Lec5
Lec6
Lec7
Lec8
Lec9
Lec10
Lecture 2
1.
Review
- Identify elements SAS System and Course
SYNTEX
- Program to Read data, Print Data and Tabulate Results
(lec1sm5.sas)
- What you need to Know about Windows
- How to move from one window to another, use the mouse,
shrink and enlarge windows, display multiple windows.
- How to start and create a simple word processing document,
change the fonts, and save the document on a floppy disk.
- How to access the WEB, and move from one page to another on
it using the mouse.
- How to cut and paste information from one window to another
window.
2. SAS
Keywords
- DATA
- RUN
- Typing Data Into
SAS
- Variable Names must
- a. contain from 1 to 8 characters
- b. must have as the 1st character a letter or the
underscore ("_")
- c. cannot contain blanks
- d. If variables contain characters, then a "$" follows the
variable name. The "$" specification stores the variables in a
"character" format, as opposed to a numeric format. A simple
example is given in LEC13P5.SAS.
3. Typing in a SAS program and
Using the Display Manager
- Adding a comment with your name and
date
- Using the KEYS to move in the SAS
Display Manager
4. Adding Buttons to the SAS Display Manager Menu
- You can add buttons. An example is a
button
that will:
- clear the log window
- clear the output window
- run the program in the program
window
- move to the log window
- search from the top of the log to the
first ERROR
5. Documenting and Naming
SAS Programs with a Common Header
Use a system to keep track of SAS Programs, re-using the same
pieces of the system for each program. The system
includes:
- Program name: lec10p1.sas,
lec10p2.sas, etc
- Header for program including:
- OPTIONS statement
- TITLE1 statment with program name, date, storage location,
programmer
- Brief Description
- Standard LIBNAMES
- Copy header in each time, changing program number and
description- immediately use SAVE AS to rename saved SAS
program.