Don’t Import It! Setting Up a SAS Libname to an Excel Spreadsheet or Access Database… in 10 Seconds or Less! Kevin Druhan Wait Time Improvement Office.

Slides:



Advertisements
Similar presentations
Visualize Success 2011 Tony Gunter Professional Services Visual South, Inc. Advanced Browse and Excel Interface.
Advertisements

® Microsoft Office 2010 Integrating Word, Excel and Access.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
1 Linking & Consolidating Worksheets Applications of Spreadsheets.
XP New Perspectives on Microsoft Office Excel 2003 Tutorial 1 1 Microsoft Office Excel 2003 Tutorial 1 – Using Excel To Manage Data.
XP Microsoft Excel Lecture -5- By lec. (Eng.) Hind Basil University of technology Department of Materials Engineering.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Chapter 5 Multitable Forms
Access Lesson 2 Creating a Database
Integrating Access with the Web and with Other Programs.
Microsoft Office 2007 Access Integration Feature Sharing Data Among Applications.
Access Tutorial 1 Creating a Database
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
XP 1 ﴀ New Perspectives on Microsoft Office 2003, Premium Edition Excel Tutorial 1 Microsoft Office Excel 2003 Tutorial 1 – Using Excel To Manage Data.
Tutorial 8 Sharing, Integrating and Analyzing Data
Microsoft Excel 2010 Chapter 8
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Web Feature Sharing Data among Applications.
Lecture 1 Introduction to Excel OVERVIEW Introduction Basics of Cells Modifying Columns and Rows Formatting Cells Saving Working with Formulas Basics.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Pasewark & Pasewark 1 Access Lesson 6 Integrating Access Microsoft Office 2007: Introductory.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
ICOLC Use Data Webinar Episode 2 TANSY MATTHEWS JULY 2010.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Chapter 2 Querying a Database
Tutorial 8 Managing and Securing a Database. Objectives Filter data in a table and a form Save a filter as a query and apply the saved query as a filter.
Microsoft Office Excel 2013 Expert Microsoft Office Excel 2013 Expert Courseware # 3254 Lesson 6: Protecting and Configuring Workbooks.
Datasheets I: Create a table by entering data – You type, Access listens Lesson 18 By the end of this lesson you will be able to complete the following:
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
CITY UNIVERSITY / Vysoká Škola Manažmentu.:IS Information Systems :. © Martina Cesalova, 2005 MS ACCESS 1 Start Microsoft Access – New - Blank Database.
Info copied from Microsoft Help Files Excel: Introduction Microsoft Office 2003.
® Microsoft Access 2010 Tutorial 1 Creating a Database.
Bringing Data into SAS From Menu: –File –Import Data –Spreadsheet example first Pick file by browsing Select Library and Member (we will talk about this.
Key Applications Module Lesson 21 — Access Essentials
 Objectives Objectives  Introduction Introduction  Exploring Excel Exploring Excel  Navigating a Worksheet Navigating a Worksheet  Workbook Workbook.
Microsoft ® Office Access ™ 2007 Training Datasheets I: Create a table by entering data ICT Staff Development presents:
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 23 Getting Started with Access Essentials 1 Morrison / Wells / Ruffolo.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 1 1 Microsoft Office Excel 2003 Using Excel To Manage Data.
1 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Accessing Remote Data 2.4 Importing Text Files.
Accessible Word and PDF documents
Microsoft Access 2000 Presentation 1 The Basics of Access.
Microsoft Access 2010 Chapter 10 Administering a Database System.
® Microsoft Office 2013 Access Creating a Database.
® Microsoft Office 2010 Integrating Word, Excel, Access, and PowerPoint.
COMPREHENSIVE Access Tutorial 12 Managing and Securing a Database.
® Microsoft Access 2010 Tutorial 12 Managing and Securing a Database.
Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database.
Databases and Speadsheets
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
FIRST COURSE Integration Tutorial 2 Integrating Word, Excel, and Access.
Producing a Mail Merged Letter Step 1 Create an Access database for Names and Addresses you can use the ‘Customers’ template in Group Work. Enter the necessary.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Oracle Business Intelligence Foundation – Testing and Deploying OBI Repository.
PREPARED BY: PN. SITI HADIJAH BINTI NORSANI. LEARNING OUTCOMES: Upon completion of this course, students should be able to: 1. Understand the structure.
Tutorial 1 Creating a Database
University of technology Department of Materials Engineering
Tutorial 8 Managing and Securing a Database
GO! with Microsoft Access 2016
Access Creating a Database
Microsoft Office Illustrated
Access Creating a Database
Exchanging Data with Other Programs
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Access Lesson 2 Creating a Database
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Excel: Excel Basics Participation Project
Excel: Excel Basics Participation Project
Tutorial 8 Sharing, Integrating, and Analyzing Data
Presentation transcript:

Don’t Import It! Setting Up a SAS Libname to an Excel Spreadsheet or Access Database… in 10 Seconds or Less! Kevin Druhan Wait Time Improvement Office Nova Scotia Department of Health

To Import or Not to Import Usually preferable to have your data in (SAS7BDAT) format –Stores SAS formats and metadata permanently –Rapid I/O (no translation required when querying data) REALITY CHECK –The #1 Business Intelligence tool in the world is…Microsoft EXCEL. –The #1 DBMS in the world is…Microsoft Access. –You will almost certainly be analyzing EXCEL/ACCESS data at some point in your SAS career! When your source data changes frequently, you should consider linking directly to it in SAS –Otherwise you will be forced to constantly re-import into SAS datasets! –Eg. Real-time reporting on a production database (dashboards etc) You can use Excel sheets/Access tables in SAS seamlessly as if they were SAS datasets by setting up a SAS libname that points to the spreadsheet / database!

Excel - How to do it 1.Click on Libraries in the Explorer pane. 2.Right-click over any white space and select New to create a new library. 3.Under Name, type the libname you want to give your library (8 characters max!) 4.Under Engine, select EXCEL. 5.Under Workbook, click on Browse and select your Excel file. 6.Under Version, select the version of Excel workbook (usually 2002) 7.Under Header Row, select YES if the field names are on the first line of your Excel workbook (cells A1, B1, C1, etc). 8.Leave Options blank. 9.Check Enable at Startup if you want the library to be set up every time you load up SAS (otherwise you will have to repeat all of these steps every time!)

Access - How to do it 1.Click on Libraries in the Explorer pane. 2.Right-click over any white space and select New to create a new library. 3.Under Name, type the libname you want to give your library (8 characters max!) 4.Under Engine, select ACCESS. 5.Under Database, click on Browse and select your Access database file. 6.Under DB Password, type the database password (if necessary) 7.Leave all other fields blank. 8.Check Enable at Startup if you want the library to be set up every time you load up SAS (otherwise you will have to repeat all of these steps every time!)

How to Use the Libnames in SAS Excel –Use the libname you set up and the sheet name in the Excel file –Excel spreadsheets by default contain three sheets: Sheet1, Sheet2, Sheet3. Access –Use the libname you set up and then just use the table names as if they were SAS datasets! Note the quotation marks, $, and the n.

Additional Resources For more information, read the following SAS Global Forum / Technical papers: De-Mystifying the SAS® LIBNAME Engine in Microsoft Excel: A Practical Guide De-Mystifying the SAS® LIBNAME Engine in Microsoft Excel: A Practical Guide Importing Microsoft Access tables to SAS Datasets Importing Microsoft Access tables to SAS Datasets