Base and Advance SAS

Similar documents
SAS CURRICULUM. BASE SAS Introduction

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS

SAS Online Training: Course contents: Agenda:

BUSINESS ANALYTICS. 96 HOURS Practical Learning. DexLab Certified. Training Module. Gurgaon (Head Office)

Contents of SAS Programming Techniques

Acknowledgments xi Preface xiii About the Author xv About This Book xvii New in the Macro Language xxi

SAS (Statistical Analysis Software/System)

SAS (Statistical Analysis Software/System)

Techdata Solution. SAS Analytics (Clinical/Finance/Banking)

Contents. About This Book...1

BASICS BEFORE STARTING SAS DATAWAREHOSING Concepts What is ETL ETL Concepts What is OLAP SAS. What is SAS History of SAS Modules available SAS

An Introduction to SAS University Edition

SAS Macro. SAS Training Courses. Amadeus Software Ltd

SAS (Statistical Analysis Software/System)

SAS CLINICAL SYLLABUS. DURATION: - 60 Hours

Big Data Executive Program

SAS Training BASE SAS CONCEPTS BASE SAS:

From An Introduction to SAS University Edition. Full book available for purchase here.

Chapter 2: Getting Data Into SAS

Contents. Tutorials Section 1. About SAS Enterprise Guide ix About This Book xi Acknowledgments xiii

Merge Processing and Alternate Table Lookup Techniques Prepared by

Deccansoft Software Services. SAS Syllabus

AURA ACADEMY SAS TRAINING. Opposite Hanuman Temple, Srinivasa Nagar East, Ameerpet,Hyderabad Page 1

SAS Macro Language: Reference

Accessing Data and Creating Data Structures. SAS Global Certification Webinar Series

SAS Institute Exam A SAS Advanced Programming Version: 6.0 [ Total Questions: 184 ]

Introduction. Getting Started with the Macro Facility CHAPTER 1

Using SQL with SQL Developer 18.2

SAS 101. Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23. By Tasha Chapman, Oregon Health Authority


Program Validation: Logging the Log

What Is SAS? CHAPTER 1 Essential Concepts of Base SAS Software

CHAPTER 7 Using Other SAS Software Products

STAT:5400 Computing in Statistics. Other software packages. Microsoft Excel spreadsheet very convenient for entering data in flatfile

APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software. Each of these steps can be executed independently.

Run your reports through that last loop to standardize the presentation attributes

Using SQL with SQL Developer 18.2 Part I

An Introduction to SAS Macros

Oracle Syllabus Course code-r10605 SQL

Excel 2013 Essentials Syllabus

Tasks Menu Reference. Introduction. Data Management APPENDIX 1

Excel 2016 Essentials Syllabus

Choosing the Right Procedure

CSC Web Programming. Introduction to SQL

Advanced SQL Processing Prepared by Destiny Corporation

Using SQL with SQL Developer Part I

Chapter 6: Modifying and Combining Data Sets

Surviving the SAS Macro Jungle by Using Your Own Programming Toolkit Kevin Russell, SAS Institute Inc., Cary, North Carolina

Oracle Database 11g: SQL and PL/SQL Fundamentals

Chapter 7 File Access. Chapter Table of Contents

T-SQL Training: T-SQL for SQL Server for Developers

SAS 9 Programming Enhancements Marje Fecht, Prowerk Consulting Ltd Mississauga, Ontario, Canada

Objectives Reading SAS Data Sets and Creating Variables Reading a SAS Data Set Reading a SAS Data Set onboard ia.dfwlax FirstClass Economy

Foundations and Fundamentals. SAS System Options: The True Heroes of Macro Debugging Kevin Russell and Russ Tyndall, SAS Institute Inc.

Contents. Overview How SAS processes programs Compilation phase Execution phase Debugging a DATA step Testing your programs

Topics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia

Excel 2016: Core Data Analysis, Manipulation, and Presentation; Exam

Chapter 2. Performing Advanced Queries Using PROC SQL

Choosing the Right Procedure

Getting Your Data into SAS The Basics. Math 3210 Dr. Zeng Department of Mathematics California State University, Bakersfield

2997 Yarmouth Greenway Drive, Madison, WI Phone: (608) Web:

Oracle Database: Introduction to SQL Ed 2

A Time Saver for All: A SAS Toolbox Philip Jou, Baylor University, Waco, TX

Microsoft Excel 2010 Level 1

Oracle Database: SQL and PL/SQL Fundamentals NEW

SAS System Powers Web Measurement Solution at U S WEST

GET A GRIP ON MACROS IN JUST 50 MINUTES! Arthur Li, City of Hope Comprehensive Cancer Center, Duarte, CA

DSCI 325: Handout 2 Getting Data into SAS Spring 2017

Unlock SAS Code Automation with the Power of Macros

Oracle Database: SQL and PL/SQL Fundamentals Ed 2

Microsoft Office Excel 2013 Courses 24 Hours

DB2 SQL Class Outline

Leave Your Bad Code Behind: 50 Ways to Make Your SAS Code Execute More Efficiently.

SAS Certification Handout #11: Adv. Prog. Ch. 9-10

STATION

How SAS Thinks Neil Howard, Basking Ridge, NJ

INTRODUCTION TO PROC SQL JEFF SIMPSON SYSTEMS ENGINEER

SAS PROGRAMMING AND APPLICATIONS (STAT 5110/6110): FALL 2015 Module 2

Oracle Database 10g: Introduction to SQL

Microsoft Excel 2016 Level 1

A Macro that can Search and Replace String in your SAS Programs

DATA Step Debugger APPENDIX 3

Intermediate SAS: Working with Data

The Power of PROC SQL Techniques and SAS Dictionary Tables in Handling Data

JMP Scripting Using JMP 14 Exam

COURSE CONTENT Excel with VBA Training

More About SAS Macros

IT 433 Final Exam. June 9, 2014

Reading data in SAS and Descriptive Statistics

Statements with the Same Function in Multiple Procedures

Greenplum SQL Class Outline

This course is aimed at those who need to extract information from a relational database system.

A SAS Macro for Producing Benchmarks for Interpreting School Effect Sizes

3. Almost always use system options options compress =yes nocenter; /* mostly use */ options ps=9999 ls=200;

MS in Applied Statistics: Study Guide for the Data Science concentration Comprehensive Examination. 1. MAT 456 Applied Regression Analysis

Microsoft Excel. Good day All,

Logging the Log Magic: Pulling the Rabbit out of the Hat

Understanding the Concepts and Features of Macro Programming 1

Microsoft Office Excel 2010: Basic. Course Overview. Course Length: 1 Day. Course Overview

SAS Training Spring 2006

Transcription:

Base and Advance SAS BASE SAS INTRODUCTION An Overview of the SAS System SAS Tasks Output produced by the SAS System SAS Tools (SAS Program - Data step and Proc step) A sample SAS program Exploring SAS Windowing Environment Navigation DATA ACCESS & DATA MANAGEMENT SAS Data Libraries Rules for Writing SAS Programs / Statements, Dataset Variable Name Getting familiar with SAS Dataset Data portion of the SAS Dataset Rules for writing Dataset names / Variable names Attributes of a Variable (Numeric / Character) Options System Options (nodate, linesize, pagesize, pagenoetc) Dataset Options (Drop, Keep, Rename, Where, Firstobs= Obs=) How SAS works (Flow of Data Step Processing - Compilation & Execution phase) Input Buffer

Program data vector (PDV) Descriptor Information of a SAS Dataset DATALINES OR CARDS DATA TRANSFORMATIONS SAS Date Values Length Statement Creating multiple output SAS datasets from singe input SAS dataset Conditionally writing observations to one or more SAS datasets Outputting Multiple Observations (Implicit Output) Selecting Variables and observations (DROP or KEEP statement and DROP= or KEEP = dataset options) Controlling which Observations are read (OBS= FIRSTOBS = Options) The Data Statement_Null_ The_N_Automatic Variable Creating Subset of observations Conditional Processing using IF-THEN and ELSE statement, IF----THEN DO ; ----END;ELSE DO;--- -END; DO WHILE Statement DO UNTIL Statement Iterative DO loop Processing Where Statement OR Where Condition (dataset) Deciding whether to use a Where statement or Subsetting IF statement Accumulating Totals for a Group of Data (BY- Group Processing (First & Last) Multiple BY variables DATASETS Procedure ( To modify the Variable name/lable/format/informat) Reading SAS datasets and Creating Variables Creating an Accumulating Variable (The RETAIN Statement) The DELETE Statement The SUM Statement The RENAME = Data Set option Combining SAS Datasets 1. Concatenating SAS Data Sets Using SET statement in DATA Step Inter Leaving SAS Data Sets Merging SAS Data Sets

Match-Merge Using Merge Statement THE IN = Data Set option Additional Features of merging SAS Datasets One-to-Many Merging Many-to-Many Merging READING RAW DATA FROM EXTERNAL FILE ( INFILE& INPUT STATEMENT ) Introduction to Raw Data Factors considered to examine the raw data Reading Unaligned Data (List Input) Reading Data Aligned to Columns (Column Input) Reading Data that requires Special Instructions (Formatted Input) Controlling the position of the Pointer in Formatted Input Absolute - Column pointer control (@) Relative- Column pointer control (+) Mixed Style Input ( Mixing List, Input. Formatted Input styles in one INPUT Staement) Using colon (:) modifier to specify an informat in the INPUT Statement ) Recognize delimiter in the raw data file (Using DLM= option in INFILE Statement Missing data at the end of row (Using MISSOVER option in INFILE statement ) Missing values without placeholders (DSD option in INFILE statement) Reading a raw data file with multiple records per observation(column pointer controls) Method1: Using Multiple INPUT statement Method2: Using Line Pointer Control (/) Reading Variables from multiple records in any order (#n) Line Hold Specifies in INPUT statement The Single Trailing @ The Double Trailing @@ ( Multiple Observations per Record) Methods of Control in INFILE statement FLOWOVER STOPOVER MISSOVER TRUNCOVER

Writing to an External File (FILE & PUT Statement ) Reading Excel Spreadsheets (IMPORT Wizard / Import Procedure) SAS FUNCTIONS Manipulating Character Values (SUBSTRING / RIGHT / LEFT / SCAN/ CONCATENATION TRIM / FIND / INDEX / UPCASE / LOWCASE / COMPRESS / LENGTH ) Manipulation Numeric Values ( ROUND / CEIL / FLOOR / INT / SUM / MEAN /MIN/MAX) Manipulating Numeric Values based on DATES ( MDY / TODAY / INTCK / YRDIF) Converting Variable Type INPUT ( character-to-numeric) PUT (numeric-to-character) Debugging SAS program (DEBUG Option) SAS VARIABLE Lists SAS Arrays Enhancing Report Output Defining Titles & Footnotes Formatting Data values ( Date, Character & Numeric values ) Creating User-Defined Formats (Proc Format) Formats &Informats ANALYSIS & PRESENTATION Descriptor portion of the SAS Data Set ( Proc Contents) Producing List Reports (Proc Print) Sequencing and Grouping Observations (Proc Sort) Producing Summary Reports PROC FREQ -(One Way & Two-Way Frequencies) PROC MEANS PROC REPORT PROC TABULATE PROC SUMMARY PROC PRINTO PROC APPEND PROC TRANSPOSE

PROC COPY PROC COMPARE PROC DATASETS Regression Procedure Univariate / Multivariate Procedures Ranking Procedure Producing Bard and Pie Charts Producing Plots The Output Delivery System (SAS/ODS) Creating HTML Reports Creating Text Reports Creating PDF Reports Creating CSV Files SAS MACRO LANGUAGE INTRODUCTION TO THE MACRO FACILITY PURPOSE OF THE MACRO FACILITY Generate SAS code using Macros (%Macro & %Mend) Tips on Writing Macro-Based Programs Replacing Text Strings using Macros Variables (%Let) MACRO PROGRAMS MACRO PROGRAMS Defining a Macro (%Macro & %Mend ) Macro Compilation Monitoring Macro Compilation (MCOMPILENOTE OPTION) Calling a Macro (%Macro-Name) Macro Execution Monitoring Macro Execution (MLOGIC OPTION) Viewing the generate SAS Code in the Log from Macro Program (MPRINT OPTION) Macro Storage Macro Parameters Macro Parameters Lists Macros with Positional Parameters Macros with Keyword Parameters

Arithmetic and logical Operations Conditional Processing % IF expression % THEN text ; %ELSE %TEXT; % IF expression % THEN %DO; %END; %ELSE; %DO; Stored Compiled Macros %INCLUDE Statement MACRO PROCESSING Tokens Macro Triggers How the Macroprocessor works MACRO VARIABLES CONCEPTS Referencing a Macro Variable Displaying Macro Variable Value in the SAS log (SYMBOLGEN OPTION) Automatic Macro Variables System-Defined Macro Variables (_AUTOMATIC_) User-Defined Macro Variable (_USER_) Datatype %LET Statement Global Macro variables Local Macro Variables Deleting User-Defined Macro Variable (%SYMDEL) Macro Functions Character Strings Other SAS Functions %SYSFUNC %STR Combining Macro Variable References with Text Macro Variable Name Delimiter Quoting

Creating Macro Variables in the Data Step (CALL SYMPUT ROUTINE) Obtaining Variable value during Macro Execution (SYMGET FUNCTION)Creating Macro Variables during PROC SQL Execution (INTO Clause) creating a delimited list of Values. SAS SQL PROCESSING INTRODUCTION TO THE SQL PROCEDURE SET OPERATORS Terminology Features of PROC SQL PROC SQL Syntax (SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY) VALIDATE Keyword NOEXEC Option Added PROC SQL Statements (ALTER, CREATE, DELETE, DESCRIBE, DROP) FEEDBACK OPTION PROC SQL and DATA Step Comparisons Queries Retrieving Data from a table Identify All Rows in a Table Remove Duplicate Rows Sub setting using WHERE clause Sub setting with Calculated Values Sub setting with Calculated Values Enhancing Query Output (LABEL, FORMAT) Grouping Data (Group By) Analyzing Groups of data (COUNT) Updating Data values (Update Statement) Using Table Alias Creating Views Creating Dropping Indexes Sub Queries Non-Correlated Sub Query Correlated Sub Query Combining Tables Joins Inner Joins

Outer Joins Left Join Right Join