SAS Graphics & Code. stat 480 Heike Hofmann

Size: px
Start display at page:

Download "SAS Graphics & Code. stat 480 Heike Hofmann"

Transcription

1 SAS Graphics & Code stat 480 Heike Hofmann

2 Outline Data Exploration in SAS Data Management Subsetting Graphics Code in SAS

3 Your turn Download FBI crime data fbi-crime csv from the website, open in SAS Enterprise Guide and view. Did the data import work? How are missing values dealt with?

4 Data Manipulations Query Builder in SAS allows data manipulation: Computed Columns to - clean up variables (missing values, data entry errors) - program functional dependencies Summary Statistics

5 Data Manipulation Pick one of the crime types, calculate rate of crime by 100,000. Change the state name to lower case letters (and call the variable region ) Produce output data set that has all of the previous variables and the calculated variables

6 Subsets Filter & Sort allows to subset the data on one or more variables

7 Subset Data Get a subset of the crime data for the year Import the states data set find a choropleth map for crime rate by state

8 Graphics Graphic wizards are available from the Data Viewer

9 Graphics Create one chart showing crime rates (for one type of crime) for all states over the time period Identify individual states, subset on them and plot individual time lines for them.

10 Summaries/Models Create trendlines for crime rates in each state over time. Show a graphical summary of the slopes and intercepts.

11 Exporting SAS Code SAS Enterprise Guide lets us export all code for a project... looking at the project code we just created:

12

13 Reading SAS Code Automatically generated code is not easy to read - we need to focus on keywords, so that we can - identify individual steps - modify the code, if need be

14 /* Code exported from SAS Enterprise Guide DATE: Tuesday, April 17, 2012 TIME: 8:45:37 AM PROJECT: Project PROJECT PATH: */ /* Conditionally delete set of tables or views, if they exists */ /* If the member does not exist, then no action is performed */ %macro _eg_conditional_dropds /parmbuff; %let num=1; / * f l a g s t o d e t e r m i n e w h e t h e r a P R O C S Q L s t e p i s n e e d e d * / / * o r e v e n s t a r t e d y e t * / % l e t s t e p n e e d e d = 0 ; % l e t s t e p s t a r t e d = 0 ; %let dsname=%scan(&syspbuff,&num,',()'); % d o % w h i l e ( & d s n a m e n e ) ; % i f % s y s f u n c ( e x i s t ( & d s n a m e ) ) % t h e n % d o ; % l e t s t e p n e e d e d = 1 ; % i f ( & s t e p s t a r t e d e q 0 ) % t h e n % d o ; p r o c s q l ; % l e t s t e p s t a r t e d = 1 ; % e n d ; d r o p t a b l e & d s n a m e ; % e n d ; % i f % s y s f u n c ( e x i s t ( & d s n a m e, v i e w ) ) % t h e n % d o ; % l e t s t e p n e e d e d = 1 ; % i f ( & s t e p s t a r t e d e q 0 ) % t h e n % d o ; p r o c s q l ; % l e t s t e p s t a r t e d = 1 ; % e n d ; d r o p v i e w & d s n a m e ; % e n d ; % l e t n u m = % e v a l ( & n u m + 1 ) ; skip

15 Reading first data set /* START OF NODE: Import Data (emissions.csv) */ %LET _CLIENTTASKLABEL='Import Data (emissions.csv)'; %LET _CLIENTPROJECTPATH=''; %LET _CLIENTPROJECTNAME=''; your path will look different GOPTIONS ACCESSIBLE; /* Code generated by a SAS task Generated on Tuesday, April 17, 2012 at 8:33:45 AM By task: Import Data Source file: U:\Stat 480\data\emissions.csv Server: Local File System Output data: WORK.emissions Server: Local */

16 DATA WORK.emissions; LENGTH region $ 20 CO2 8 Nox 8 SO2 8 Population90 8 ; FORMAT region $CHAR20. CO2 BEST9. Nox BEST6. SO2 BEST7. Population90 BEST8. ; INFORMAT region $CHAR20. CO2 BEST9. Nox BEST6. SO2 BEST7. Population90 BEST8. ; INFILE 'C:\Documents and Settings\hofmann\Local Settings\Temp \b1\seg9304\emissions-6ae57e69544d4d45a85b6a05ddd87774.txt' LRECL=46 ENCODING="WLATIN1" TERMSTR=CRLF DLM='7F'x MISSOVER DSD ; INPUT region : $CHAR20. CO2 :?? BEST9. Nox :?? BEST6. SO2 :?? BEST7. Population90 :?? BEST8. ; RUN; SAS Datastep

17 DATA WORK.emissions; LENGTH region $ 20 CO2 8 Nox 8 SO2 8 Population90 8 ; FORMAT region $CHAR20. CO2 BEST9. Nox BEST6. SO2 BEST7. Population90 BEST8. ; INFORMAT region $CHAR20. CO2 BEST9. Nox BEST6. SO2 BEST7. Population90 BEST8. ; INFILE 'C:\Documents and Settings\hofmann\Local Settings\Temp \b1\seg9304\emissions-6ae57e69544d4d45a85b6a05ddd87774.txt' LRECL=46 ENCODING="WLATIN1" TERMSTR=CRLF DLM='7F'x MISSOVER DSD ; INPUT region : $CHAR20. CO2 :?? BEST9. Nox :?? BEST6. SO2 :?? BEST7. Population90 :?? BEST8. ; RUN; SAS Datastep Temporary File - not going to work outside of EG

18 URL input filename emis url ' stat480/emissions.csv'; data emissions; infile emis delimiter=',' MISSOVER; INPUT region$ CO2 Nox SO2 Population90; run; proc import datafile=emis out=emissions2 dbms=csv; delimiter=','; getnames=yes; run;

19 %_eg_conditional_dropds(work.mapchartmapprep); PROC SQL; C R E A T E V I E W W O R K. M A P C H A R T M A P P R E P A S S E L E C T * F R O M W O R K. S T A T E S ; QUIT; %_eg_conditional_dropds(work.mapchartresponseprep); PROC SQL; C R E A T E V I E W W O R K. M A P C H A R T R E S P O N S E P R E P A S S E L E C T * F R O M W O R K. E M I S S I O N S ; QUIT; doesn t do anything but copying from one source to the other Note: SAS is using SQL commands!

20 /* START OF NODE: Import Data (states.csv) */ %LET _CLIENTTASKLABEL='Import Data (states.csv)'; %LET _CLIENTPROJECTPATH=''; %LET _CLIENTPROJECTNAME=''; GOPTIONS ACCESSIBLE; /* Code generated by a SAS task Generated on Tuesday, April 17, 2012 at 8:37:38 AM By task: Import Data Source file: U:\Stat 480\data\states.csv Server: Local File System Output data: WORK.states Server: Local */ DATA WORK.states; LENGTH x 8 y 8 id 8 State $ 20 abbr $ 2 ; FORMAT x BEST12. y BEST12. id BEST2. State $CHAR20. abbr $CHAR2. ; reading 2nd data set

21 Reading 2nd data set filename map url ' proc import datafile=map out=work.states dbms=csv; delimiter=','; getnames=yes; run;

22 Choropleth Map PROC GMAP GOUT=MAPCHART DATA=WORK.MAPCHARTRESPONSEPREP MAP=WORK.MAPCHARTMAPPREP ALL; ID region; CHORO CO2 / WOUTLINE=1 NOLEGEND ; RUN;

23 Choropleth Map PROC GMAP GOUT=MAPCHART DATA=WORK.emissions MAP=WORK.states ALL; ID region; CHORO CO2 / WOUTLINE=1 NOLEGEND ; RUN;

24 Your turn Start SAS 9.2 (not the Enterprise Guide) Run the code for - reading the emissions data - reading the states data - drawing a choropleth map Now change the code: Change the colour in the choropleth map to Population90 Draw a legend

25 Your turn Start Enterprise Guide Do a linear model of Nox in Population90 Export the code, read it and change it such that the response is now CO2 Run the code in SAS 9.2

Using SAS Enterprise Guide to Coax Your Excel Data In To SAS

Using SAS Enterprise Guide to Coax Your Excel Data In To SAS Paper IT-01 Using SAS Enterprise Guide to Coax Your Excel Data In To SAS Mira Shapiro, Analytic Designers LLC, Bethesda, MD ABSTRACT Kirk Paul Lafler, Software Intelligence Corporation, Spring Valley,

More information

DSCI 325: Handout 2 Getting Data into SAS Spring 2017

DSCI 325: Handout 2 Getting Data into SAS Spring 2017 DSCI 325: Handout 2 Getting Data into SAS Spring 2017 Data sets come in many different formats. In some situations, data sets are stored on paper (e.g., surveys) and other times data are stored in huge

More information

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS TO SAS NEED FOR SAS WHO USES SAS WHAT IS SAS? OVERVIEW OF BASE SAS SOFTWARE DATA MANAGEMENT FACILITY STRUCTURE OF SAS DATASET SAS PROGRAM PROGRAMMING LANGUAGE ELEMENTS OF THE SAS LANGUAGE RULES FOR SAS

More information

Base and Advance SAS

Base and Advance SAS 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

More information

Stat 302 Statistical Software and Its Applications SAS: Data I/O

Stat 302 Statistical Software and Its Applications SAS: Data I/O Stat 302 Statistical Software and Its Applications SAS: Data I/O Yen-Chi Chen Department of Statistics, University of Washington Autumn 2016 1 / 33 Getting Data Files Get the following data sets from the

More information

SAS ENTERPRISE GUIDE WHAT LIES BEHIND ALL THESE WINDOWS FOR PROGRAMMERS. Copyr i g ht 2013, SAS Ins titut e Inc. All rights res er ve d.

SAS ENTERPRISE GUIDE WHAT LIES BEHIND ALL THESE WINDOWS FOR PROGRAMMERS. Copyr i g ht 2013, SAS Ins titut e Inc. All rights res er ve d. SAS ENTERPRISE GUIDE WHAT LIES BEHIND ALL THESE WINDOWS FOR PROGRAMMERS ENTERPRISE GUIDE ORGANIZES YOUR WORK Me? Unorganized? The project is a container of everything you need to accomplish a task: Data

More information

Importing CSV Data to All Character Variables Arthur L. Carpenter California Occidental Consultants, Anchorage, AK

Importing CSV Data to All Character Variables Arthur L. Carpenter California Occidental Consultants, Anchorage, AK PharmaSUG 2017 QT02 Importing CSV Data to All Character Variables Arthur L. Carpenter California Occidental Consultants, Anchorage, AK ABSTRACT Have you ever needed to import data from a CSV file and found

More information

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

A Macro that can Search and Replace String in your SAS Programs ABSTRACT MWSUG 2016 - Paper BB27 A Macro that can Search and Replace String in your SAS Programs Ting Sa, Cincinnati Children s Hospital Medical Center, Cincinnati, OH In this paper, a SAS macro is introduced

More information

Moving Data and Results Between SAS and Excel. Harry Droogendyk Stratia Consulting Inc.

Moving Data and Results Between SAS and Excel. Harry Droogendyk Stratia Consulting Inc. Moving Data and Results Between SAS and Excel Harry Droogendyk Stratia Consulting Inc. Introduction SAS can read ( and write ) anything Introduction In the end users want EVERYTHING in. Introduction SAS

More information

Technical Paper. Using SAS Studio to Open SAS Enterprise Guide Project Files. (Experimental in SAS Studio 3.6)

Technical Paper. Using SAS Studio to Open SAS Enterprise Guide Project Files. (Experimental in SAS Studio 3.6) Technical Paper Using SAS Studio to Open SAS Enterprise Guide Project Files (Experimental in SAS Studio 3.6) Release Information Content Version: 1.0 March 2017 Author Jennifer Jeffreys-Chen Trademarks

More information

SAS CURRICULUM. BASE SAS Introduction

SAS CURRICULUM. BASE SAS Introduction SAS CURRICULUM BASE SAS Introduction Data Warehousing Concepts What is a Data Warehouse? What is a Data Mart? What is the difference between Relational Databases and the Data in Data Warehouse (OLTP versus

More information

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

BUSINESS ANALYTICS. 96 HOURS Practical Learning. DexLab Certified. Training Module. Gurgaon (Head Office) SAS (Base & Advanced) Analytics & Predictive Modeling Tableau BI 96 HOURS Practical Learning WEEKDAY & WEEKEND BATCHES CLASSROOM & LIVE ONLINE DexLab Certified BUSINESS ANALYTICS Training Module Gurgaon

More information

Chapter 2: Getting Data Into SAS

Chapter 2: Getting Data Into SAS Chapter 2: Getting Data Into SAS Data stored in many different forms/formats. Four categories of ways to read in data. 1. Entering data directly through keyboard 2. Creating SAS data sets from raw data

More information

TASS Interfaces Open Question

TASS Interfaces Open Question TASS Interfaces Open Question Using any SAS Interface product, and the dataset provided, determine the time and value of the last recorded sample for each Sample ID. The solutions provided will be presented

More information

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

Objectives Reading SAS Data Sets and Creating Variables Reading a SAS Data Set Reading a SAS Data Set onboard ia.dfwlax FirstClass Economy Reading SAS Data Sets and Creating Variables Objectives Create a SAS data set using another SAS data set as input. Create SAS variables. Use operators and SAS functions to manipulate data values. Control

More information

Outbreak Maps: Visual Discovery in Your Data. Jeff Phillips, Data Visualization R&D

Outbreak Maps: Visual Discovery in Your Data. Jeff Phillips, Data Visualization R&D Outbreak Maps: Visual Discovery in Your Data Jeff Phillips, Data Visualization R&D SAS: The Power to Know You can t do that with GMAP If you torture data sufficiently, it will confess to almost anything.

More information

SAS Online Training: Course contents: Agenda:

SAS Online Training: Course contents: Agenda: SAS Online Training: Course contents: Agenda: (1) Base SAS (6) Clinical SAS Online Training with Real time Projects (2) Advance SAS (7) Financial SAS Training Real time Projects (3) SQL (8) CV preparation

More information

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

AURA ACADEMY SAS TRAINING. Opposite Hanuman Temple, Srinivasa Nagar East, Ameerpet,Hyderabad Page 1 SAS TRAINING SAS/BASE BASIC THEORY & RULES ETC SAS WINDOWING ENVIRONMENT CREATION OF LIBRARIES SAS PROGRAMMING (BRIEFLY) - DATASTEP - PROC STEP WAYS TO READ DATA INTO SAS BACK END PROCESS OF DATASTEP INSTALLATION

More information

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

Contents. Tutorials Section 1. About SAS Enterprise Guide ix About This Book xi Acknowledgments xiii Contents About SAS Enterprise Guide ix About This Book xi Acknowledgments xiii Tutorials Section 1 Tutorial A Getting Started with SAS Enterprise Guide 3 Starting SAS Enterprise Guide 3 SAS Enterprise

More information

Dictionary.coumns is your friend while appending or moving data

Dictionary.coumns is your friend while appending or moving data ABSTRACT SESUG Paper CC-41-2017 Dictionary.coumns is your friend while appending or moving data Kiran Venna, Dataspace Inc. Dictionary.columns is a dictionary table, which gives metadata information of

More information

Fly over, drill down, and explore

Fly over, drill down, and explore ABSTRACT Paper 79-2013 Fly over, drill down, and explore Suzanne Brown, HealthInsight New Mexico, Albuquerque, NM Data often have a spatial dimension, whether it is a five-year financial plan and annual

More information

Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics

Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics Fritz Scholz Department of Statistics, University of Washington Winter Quarter 2015 February 19, 2015 2 Getting

More information

Reading data in SAS and Descriptive Statistics

Reading data in SAS and Descriptive Statistics P8130 Recitation 1: Reading data in SAS and Descriptive Statistics Zilan Chai Sep. 18 th /20 th 2017 Outline Intro to SAS (windows, basic rules) Getting Data into SAS Descriptive Statistics SAS Windows

More information

SAS Visual Analytics Environment Stood Up? Check! Data Automatically Loaded and Refreshed? Not Quite

SAS Visual Analytics Environment Stood Up? Check! Data Automatically Loaded and Refreshed? Not Quite Paper SAS1952-2015 SAS Visual Analytics Environment Stood Up? Check! Data Automatically Loaded and Refreshed? Not Quite Jason Shoffner, SAS Institute Inc., Cary, NC ABSTRACT Once you have a SAS Visual

More information

TIPS FROM THE TRENCHES

TIPS FROM THE TRENCHES TIPS FROM THE TRENCHES Christopher Bost MDRC SAS Users Group October 1, 2008 Recent user questions 2 How can I print long character values? How can I EXPORT formatted values to Excel? How can I check for

More information

Ivy s Business Analytics Foundation Certification Details (Module I + II+ III + IV + V)

Ivy s Business Analytics Foundation Certification Details (Module I + II+ III + IV + V) Ivy s Business Analytics Foundation Certification Details (Module I + II+ III + IV + V) Based on Industry Cases, Live Exercises, & Industry Executed Projects Module (I) Analytics Essentials 81 hrs 1. Statistics

More information

Contents of SAS Programming Techniques

Contents of SAS Programming Techniques Contents of SAS Programming Techniques Chapter 1 About SAS 1.1 Introduction 1.1.1 SAS modules 1.1.2 SAS module classification 1.1.3 SAS features 1.1.4 Three levels of SAS techniques 1.1.5 Chapter goal

More information

Use That SAP to Write Your Code Sandra Minjoe, Genentech, Inc., South San Francisco, CA

Use That SAP to Write Your Code Sandra Minjoe, Genentech, Inc., South San Francisco, CA Paper DM09 Use That SAP to Write Your Code Sandra Minjoe, Genentech, Inc., South San Francisco, CA ABSTRACT In this electronic age we live in, we usually receive the detailed specifications from our biostatistician

More information

SUGI 29 Data Warehousing, Management and Quality

SUGI 29 Data Warehousing, Management and Quality Building a Purchasing Data Warehouse for SRM from Disparate Procurement Systems Zeph Stemle, Qualex Consulting Services, Inc., Union, KY ABSTRACT SAS Supplier Relationship Management (SRM) solution offers

More information

Course Outline. Writing Reports with Report Builder and SSRS Level 1 Course 55123: 2 days Instructor Led. About this course

Course Outline. Writing Reports with Report Builder and SSRS Level 1 Course 55123: 2 days Instructor Led. About this course About this course Writing Reports with Report Builder and SSRS Level 1 Course 55123: 2 days Instructor Led In this 2-day course, students will continue their learning on the foundations of report writing

More information

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

Techdata Solution. SAS Analytics (Clinical/Finance/Banking) +91-9702066624 Techdata Solution Training - Staffing - Consulting Mumbai & Pune SAS Analytics (Clinical/Finance/Banking) What is SAS SAS (pronounced "sass", originally Statistical Analysis System) is an

More information

FlowJo Software Lecture Outline:

FlowJo Software Lecture Outline: FlowJo Software Lecture Outline: Workspace Basics: 3 major components 1) The Ribbons (toolbar) The availability of buttons here can be customized. *One of the best assets of FlowJo is the help feature*

More information

SAS/GRAPH Introduction. Winfried Jakob, SAS Administrator Canadian Institute for Health Information

SAS/GRAPH Introduction. Winfried Jakob, SAS Administrator Canadian Institute for Health Information SAS/GRAPH Introduction Winfried Jakob, SAS Administrator Canadian Institute for Health Information 1 Agenda Overview Components of SAS/GRAPH Software Device-Based vs. Template-Based Graphics Graph Types

More information

Creating Population Tree Charts (Using SAS/GRAPH Software) Robert E. Allison, Jr. and Dr. Moon W. Suh College of Textiles, N. C.

Creating Population Tree Charts (Using SAS/GRAPH Software) Robert E. Allison, Jr. and Dr. Moon W. Suh College of Textiles, N. C. SESUG 1994 Creating Population Tree Charts (Using SAS/GRAPH Software) Robert E. Allison, Jr. and Dr. Moon W. Suh College of Textiles, N. C. State University ABSTRACT This paper describes a SAS program

More information

SAS Training Spring 2006

SAS Training Spring 2006 SAS Training Spring 2006 Coxe/Maner/Aiken Introduction to SAS: This is what SAS looks like when you first open it: There is a Log window on top; this will let you know what SAS is doing and if SAS encountered

More information

Innovative Performance Improvements Through Automated Flowcharts In SAS

Innovative Performance Improvements Through Automated Flowcharts In SAS ABSTRACT Paper 11580-2016 Innovative Performance Improvements Through Automated Flowcharts In SAS Steven First, Systems Seminar Consultants, Inc. One of the tedious but necessary things that SAS programmers

More information

Creating Maps in SAS/GRAPH

Creating Maps in SAS/GRAPH Creating Maps in SAS/GRAPH By Jeffery D. Gilbert, Trilogy Consulting Corporation, Kalamazoo, MI Abstract This paper will give an introduction to creating graphs using the PROC GMAP procedure in SAS/GRAPH.

More information

Biostatistics & SAS programming. Kevin Zhang

Biostatistics & SAS programming. Kevin Zhang Biostatistics & SAS programming Kevin Zhang January 26, 2017 Biostat 1 Instructor Instructor: Dong Zhang (Kevin) Office: Ben Franklin Hall 227 Phone: 570-389-4556 Email: dzhang(at)bloomu.edu Class web:

More information

COPYRIGHT & TRADEMARKS... I

COPYRIGHT & TRADEMARKS... I Microsoft Excel XP Level 3 ABOUT VICON... I COPYRIGHT & TRADEMARKS... I DISCLAIMER... I LESSON 1 - WORKING WITH DATABASES...1 Using a Database...2 Creating a Database...2 Modifying a Database...4 Sorting

More information

STAT 7000: Experimental Statistics I

STAT 7000: Experimental Statistics I STAT 7000: Experimental Statistics I 2. A Short SAS Tutorial Peng Zeng Department of Mathematics and Statistics Auburn University Fall 2009 Peng Zeng (Auburn University) STAT 7000 Lecture Notes Fall 2009

More information

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

APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software. Each of these steps can be executed independently. 255 APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software Introduction 255 Generating a QMF Export Procedure 255 Exporting Queries from QMF 257 Importing QMF Queries into Query and Reporting 257 Alternate

More information

Easing into Data Exploration, Reporting, and Analytics Using SAS Enterprise Guide

Easing into Data Exploration, Reporting, and Analytics Using SAS Enterprise Guide Paper 809-2017 Easing into Data Exploration, Reporting, and Analytics Using SAS Enterprise Guide ABSTRACT Marje Fecht, Prowerk Consulting Whether you have been programming in SAS for years, are new to

More information

Big Data Executive Program

Big Data Executive Program Big Data Executive Program Big Data Executive Program Business Visualization for Big Data (BV) SAS Visual Analytics help people see things that were not obvious to them before. Even when data volumes are

More information

CFAR Biometrics_REDCap Data Restructuring Using SAS

CFAR Biometrics_REDCap Data Restructuring Using SAS /* syntax00a_redcap_import PREPARE DATA. EXPORTED INSTRUMENTS: EXPORTED EVENTS: EXPORTED DATA: ALL (ONLY NEED: ENROLMENT VISIT, FOLLOWUP, AND LAB DATA). ALL. (I WILL PARSE BELOW.) TO SAS. SAVED THE PATHWAY

More information

Using Report Builder in Total Grant Solution (TGS)

Using Report Builder in Total Grant Solution (TGS) Using Report Builder in Total Grant Solution (TGS) How to set up a new report (Note: The steps on pages 1 & 2 only need to be done the first time you create a new report; skip to the second step on page

More information

Using Big Data to Visualize People Movement Using SAS Basics

Using Big Data to Visualize People Movement Using SAS Basics ABSTRACT MWSUG 2016 - Paper DV09 Using Big Data to Visualize People Movement Using SAS Basics Stephanie R. Thompson, Rochester Institute of Technology, Rochester, NY Visualizing the movement of people

More information

Writing Reports with Report Designer and SSRS 2014 Level 1

Writing Reports with Report Designer and SSRS 2014 Level 1 Writing Reports with Report Designer and SSRS 2014 Level 1 Duration- 2days About this course In this 2-day course, students are introduced to the foundations of report writing with Microsoft SQL Server

More information

Integrating Large Datasets from Multiple Sources Calgary SAS Users Group (CSUG)

Integrating Large Datasets from Multiple Sources Calgary SAS Users Group (CSUG) Integrating Large Datasets from Multiple Sources Calgary SAS Users Group (CSUG) October 25, 2017 Hotel Le-Germain Outline About the AESO Large Datasets: AESO Context Usual Process Obtain data Connecting

More information

The Evolution of a SAS/GRAPH Application Jenine Eason, AutoTrader.com, Atlanta, GA

The Evolution of a SAS/GRAPH Application Jenine Eason, AutoTrader.com, Atlanta, GA Paper P05-04 The Evolution of a SAS/GRAPH Application Jenine Eason, AutoTrader.com, Atlanta, GA INTRODUCTION Graphs are an excellent way to represent any activity. The author is using web server errors

More information

NEW FEATURES IN FOUNDATION SAS 9.4 CYNTHIA JOHNSON CUSTOMER LOYALTY

NEW FEATURES IN FOUNDATION SAS 9.4 CYNTHIA JOHNSON CUSTOMER LOYALTY NEW FEATURES IN FOUNDATION SAS 9.4 CYNTHIA JOHNSON CUSTOMER LOYALTY FOUNDATION SAS WHAT S NEW IN 9.4 Agenda Base SAS SAS/ACCESS Interface to PC Files SAS Support for Hadoop SAS/GRAPH SAS Studio BASE SAS

More information

data Vote; /* Read a CSV file */ infile 'c:\users\yuen\documents\6250\homework\hw1\political.csv' dsd; input state $ Party $ Age; run;

data Vote; /* Read a CSV file */ infile 'c:\users\yuen\documents\6250\homework\hw1\political.csv' dsd; input state $ Party $ Age; run; Chapter 3 2. data Vote; /* Read a CSV file */ infile 'c:\users\yuen\documents\6250\homework\hw1\political.csv' dsd; input state $ Party $ Age; title "Listing of Vote data set"; /* compute frequencies for

More information

work.test temp.test sasuser.test test

work.test temp.test sasuser.test test DSCI 325 Midterm Practice Test Spring 2017 Name: 1. Consider the following four names used to create a SAS data set: work.test temp.test sasuser.test test How many of these will be stored as permanent

More information

EG 4.1. PC-SAS users. for. I C T EG 4.1 for PC-SAS Users. Thursday - May 7 th, 2009

EG 4.1. PC-SAS users. for. I C T EG 4.1 for PC-SAS Users. Thursday - May 7 th, 2009 EG 4.1 for PC-SAS users Agenda What EG 4.1 is? EG 4.1 vs. PC-SAS. Why not to use EG 4.1? Why to use EG 4.1? What s next for EG? Conclusion. Questions. 2 What EG 4.1 is? SAS Enterprise SAS ships Guide Enterprise

More information

USER GUIDE. ReSAKSS-Asia. Map Tool. Creative Commons BY-SA 3.0

USER GUIDE. ReSAKSS-Asia. Map Tool. Creative Commons BY-SA 3.0 USER GUIDE ReSAKSS-Asia Map Tool Creative Commons BY-SA 3.0 TABLE OF CONTENTS 1. About... 3 2. Features and options... 4 2.1 Thematic map... 4 2.2 Indicators panel... 6 2.3 Graph panel... 6 2.4 Options

More information

The Programmer's Solution to the Import/Export Wizard

The Programmer's Solution to the Import/Export Wizard The Programmer's Solution to the Import/Export Wizard Lora D. Delwiche, University of California, Davis, CA Susan J. Slaughter, SAS Consultant, Davis, CA Abstract Do you like what the Import/Export Wizard

More information

What s New in SAS Studio?

What s New in SAS Studio? ABSTRACT Paper SAS1832-2015 What s New in SAS Studio? Mike Porter, Amy Peters, and Michael Monaco, SAS Institute Inc., Cary, NC If you have not had a chance to explore SAS Studio yet, or if you re anxious

More information

Working With PROC GMAP and a Note About Census ZCTAs

Working With PROC GMAP and a Note About Census ZCTAs Working With PROC GMAP and a Note About Census ZCTAs Deron Ferguson, WA State Office of Financial Management, Olympia, WA Presented at the Pacific Northwest SAS Users Group Conference, Seattle, WA September

More information

BASICS BEFORE STARTING SAS DATAWAREHOSING Concepts What is ETL ETL Concepts What is OLAP SAS. What is SAS History of SAS Modules available 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 SAS COURSE CONTENT Course Duration - 40hrs BASICS BEFORE STARTING SAS DATAWAREHOSING Concepts What is ETL ETL Concepts What is OLAP SAS What is SAS History of SAS Modules available SAS GETTING STARTED

More information

Chapter 2 (was Ch. 8) (September 21, 2008; 4:54 p.m.) Constructing a data set for analysis: reading, combining, managing and manipulating data sets

Chapter 2 (was Ch. 8) (September 21, 2008; 4:54 p.m.) Constructing a data set for analysis: reading, combining, managing and manipulating data sets Chapter 2 (was Ch. 8) (September 21, 2008 4:54 p.m.) Constructing a data set for analysis: reading, combining, managing and manipulating data sets 2. Constructing a data set for analysis: reading, combining,

More information

MARK CARPENTER, Ph.D.

MARK CARPENTER, Ph.D. MARK CARPENTER, Ph.D. Module 1 : THE DATA STEP (1, 2, 3) Keywords : DATA, INFILE, INPUT, FILENAME, DATALINES Procedures : PRINT Pre-Lecture Preparation: create directory on your local hard drive called

More information

Using SAS to map petroleum distributions. Saskatoon SUCCESS SAS User Group October 18 th, 2012

Using SAS to map petroleum distributions. Saskatoon SUCCESS SAS User Group October 18 th, 2012 Using SAS to map petroleum distributions Saskatoon SUCCESS SAS User Group October 18 th, 2012 FCL Background Wholesaler for over 300 retail Co-operatives with over 1,000,000 retail members. Distribution

More information

Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet

Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet 1. Macros 1.1 What is a macro? A macro is a set of one or more actions

More information

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

SAS 101. Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23. By Tasha Chapman, Oregon Health Authority SAS 101 Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23 By Tasha Chapman, Oregon Health Authority Topics covered All the leftovers! Infile options Missover LRECL=/Pad/Truncover

More information

Using Dynamic Data Exchange

Using Dynamic Data Exchange 145 CHAPTER 8 Using Dynamic Data Exchange Overview of Dynamic Data Exchange 145 DDE Syntax within SAS 145 Referencing the DDE External File 146 Determining the DDE Triplet 146 Controlling Another Application

More information

Top Coding Tips. Neil Merchant Technical Specialist - SAS

Top Coding Tips. Neil Merchant Technical Specialist - SAS Top Coding Tips Neil Merchant Technical Specialist - SAS Bio Work in the ANSWERS team at SAS o Analytics as a Service and Visual Analytics Try before you buy SAS user for 12 years obase SAS and O/S integration

More information

Make Your Life a Little Easier: A Collection of SAS Macro Utilities. Pete Lund, Northwest Crime and Social Research, Olympia, WA

Make Your Life a Little Easier: A Collection of SAS Macro Utilities. Pete Lund, Northwest Crime and Social Research, Olympia, WA Make Your Life a Little Easier: A Collection of SAS Macro Utilities Pete Lund, Northwest Crime and Social Research, Olympia, WA ABSTRACT SAS Macros are used in a variety of ways: to automate the generation

More information

Installing a Custom AutoCAD Toolbar (CUI interface)

Installing a Custom AutoCAD Toolbar (CUI interface) Installing a Custom AutoCAD Toolbar (CUI interface) I used 2008LT for this tutorial; you may have a later AutoCAD with a different appearance. However, the customize user interface (cui) should be similar.

More information

WKn Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 9

WKn Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 9 117 CHAPTER 9 WKn Chapter Note to UNIX and OS/390 Users 117 Import/Export Facility 117 Understanding WKn Essentials 118 WKn Files 118 WKn File Naming Conventions 120 WKn Data Types 120 How the SAS System

More information

Sending SAS Data Sets and Output to Microsoft Excel

Sending SAS Data Sets and Output to Microsoft Excel SESUG Paper CC-60-2017 Sending SAS Data Sets and Output to Microsoft Excel Imelda C. Go, South Carolina Department of Education, Columbia, SC ABSTRACT For many of us, using SAS and Microsoft Excel together

More information

Interfacing with MS Office Conference 2017

Interfacing with MS Office Conference 2017 Conference 2017 Session Description: This session will detail procedures for importing/exporting data between AeriesSIS Web Version/AeriesSIS Client Version and other software packages, such as word processing

More information

Reporting Services. Implementation Considerations. Tricia Wilcox Almas 12/2013

Reporting Services. Implementation Considerations. Tricia Wilcox Almas 12/2013 Reporting Services Implementation Considerations 12/2013 Implementation Considerations What Edition of SQL Server do you need or have available Developer (cannot be used in production), Standard or Enterprise?

More information

A Dynamic Imagemap Generator Carol Martell, Highway Safety Research Center, Chapel Hill, NC

A Dynamic Imagemap Generator Carol Martell, Highway Safety Research Center, Chapel Hill, NC A Dynamic Imagemap Generator Carol Martell, Highway Safety Research Center, Chapel Hill, NC ABSTRACT We learned that our web developers were turning a picture of the state of North Carolina with its one

More information

Level I: Getting comfortable with my data in SAS. Descriptive Statistics

Level I: Getting comfortable with my data in SAS. Descriptive Statistics Level I: Getting comfortable with my data in SAS. Descriptive Statistics Quick Review of reading Data into SAS Preparing Data 1. Variable names in the first row make sure they are appropriate for the statistical

More information

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services Implementing and Maintaining Microsoft SQL Server 2008 Integration Services Course 6235A: Three days; Instructor-Led Introduction This three-day instructor-led course teaches students how to implement

More information

The Basics of Map Creation with SAS/GRAPH. Mike Zdeb School of Public Health Rensselaer, NY

The Basics of Map Creation with SAS/GRAPH. Mike Zdeb School of Public Health Rensselaer, NY The Basics of Map Creation with SAS/GRAPH Mike Zdeb University@Albany School of Public Health Rensselaer, NY # MAP CREATION WITH SAS SAS/GRAPH (PROC GMAP) SAS/GIS # PROC GMAP - FOUR TYPES OF MAPS CHOROPLETH

More information

SAS Display Manager Windows. For Windows

SAS Display Manager Windows. For Windows SAS Display Manager Windows For Windows Computers with SAS software SSCC Windows Terminal Servers (Winstat) Linux Servers (linstat) Lab computers DoIT Info Labs (as of June 2014) In all Labs with Windows

More information

Paper S Data Presentation 101: An Analyst s Perspective

Paper S Data Presentation 101: An Analyst s Perspective Paper S1-12-2013 Data Presentation 101: An Analyst s Perspective Deanna Chyn, University of Michigan, Ann Arbor, MI Anca Tilea, University of Michigan, Ann Arbor, MI ABSTRACT You are done with the tedious

More information

ERROR: ERROR: ERROR:

ERROR: ERROR: ERROR: ERROR: ERROR: ERROR: Formatting Variables: Back and forth between character and numeric Why should you care? DATA name1; SET name; if var = Three then delete; if var = 3 the en delete; if var = 3 then

More information

Using GSUBMIT command to customize the interface in SAS Xin Wang, Fountain Medical Technology Co., ltd, Nanjing, China

Using GSUBMIT command to customize the interface in SAS Xin Wang, Fountain Medical Technology Co., ltd, Nanjing, China PharmaSUG China 2015 - Paper PO71 Using GSUBMIT command to customize the interface in SAS Xin Wang, Fountain Medical Technology Co., ltd, Nanjing, China One of the reasons that SAS is widely used as the

More information

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

SAS PROGRAMMING AND APPLICATIONS (STAT 5110/6110): FALL 2015 Module 2 SAS PROGRAMMING AND APPLICATIONS (STAT 5110/6110): FALL 2015 Department of MathemaGcs and StaGsGcs Phone: 4-3620 Office: Parker 364- A E- mail: carpedm@auburn.edu Web: hup://www.auburn.edu/~carpedm/stat6110

More information

BIOMETRICS INFORMATION

BIOMETRICS INFORMATION BIOMETRICS INFORMATION (You re 95% likely to need this information) PAMPHLET NO. # 24 DATE: February 9, 1990 SUBJECT: Reading WATFILE files into SAS WATFILE is a useful package for data entry because it

More information

Microsoft Access 2013/2016 Course Outlines (version differences will be noted in the outline).

Microsoft Access 2013/2016 Course Outlines (version differences will be noted in the outline). Microsoft Access 2013/2016 Course Outlines (version differences will be noted in the outline). Microsoft Access 2013/2016 Level I Course Content Description: This Instructor-led Training course covers

More information

SAS (Statistical Analysis Software/System)

SAS (Statistical Analysis Software/System) SAS (Statistical Analysis Software/System) Clinical SAS:- Class Room: Training Fee & Duration : 23K & 3 Months Online: Training Fee & Duration : 25K & 3 Months Learning SAS: Getting Started with SAS Basic

More information

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services Course 6235A: Implementing and Maintaining Microsoft SQL Server 2008 Integration Services Course Details Course Outline Module 1: Introduction to SQL Server 2008 Integration Services The students will

More information

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

Accessing Data and Creating Data Structures. SAS Global Certification Webinar Series Accessing Data and Creating Data Structures SAS Global Certification Webinar Series Accessing Data and Creating Data Structures Becky Gray Certification Exam Developer SAS Global Certification Michele

More information

Other Data Sources SAS can read data from a variety of sources:

Other Data Sources SAS can read data from a variety of sources: Other Data Sources SAS can read data from a variety of sources: Plain text files, including delimited and fixed-column files Spreadsheets, such as Excel Databases XML Others Text Files Text files of various

More information

Write SAS Code to Generate Another SAS Program A Dynamic Way to Get Your Data into SAS

Write SAS Code to Generate Another SAS Program A Dynamic Way to Get Your Data into SAS Paper 175-29 Write SAS Code to Generate Another SAS Program A Dynamic Way to Get Your Data into SAS Linda Gau, Pro Unlimited @ Genentech, Inc., South San Francisco, CA ABSTRACT In this paper we introduce

More information

ABSTRACT: INTRODUCTION: WEB CRAWLER OVERVIEW: METHOD 1: WEB CRAWLER IN SAS DATA STEP CODE. Paper CC-17

ABSTRACT: INTRODUCTION: WEB CRAWLER OVERVIEW: METHOD 1: WEB CRAWLER IN SAS DATA STEP CODE. Paper CC-17 Paper CC-17 Your Friendly Neighborhood Web Crawler: A Guide to Crawling the Web with SAS Jake Bartlett, Alicia Bieringer, and James Cox PhD, SAS Institute Inc., Cary, NC ABSTRACT: The World Wide Web has

More information

University of North Dakota PeopleSoft Finance Tip Sheets. Utilizing the Query Download Feature

University of North Dakota PeopleSoft Finance Tip Sheets. Utilizing the Query Download Feature There is a custom feature available in Query Viewer that allows files to be created from queries and copied to a user s PC. This feature doesn t have the same size limitations as running a query to HTML

More information

Web Scraping in SAS: A Macro-Based Approach

Web Scraping in SAS: A Macro-Based Approach ABSTRACT SESUG Paper 236-2018 Web Scraping in SAS: A Macro-Based Approach Jonathan W. Duggins, North Carolina State University; Jim Blum, University of North Carolina Wilmington Web scraping has become

More information

Exchanging data between SAS and Microsoft Excel

Exchanging data between SAS and Microsoft Excel Paper CC 011 Exchanging data between SAS and Microsoft Excel Yuqing Xiao, Southern Company, Atlanta, GA ABSTRACT Transferring data between SAS and Microsoft Excel has gained popularity over the years.

More information

Using DDE with Microsoft Excel and SAS to Collect Data from Hundreds of Users

Using DDE with Microsoft Excel and SAS to Collect Data from Hundreds of Users Using DDE with Microsoft Excel and SAS to Collect Data from Hundreds of Users Russell Denslow and Yan Li Sodexho Marriott Services, Orlando, FL ABSTRACT A process is demonstrated in this paper to automatically

More information

Microsoft Access Illustrated. Unit B: Building and Using Queries

Microsoft Access Illustrated. Unit B: Building and Using Queries Microsoft Access 2010- Illustrated Unit B: Building and Using Queries Objectives Use the Query Wizard Work with data in a query Use Query Design View Sort and find data (continued) Microsoft Office 2010-Illustrated

More information

Electricity Forecasting Full Circle

Electricity Forecasting Full Circle Electricity Forecasting Full Circle o Database Creation o Libname Functionality with Excel o VBA Interfacing Allows analysts to develop procedural prototypes By: Kyle Carmichael Disclaimer The entire presentation

More information

SAS/ACCESS Interface to PC Files for SAS Viya 3.2: Reference

SAS/ACCESS Interface to PC Files for SAS Viya 3.2: Reference SAS/ACCESS Interface to PC Files for SAS Viya 3.2: Reference SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS/ACCESS Interface to PC Files

More information

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

SAS 9 Programming Enhancements Marje Fecht, Prowerk Consulting Ltd Mississauga, Ontario, Canada SAS 9 Programming Enhancements Marje Fecht, Prowerk Consulting Ltd Mississauga, Ontario, Canada ABSTRACT Performance improvements are the well-publicized enhancement to SAS 9, but what else has changed

More information

Creating Regional Maps with Drill-Down Capabilities Deb Cassidy Cardinal Distribution, Dublin, OH

Creating Regional Maps with Drill-Down Capabilities Deb Cassidy Cardinal Distribution, Dublin, OH Creating Regional Maps with Drill-Down Capabilities Deb Cassidy Cardinal Distribution, Dublin, OH ABSTRACT SAS/GRAPH includes many maps which are very useful. But what if you need a map that truly represents

More information

PROC IMPORT and more. Or: when PROC IMPORT just doesn't do the job

PROC IMPORT and more. Or: when PROC IMPORT just doesn't do the job ABSTRACT SESUG Paper BB-180-2017 PROC IMPORT and more. Or: when PROC IMPORT just doesn't do the job David B. Horvath, MS, CCP PROC IMPORT comes in handy when quickly trying to load a CSV or similar file.

More information

York Public Schools Subject Area: Technology Grade: 9-12 Course: Information Technology 2 NUMBER OF DAYS ASSESSED TAUGHT DATE

York Public Schools Subject Area: Technology Grade: 9-12 Course: Information Technology 2 NUMBER OF DAYS ASSESSED TAUGHT DATE Introduction Information Log onto Google Accounts Log onto Google Classroom Create a Ted Account Log onto TedED 1 Create a Certiport Account Lesson 1 Get started Work in the windows Use the on-screen tools

More information

Assignment 0. Nothing here to hand in

Assignment 0. Nothing here to hand in Assignment 0 Nothing here to hand in The questions here have solutions attached. Follow the solutions to see what to do, if you cannot otherwise guess. Though there is nothing here to hand in, it is very

More information