Contents. About This Book...1

Similar documents
INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS

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

Base and Advance SAS

SAS Online Training: Course contents: Agenda:

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

SAS CURRICULUM. BASE SAS Introduction

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

Macro Basics. Introduction. Defining and Using Macro Variables. Defining and Using Macros. Macro Parameters. Part 1. Chapter 1. Chapter 2.

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

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

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

Understanding the Concepts and Features of Macro Programming 1

Big Data Executive Program

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

Contents of SAS Programming Techniques

USING SAS SOFTWARE TO COMPARE STRINGS OF VOLSERS IN A JCL JOB AND A TSO CLIST

Merge Processing and Alternate Table Lookup Techniques Prepared by

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

SAS (Statistical Analysis Software/System)

Chapter 2: Getting Data Into SAS

Introduction to DATA Step Programming SAS Basics II. Susan J. Slaughter, Avocet Solutions

KLiC C Programming. (KLiC Certificate in C Programming)

SAS (Statistical Analysis Software/System)

Overview 14 Table Definitions and Style Definitions 16 Output Objects and Output Destinations 18 ODS References and Resources 20

SAS (Statistical Analysis Software/System)

Creating and Executing Stored Compiled DATA Step Programs

AVL 4 4 PDV DECLARE 7 _NEW_

SAS/FSP 9.2. Procedures Guide

Choosing the Right Procedure

Computer Programming C++ (wg) CCOs

Creation of SAS Dataset

Introduction to DATA Step Programming: SAS Basics II. Susan J. Slaughter, Avocet Solutions

Introduction to DATA Step Programming SAS Basics II. Susan J. Slaughter, Avocet Solutions

KLiC C++ Programming. (KLiC Certificate in C++ Programming)

Create a SAS Program to create the following files from the PREC2 sas data set created in LAB2.

Absolute C++ Walter Savitch

Contents I Introduction 1 Introduction to PL/SQL iii

Professional outputs with ODS LATEX

SAS CLINICAL SYLLABUS. DURATION: - 60 Hours

SAS Web Report Studio 3.1

ABSTRACT INTRODUCTION RELEASE 6.06 ENVIRONMENT. I/O Engine Supervisor and the SAS Data Model. DATA Step Processor

COP 1220 Introduction to Programming in C++ Course Justification

Contents. Generating data with DO loops Processing variables with arrays

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

Fact Sheet No.1 MERLIN

ABSTRACT MORE THAN SYNTAX ORGANIZE YOUR WORK THE SAS ENTERPRISE GUIDE PROJECT. Paper 50-30

Excel 2016 Essentials Syllabus

Choosing the Right Procedure

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

RWI not REI a Robust report writing tool for your toughest mountaineering challenges.

XII CS(EM) Minimum Question List N.KANNAN M.Sc., B.Ed COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER)

Chapter 28 Saving and Printing Tables. Chapter Table of Contents SAVING AND PRINTING TABLES AS OUTPUT OBJECTS OUTPUT OBJECTS...

What you learned so far. Loops & Arrays efficiency for statements while statements. Assignment Plan. Required Reading. Objective 2/3/2018

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

Course Outline and Objectives: Database Programming with SQL

Computer Programming AAS Spring 2019 Outcomes

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL. TWO MARKS

Course Syllabus. Course Title. Who should attend? Course Description. PHP ( Level 1 (

Introduction to SAS Procedures SAS Basics III. Susan J. Slaughter, Avocet Solutions

1 Introducing SAS and SAS/ASSIST Software

Certification Exam Preparation Seminar: Oracle Database SQL

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

Excel 2013 Essentials Syllabus

Beginning Tutorials. PROC FSEDIT NEW=newfilename LIKE=oldfilename; Fig. 4 - Specifying a WHERE Clause in FSEDIT. Data Editing

How SAS Thinks Neil Howard, Basking Ridge, NJ

CompuScholar, Inc. Alignment to Nevada "Computer Science" Course Standards

C-LANGUAGE CURRICULAM

Introduction to SAS Procedures SAS Basics III. Susan J. Slaughter, Avocet Solutions

Using Data Set Options in PROC SQL Kenneth W. Borowiak Howard M. Proskin & Associates, Inc., Rochester, NY

Certified LabVIEW Associate Developer Sample Exam 1. Test Booklet

SAS 9.3 LIBNAME Engine for DataFlux Federation Server

1 Chapter Plan...1 Exercise - Simple Program...2

Pace University. Fundamental Concepts of CS121 1

B. Including the Event Structure within a loop. C. Configuring a Timeout case within the Event Structure

Euclid s algorithm, 133

ARIZONA CTE CAREER PREPARATION STANDARDS & MEASUREMENT CRITERIA SOFTWARE DEVELOPMENT,

1) What is information system? Describe the basic concepts of information systems.

INTRODUCTION to SAS STATISTICAL PACKAGE LAB 3

work.test temp.test sasuser.test test

The tracing tool in SQL-Hero tries to deal with the following weaknesses found in the out-of-the-box SQL Profiler tool:

Web Development & SEO (Summer Training Program) 4 Weeks/30 Days

Enhydra. Jolt Syntax Reference Guide. version 2.0. Developed by Lutris Technologies, Inc.

Chapter 6: Modifying and Combining Data Sets

IBM emessage Version 9 Release 1 February 13, User's Guide

Line Spacing and Double Spacing...24 Finding and Replacing Text...24 Inserting or Linking Graphics...25 Wrapping Text Around Graphics...

ABOUT WEB TECHNOLOGY COURSE SCOPE:

Interactive Systems. NESUG '96 Proceedings ROUND PEGS INTO SQUARE HOLES: DATA WAREHOUSES FOR THE HARDWARE IMPAIRED

From Manual to Automatic with Overdrive - Using SAS to Automate Report Generation Faron Kincheloe, Baylor University, Waco, TX

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

Accelerated Library Framework for Hybrid-x86

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

Management Tools. Management Tools. About the Management GUI. About the CLI. This chapter contains the following sections:

Statements. Previous Page Next Page. SAS 9.2 Language Reference: Dictionary, Third Edition. Definition of Statements. DATA Step Statements

Using SAS Files CHAPTER 3

SAS Macro. SAS Training Courses. Amadeus Software Ltd

SAS Studio 4.4: User s Guide

SCIENCE ENTRANCE ACADEMY III PREPARATORY EXAMINATION SCHEME OF VALUATION

Ten Great Reasons to Learn SAS Software's SQL Procedure

Creating and Managing Snippets

Microsoft Excel 2010 Level 1

Transcription:

Contents About This Book...1 Chapter 1: Basic Concepts...5 Overview...6 SAS Programs...7 SAS Libraries...13 Referencing SAS Files...15 SAS Data Sets...18 Variable Attributes...21 Summary...26 Practice...28 Quiz...29 Chapter 2: Referencing Files and Setting Options...33 Overview...34 Referencing Files...34 Viewing the Contents of SAS Libraries...39 Setting SAS System Options...43 Viewing System Options...53 Additional System Options...54 Summary...55 Practice...56 Quiz...57 Chapter 3: Editing and Debugging SAS Programs...61 Overview...62 SAS Program Layout...63 Interpreting Error Messages...64 Correcting Errors...65 Resolving Common Problems...67 Additional Features...73 Summary...74 Practice...74 Quiz...75 Chapter 4: Creating List Reports...77 Overview...78 Types of Reports...79 Creating a Basic Report...82 Identifying Observations...86 Selecting Observations...88 Sorting Data...90 Generating Column Totals...92 Double-Spacing Listing Output...98 Specifying Titles and Footnotes...99 Assigning Descriptive Labels...103 Formatting Data Values...104

ii SAS Certification Prep Guide Using Permanently Assigned Labels and Formats...107 Additional Features...108 Summary...109 Practice...111 Quiz...112 Chapter 5: Creating SAS Data Sets from Raw Data...117 Overview...118 Raw Data Files...119 Steps to Create a SAS Data Set...120 Referencing a SAS Library...121 Referencing a Raw Data File...121 Writing a DATA Step Program...124 Submitting the DATA Step Program...130 Creating and Modifying Variables...135 Subsetting Data...139 Reading Instream Data...140 Steps to Create a Raw Data File...142 Additional Features...145 Summary...145 Practice...147 Quiz...148 Chapter 6: Understanding DATA Step Processing...155 Overview...156 Writing Basic DATA Steps...157 How SAS Processes Programs...158 Compilation Phase...159 Execution Phase...164 Debugging a DATA Step...175 Testing Your Programs...180 Summary...184 Practice...185 Quiz...186 Chapter 7: Creating and Applying User-Defined Formats...189 Overview...190 Introduction to PROC FORMAT...190 Invoking PROC FORMAT...191 Defining a Unique Format...193 Associating User-Defined Formats with Variables...196 Summary...200 Practice...200 Quiz...201 Chapter 8: Creating Enhanced List and Summary Reports...205 Overview...206 Creating a Default List Report...207 Selecting Variables...210 Selecting Observations...212 Defining Variables...213 Defining Column Attributes...214 Defining Column Headings...219

Contents iii Specifying Column Justification...221 Enhancing the Heading's Appearance...222 Defining Variable Usage...223 Summary...233 Practice...234 Quiz...235 Chapter 9: Producing Descriptive Statistics...241 Overview...242 Computing Statistics for Numeric Variables...243 Producing Frequency Tables...252 Summary...261 Practice...264 Quiz...265 Chapter 10: Producing HTML Output...271 Overview...272 The Output Delivery System...273 Opening and Closing ODS Destinations...275 Creating Simple HTML...278 Creating HTML Output with a Table of Contents...281 Using Options to Specify Links and Paths...284 Changing the Appearance of HTML Output...288 Additional Features...289 Summary...290 Practice...291 Quiz...292 Chapter 11: Creating and Managing Variables...295 Overview...296 Creating and Modifying Variables...297 Assigning Values Conditionally...300 Specifying Lengths for Variables...304 Subsetting Data...307 Assigning Permanent Labels and Formats...311 Assigning Values Conditionally Using SELECT Groups...312 Grouping Statements Using DO Groups...316 Summary...319 Practice...320 Quiz...321 Chaper 12: Reading SAS Data Sets...327 Overview...328 Reading a Single Data Set...329 Manipulating Data...330 Using BY-Group Processing...331 Reading Observations Using Direct Access...336 Detecting the End of a Data Set...339 Understanding How Data Sets Are Read...341 Additional Features...349 Summary...350 Practice...351 Quiz...352

iv SAS Certification Prep Guide Chapter 13: Combining SAS Data Sets...355 Overview...356 One-to-One Reading...358 Concatenating...361 Interleaving...363 Simple Match-Merging...366 Match-Merging Processing...370 Renaming Variables...376 Excluding Unmatched Observations...378 Selecting Variables...381 Additional Features...382 Summary...383 Practice...385 Quiz...386 Chapter 14: Transforming Data with SAS Functions...395 Overview...396 Understanding SAS Functions...397 General Form of SAS Functions...399 Converting Data with Functions...400 Manipulating SAS Date Values with Functions...408 Modifying Character Values with Functions...421 Modifying Numeric Values with Functions...437 Summary...439 Practice...442 Quiz...443 Chapter 15: Generating Data with DO Loops...447 Overview...448 Constructing DO Loops...448 Nesting DO Loops...453 Iteratively Processing Data That Is Read from a Data Set...455 Conditionally Executing DO Loops...456 Using Conditional Clauses with the Iterative DO Statement...458 Creating Samples...459 Summary...460 Practice...461 Quiz...462 Chapter 16: Processing Variables with Arrays...465 Overview...466 Creating One-Dimensional Arrays...467 Expanding Your Use of Arrays...476 Additional Features...489 Summary...491 Practice...493 Quiz...494

Contents v Chapter 17: Reading Raw Data in Fixed Fields...497 Overview...498 Review of Column Input...499 Identifying Standard and Nonstandard Numeric Data...501 Choosing an Input Style...502 Using Formatted Input...502 Using Informats...506 Record Formats...512 Summary...515 Practice...516 Quiz...517 Chapter 18: Reading Free-Format Data...521 Overview...522 Reading Free-Format Data...523 Using List Input...523 Reading Missing Values...530 Specifying the Length of Character Values...534 Modifying List Input...537 Creating Free-Format Data...542 Mixing Input Styles...547 Summary...550 Practice...552 Quiz...553 Chapter 19: Reading Date and Time Values...559 Overview...560 How SAS Stores Date Values...561 How SAS Stores Time Values...561 More about SAS Date and Time Values...562 Reading Date and Time Informats...562 Using Dates and Times in Calculations...568 Using Date and Time Formats...572 Summary...576 Practice...577 Quiz...578 Chapter 20: Creating a Single Observation from Multiple Records...581 Overview...582 Use Line Pointer Controls...583 Reading Multiple Records Sequentially...583 Reading Multiple Records Non-Sequentially...592 Combining Line Pointer Controls...596 Summary...598 Practice...598 Quiz...599

vi SAS Certification Prep Guide Chapter 21: Creating Multiple Observations from a Single Record...605 Overview...606 Reading Repeating Blocks of Data...607 Reading the Same Number of Repeating Fields...616 Reading a Varying Number of Repeating Fields...623 Summary...630 Practice...631 Quiz...632 Chapter 22: Reading Hierarchical Files...637 Overview...638 Creating One Observation Per Detail Record...639 Creating One Observation Per Header Record...647 Summary...659 Practice...660 Quiz...661 Quiz Answer Keys...667 Chapter 1: Basic Concepts...669 Chapter 2: Referencing Files and Setting Options...673 Chapter 3: Editing and Debugging SAS Programs...679 Chapter 4: Creating List Reports...683 Chapter 5: Creating SAS Data Sets from Raw Data...691 Chapter 6: Understanding DATA Step Processing...699 Chapter 7: Creating and Applying User-Defined Formats...703 Chapter 8: Creating Enhanced List and Summary Reports...707 Chapter 9: Producing Descriptive Statistics...715 Chapter 10: Producing HTML Output...721 Chapter 11: Creating and Managing Variables...725 Chapter 12: Reading SAS Data Sets...731 Chapter 13: Combining SAS Data Sets...735 Chapter 14: Transforming Data with SAS Functions...745 Chapter 15: Generating Data with DO Loops...751 Chapter 16: Processing Variables with Arrays...755 Chapter 17: Reading Raw Data in Fixed Fields...759 Chapter 18: Reading Free-Format Data...765 Chapter 19: Reading Date and Time Values...773 Chapter 20: Creating a Single Observation from Multiple Records...777 Chapter 21: Creating Multiple Observations from a Single Record...783 Chapter 22: Reading Hierarchical Files...791 Glossary...797 Index...811