Anda di halaman 1dari 22

SAS CURRICULUM

SAS TECHNICAL
BASE SAS
Day 1
What is SAS
Introduction
Why SAS
Few Modules of SAS
Working with the SAS Windows Environment
SAS Windowing Environment
The SAS Windows
Editor window
Log window
Output window
Result window
Explorer window
Overview of libraries
SAS Data Libraries
Assigning a Libref using Libname
Referencing Files in SAS Libraries
LIBNAME Window
Datasets
Data view
Basic concepts
Components of SAS Programs
Creating a SAS Programs
Characteristics of SAS Programs
Layout of SAS Programs
SAS Variables
How to run SAS Programs
SAS Comments
Titles and Footnotes
Creating HTML Output

Day 2
Understanding Data step Processing
Program data vector(PDV)
Compilation Phase
Execution Phase
Creating a File shortcut with the File Shortcut Assignment Window
Making a file shortcut to a program
Deleting a file shortcut
Browsing and submitting a file shortcut for a SAS program
Viewing file shortcut properties
Methods for getting data into SAS
Entering data directly into SAS data sets
Creating SAS data sets from raw data files
Converting other softwares data files into SAS data sets
Reading other softwares data file directly
Informats
Character informats
Numeric informats
Date and time informats

Day 3
Formats
Character formats
Numeric formats
Date and time formats
Pointers
Column pointers
Line Pointers
Reading Input Data - Input Styles
List input
Column input
Formatted input
Modified/Mixing input
Reading Messy Raw Data
Reading Multiple lines of Raw Data per observation
Reading Multiple observations per line of raw data
Reading Part of the raw data
Reading delimited file with DATA step
Reading Raw Data from External File
Proc Import
Infile statement
Filename statement with DDE

Day 4
Writing Data to External Files
Proc Export
File and Put Statement
Automatic Variables
_n_
_ERROR_
First.<var_name>
Last.<var_name>
_ALL_
_NULL_
Variable Attributes
Temporary Attributes
Permanent Attributes
Override Permanent Attributes
Options
Global options
System Options
Local Options
Statement Options
Dataset Options
Keep and Drop
Rename
Label
Compress
Firstobs
Obs
Missover
Truncover

Day 5
Statements
Global Statements
Local Statements
Functions
Arithmetic Functions
ABS
INT
FLOOR
CEIL
ROUND
MAX
MIN
SUM
MEAN
MOD
SQRT
STD
LOG
LOG10
EXP
N
NMISS
MISSING
LARGEST
SMALLEST
LAG
DIF

Day 6
Functions
String Functions
COMPRESS
COMPBL
INDEX
SUBSTR
SCAN
TRANSLATE
TRANWRD
TRIM
LEFT
STRIP
UPCASE
LOWCASE
PROPCASE
INPUT
PUT
LENGTH
CAT
FIND
ANYALNUM
ANYALPHA
ANYDIGIT
ANYPUNCT
ANYSPACE
VERIFY
COMPARE

Day 7
Date and Time Functions
TODAY
DAY
HOUR
WEEKDAY
DATE
DATEPART
DATETIME
INTCK
INTNX
MDY
TIMEPART
YEAR
MONTH
QTR
DATEJUL
YRDIF
Retain Statement
Sum Statement

Day 8
Conditional Control Statements
If statement
If then statement
If then else statement
Where statement
Loops
Do
Dountil
Dowhile
Arrays statement
Procedures
PROC PRINT
PROC CONTENTS
PROC FREQ
PROC SORT

Day 9
PRO FORMAT
PROC APPEND
PROC MEANS
PROC SUMMARY
PROC TRANSPOSE
PROC DATASETS
PROC REPORT
PROC TABULATE

Day 10
Combining SAS Datasets
Concatenating
Interleaving
Updating
Merging
Match-Merge
Left-Merge
Right-Merge
Inner-Merge
Left-Outer-Merge
Right-Outer-Merge
Full-Outer-Merge
Full-Merge

Day 11
One-to-One merging
One-to-Many merging
Many-to-many merging
Output Delivery System (ODS)
Fundamentals of the ODS
Tracing and Selecting Procedure Output
Creating SAS Data Sets from Procedure Output
Using ODS Statements to Create HTML Output
Using ODS Statements to Create RTF Output
Using ODS Statements to Create PRINTER Output

Day 12
Customizing Titles and Footnotes
COLOR
BCOLOR
HEIGHT
JUSTIFY
FONT
BOLD and ITALIC
Customizing PROC PRINT Output with the STYLE= Option
Customizing PROC REPORT Output with the STYLE= Option
Customizing PROC TABULATE Output with the STYLE= Option
PROC TABULATE statement
TABLE statement
CLASSLEV, VAR, and CLASS statements
Adding Traffic-Lighting to Your Output
Selected Style Attributes

Day 13
Debugging of Errors
Writing SAS programs that work
Fixing programs that Dont work
Searching for the Missing Semicolon
Input Statement Reached Past the End of the Line
Lost Card
Invalid Data
Missing values were generated
Numeric values have been converted to character (or vice versa)
DATA Step Produces Wrong Results but No Error Message
The Data Step Debugger

Day 14
Debugging of Errors
Error: Invalid option, Error: The Option is Not Recognized, or Error: Statement is Not Valid
Note: Variable is Uninitialized or Error: Variable Not Found
SAS Truncates a Character Variable
SAS Stops in the Middle of the Job
SAS Runs Out of Memory or Disk Space
Catalogs

Day 15
SAS/GRAPH
Introduction to Graphs Types of Graphs
Type of Graph
Chart
Plot
Illustration of axis options
Illustration of symbol options
Illustration of footnote, note, title
Graph n go

SAS FUNCTIONAL
Day 16
SAS/STAT
Introduction to Statistics
Proc Univariate
Proc Correlation
Proc Regression
Proc Annova

ADVANCED SAS
Day 17
SAS/MACROS
Introduction to Macro Language Elements
Overview
Micro Processor
Macros and Macro Variables
Local verses Global
Turning on the macro processor
Avoiding macro errors
Introduction to Macro Variables
Automatic Macro Variables
User defined Macro Variables
%LET
CALL SYMPUT
SELECT INTO
A Word about Tokens

Day 18
SAS/MACROS
Creating Modular Code with Macros
Macro Statements
Invoking Macro
Macro autocall libraries
Adding Parameters to Macros
Writing Macros with Conditional Logic
Debugging Macro Errors
Avoiding macro errors
Quoting problems
System options for debugging macros
MERROR message
SERROR message
MLOGIC message
MPRINT message
SYMBOLGEN message

Day 19
SAS/SQL

Introduction to PROC SQL


Creating an output listing with PROC SQL
Creating a table with PROC SQL
Creating and assigning columns and selecting and sorting rows
Creating columns with Case expressions and user-built formats
Selecting and assigning columns and summarizing rows
Using Having clauses to evaluate records summed over a Group By
Using Having clauses versus sub queries to evaluate values summed over a table
Having clauses versus Where clauses with sub queries.
Removing Duplicates

Day 20
SAS/SQL
Inserting data into tables
Alter the tables
RENAME TABLE
ADD COLUMN
RENAME COLUMN
DROP COULMN
MODIFY COULMN
Delete Table or Number of Observations
Update
Modifying the tables

Day 21
Retrieving Data from Single Table
Integration of Database
Connecting to a DBMS Using the SQL Procedure Pass-Through Facility
Connecting to a excel Using the SQL Procedure Pass-Through Facility
Connecting to a access Using the SQL Procedure Pass-Through Facility
Connecting to a DBMS Using the Libname Statement
Retrieving Data from Multiple tables
Natural Join
Inner Join
Outer Join (Right, Left, Full)

Day 22
SAS/ACCESS

Define SAS/Access Software


Identify the types of data repositories that SAS/Access can access
The interface engine
The SAS/Access Libname Statement
The SQL Procedure Pass-Through Facility
The Access Procedure
Requirements to Connect to a Database
SAS/Access Libname engines

ODBC

Understanding how to use the ODBC with SAS software


Set up a data source for a data base driver
Defining the ODBC API
ODBC Terminology
Defining the Data Source Manager
ODBC driver
Data sources