William E Benjamin Jr, Owl Computer Consultancy, LLC



Similar documents
Exploiting Key Answers from Your Data Warehouse Using SAS Enterprise Reporter Software

SAS Add-In 2.1 for Microsoft Office: Getting Started with Data Analysis

Getting Started With SPSS

From Data Modeling to Data Dictionary Written Date : January 20, 2014

It s not the Yellow Brick Road but the SAS PC FILES SERVER will take you Down the LIBNAME PATH= to Using the 64-Bit Excel Workbooks.

Using Delphi Data with Excel and Access

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

Define ODBC Database Library using Management Console

MicroStrategy Desktop

Installing the MySQL ODBC Connector Windows XP and Windows 7. Roth Technologies, LLC

Getting Started Guide

ODBC (Open Database Connectivity) for MS-Excel Microsoft OLE DB Provider for ODBC Drivers (Legitronic v3.6.2 & Later)

Using FileMaker Pro with Microsoft Office

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Chapter 4 Accessing Data

TheEducationEdge. Export Guide

Introduction to PASW Statistics

Intro to Mail Merge. Contents: David Diskin for the University of the Pacific Center for Professional and Continuing Education. Word Mail Merge Wizard

Business Intelligence Getting Started Guide

Database Concepts (3 rd Edition) APPENDIX D Getting Started with Microsoft Access 2007

Novell ZENworks Asset Management 7.5

Seamless Dynamic Web Reporting with SAS D.J. Penix, Pinnacle Solutions, Indianapolis, IN

Using Proc SQL and ODBC to Manage Data outside of SAS Jeff Magouirk, National Jewish Medical and Research Center, Denver, Colorado

Dynamics CRM for Outlook Basics

for Sage 100 ERP Business Insights Overview Document

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

Using the SAS Enterprise Guide (Version 4.2)

Introduction. Why Use ODBC? Setting Up an ODBC Data Source. Stat/Math - Getting Started Using ODBC with SAS and SPSS

Configuration Guide. Remote Backups How-To Guide. Overview

Spatial Database Support

Adaptive Enterprise Solutions

Personal Geodatabase 101

Creating and Merging a Database in Design Pro (Windows) Merging a Database via ODBC in Design Pro (Windows)

How-to configure Auditing for IDENTIKEY Authentication Server 3.2 to a remote Oracle Database on a standalone Microsoft machine.

Pastel Evolution BIC. Getting Started Guide

Excel Integrated Reporting

Switching from PC SAS to SAS Enterprise Guide Zhengxin (Cindy) Yang, inventiv Health Clinical, Princeton, NJ

SAS Add in to MS Office A Tutorial Angela Hall, Zencos Consulting, Cary, NC

User's Guide. Using RFDBManager. For 433 MHz / 2.4 GHz RF. Version

Using Microsoft Access Databases

Importing and Exporting With SPSS for Windows 17 TUT 117

Getting Started Guide SAGE ACCPAC INTELLIGENCE

Technical Paper. Defining an ODBC Library in SAS 9.2 Management Console Using Microsoft Windows NT Authentication

In this example, Mrs. Smith is looking to create graphs that represent the ethnic diversity of the 24 students in her 4 th grade class.

SPSS 12 Data Analysis Basics Linda E. Lucek, Ed.D

Producing Listings and Reports Using SAS and Crystal Reports Krishna (Balakrishna) Dandamudi, PharmaNet - SPS, Kennett Square, PA

Suite. How to Use GrandMaster Suite. Exporting with ODBC

Skills Funding Agency

Creating Reports with Microsoft Dynamics AX SQL Reporting Services

SAS Office Analytics: An Application In Practice

Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access

Backing Up and Restoring the Database

Paper FF-014. Tips for Moving to SAS Enterprise Guide on Unix Patricia Hettinger, Consultant, Oak Brook, IL

Presentation Reporting Quick Start

Introduction to Microsoft Access 2003

Hamline University Administrative Computing Page 1

DiskPulse DISK CHANGE MONITOR

DSHS Secure FTP Instructions

1-Step Appraisals Jewelry Appraisal Software

CONTACTS SYNCHRONIZER FOR IPAD USER GUIDE

Step Sheet: Creating a Data Table and Charts

Microsoft Query, the helper application included with Microsoft Office, allows

Instructions for Installing and Using the FOCUS DL-15 Data Transfer Software

Office 2013 files: Storing, accessing and sharing on the network and the cloud

Human Resources Installation Guide

COURSE DESCRIPTION. Queries in Microsoft Access. This course is designed for users with a to create queries in Microsoft Access.

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

Overview of sharing and collaborating on Excel data

ORACLE BUSINESS INTELLIGENCE WORKSHOP. Prerequisites for Oracle BI Workshop

Working with the Ektron Content Management System

FileMaker Pro and Microsoft Office Integration

Schools CPD Online General User Guide Contents

HART INSTALLATION GUIDE

2. Unzip the file using a program that supports long filenames, such as WinZip. Do not use DOS.

Share Point Document Management For Sage 100 ERP

Create a PDF File. Tip. In this lesson, you will learn how to:

Excel Reports and Macros

1.5 MONITOR. Schools Accountancy Team INTRODUCTION

Installing SQL Express. For CribMaster 9.2 and Later

THE TOP TEN TIPS FOR USING QUALTRICS AT BYU

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002

Word 2010: Mail Merge to with Attachments

Toad for Data Analysts, Tips n Tricks

Microsoft PowerPoint 2008

Using Adobe Dreamweaver CS4 (10.0)

Knowledgebase Article

SAS 9.4 PC Files Server

Basics Guide. Applies to: Microsoft Dynamics CRM Online Microsoft Dynamics CRM 2015 (on-premises)

Installing Remote Desktop Connection

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

Customized Excel Output Using the Excel Libname Harry Droogendyk, Stratia Consulting Inc., Lynden, ON

client configuration guide. Business

DataPA OpenAnalytics End User Training

DIRECTIONS FOR SETTING UP LABELS FOR MARCO S INSERT STOCK IN WORD PERFECT, MS WORD AND ACCESS

1. Open the preferences screen by opening the Mail menu and selecting Preferences...

Microsoft Excel Basics

9.1 SAS/ACCESS. Interface to SAP BW. User s Guide

This document is provided "as-is". Information and views expressed in this document, including URLs and other Internet Web site references, may

Transcription:

So, You ve Got Data Enterprise Wide (SAS, ACCESS, EXCEL, MySQL, Oracle, and Others); Well, Let SAS Enterprise Guide Software Point-n-Click Your Way to Using It. William E Benjamin Jr, Owl Computer Consultancy, LLC ABSTRACT This paper will walk a SAS user through the process of opening and using files from different (non-sas) generated sources and processing the data with SAS Enterprise Guide (EG). The focus of this paper will be to get access to the data, since most functions available to EG are drop down menus and wizards which help teach a new user how to process data. For completeness a simple chart will be shown with instructions about how to each type of data shown. This paper will not show how to get the data into non-sas files; it will be assumed that the user s enterprise will guide them through that process. INTRODUCTION Most of this paper is screen shots from SAS Enterprise Guide that demonstrate how to find the tools that enable a user to access external data and use it within the SAS Enterprise Guide environment. The features described in this paper will help the new users to Enterprise Guide be able to quickly expand their expertise combining data from diverse sources. Some of the features described in this paper also require the use of the ODBC API software to allow the use of additional data sources. This author uses SAS Learning Edition Version 4.1 which is advertised by SAS as a tool to study for certification exams. SAS Learning Edition Version 4.1 uses a nearly complete version of SAS Enterprise Guide. The SAS Enterprise Guide Explorer is missing, the software is limited to 1500 input observations, and the EULA limits the use to non-commercial uses. But this software is a powerful teaching tool. GETTING STARTED After showing how to access SAS files the rest of the paper will focus on external files and databases. When starting a new SAS Enterprise Guide project, the first screen shown to the user is the project designer screen. (A note from the author The images are best when viewed electronically, they look much better expanded.) 1) View of SAS Enterprise Guide Project Designer screen.

This paper will use the SAS SHOES dataset from the SASHELP library, the file can be located by choosing FILE > OPEN > DATA and a screen similar to the Open Data Form will appear. 2) Next select the SAS Servers icon, and 3) Then choose the local server: 4) And finally access to the SASHELP libname is available. 5) Then the file 6) The data 7) The Project Designer window Now on to the meat of the paper

To read data stored in permanent SAS Libraries the best way is to assign a libname, To assign a libname for the session use the Assign Library option under the TOOLS toolbar menu item. There are six steps to make that assignment, but it has to be re-executed for every session. Saving the step to the project avoids the need to open the menus every time. But this paper is not really about SAS files, it is about the other files SAS can open. FROM SAS DATASETS TO MICROSOFT ACCESS DATABASE FILES The easiest way to move SAS data to a MS/Access database (*.mdb) file is to use the export option of the FILE option on the toolbar menu. The data is generally formatted well, and the table works as a stand-alone table available to MS/Access. The same option is available for MS/Excel (*.xls), dbase (*.dbf), Lotus (*.wk[1,3,4]), Paradox (*.db), and HTML files for their respective systems. 8) Highlight the data file icon and use the export option 9) Create a Microsoft Access database 10) Open it with access (optional) 11) View the data with Microsoft Access 3

FROM MICROSOFT ACCESS DATABASE FILES TO SAS DATASETS The Conversely, a fast way to get data from those systems is to use the import feature of the FILE option on the toolbar menu to read the data into a SAS file. Here there are a few more choices. The first menu you will see is similar to slide 8 in the group above. But, to import data select import not export. Next an image like the following will appear: 12/13) Select Local Computer and navigate to the directory that has the Microsoft Access file you want to import, and select it to read. An Import Data screen should appear with three options on the left hand side window. These options are Region to Import, Column Options, and Results. 14) Region to Import 15) Column Options 16) Results These three screens allow you to select the full file or a subset of rows, all columns or a subset of columns, and choose where to place the file (libname). Note the four options in the bottom right hand corner of the screen, from left to right - RUN, SAVE, CANCEL, and HELP, the options RUN and SAVE will either bring in the file to Enterprise Guide, or save the commands to do that for later. The file may be opened as a read only file. The next screen shows the results of selecting both Run and Save. 4

This is from the Save command. This is from the Run command. 17) Image of import Run and Save command results in the Project Designer Window. NOW FOR THE GOOD STUFF GETTING DATA FROM MYSQL At this point the author is assuming the following. (1) The user (you) have acquired and installed MySQL software, and have the system running as a Windows service typically identifiable in the Windows Task Manager as a process with a name similar to mysql-nt.exe. (2) A user account is active and available to the user. (3) A MySQL database and table has been created with data. These files can be loaded into SAS VIA an ODBC action. (4) The ODBC driver from MySQL has also been loaded onto the user machine. (5) MySQL Administrator in installed. This author believes that the hardest thing about doing something over and over again is figuring out how to do it the first time. The task of figuring something out for yourself the first time, without anyone leading you is challenging, to the point of frustration. Having accomplished this task he presents it to you, to make your goal easier to achieve. MYSQL IS A STAND-ALONE DATABASE SYSTEM HOW CAN I USE IT WITH MY SAS CODE? This paper addresses using MySQL as an input source to SAS. It also addresses what can be done not by writing code, but by pointing and clicking the mouse (with some typing of names etc..) this first thing to know about using MySQL data as input to SAS is Do you have any data? If you do we can continue forward The author has a MySQL data base named Test into which he has loaded a copy the of SASHELP.SHOES file. 5

18) Listing showing the MySQL database Test and the name of a table called shoes. THE FOLLOWING STEPS OPEN AN ODBC DATA PATH Instructions will be interspersed between the images, which will read from felt to right and down. 19) Open the ODBC dialogue 20) Read the warning about big data extracts. 21) Select the Machine Data Source tab 22) Then the User Data Source option 6

23) Select a data source, and click Next and Finish on the next screen. 24) Fill in this screen and enter the port numbers in the Advanced tab, ensure a good connection by pressing the TEST button on the bottom left. 25) Click OK or NEXT until getting back here. 26) Fill in the Data Source name from step 24, click Ok 27) When you get back here click OK again. 28) The data is now available for use. To use this data source again go back to screen 24, (the name from screen 26 should appear there) and select the data source. If there is more than one table in the MySQL file you will see a screen similar to the next screen. 7

29) selection screen if more that one MySQL table exists in the referenced database. 30) The Project Designer screen will show the full source information about the MySQL file. 31) This author does not have access to an Oracle Database, but the ODBC Create New Data Source window has a driver selection for Oracle. 32) This window indicates some things required for Oracle ODBC access. Now Let s Do Some Cooking (pie charts) The toolbar Graph tab is used to select a Pie Chart of the Product variable to process the data. 33) Start with the Microsoft Access input file 34) We can do the same thing with the data from MySQL 8

35) This picture shows the shows the Pie Chart Graph for the MySQL data input, but both looked the same. TOYS ARE FUN BUT YOU NEED TOOLS Of course the object of all of this is to get the data into a SAS file where it can become useful. Earlier in the paper there was a reference to outputting data into Excel. Tucked away under the View toolbar tab on the Toolbars submenu is the Customize option. Then in the Commands window of the Commands tab are the familiar icons and these can be moved to the toolbar where they alternate between grey and colored. When they are not grey, one good click will send data directly to either Excel or Word (your choice of course). A right click on the file icon in the Project Designer window will display a popup menu to allow you choose to Send To the output of your choice. 9

36) Right click on pie chart icon 37) Send it straight to MS/Word. WHAT YOU DO, IS UP TO YOU Of course now the options open wide, the paths lead to Excel, Power Point, and since Access 2007 will store BOTH intact Word documents and PDF files in an Access Database record. It seems endless. But, that sounds like the topic for another paper. CONCLUSION The hours of research involved in looking for this kind of help can be frustrating when there seem to be no good papers or books that deal with these cross system applications. It is easy to find material on SAS, Excel, Word, Access, even on MySQL. Authors love to write about their favorite subject. But rarely do the subjects join two or more applications into the discussion. In fact most of the time great pains are taken to avoid any mention of another product. This author hopes that some of this material will be useful to at least one other person. Discussing this would be fun. CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author at: Name William E Benjamin Jr Enterprise Owl Computer Consultancy, LLC Address P.O. Box 42434 City, State ZIP Phoenix, AZ, 85080 Work Phone: 602-942-0370 Fax: 602-942-3204 E-mail: William@owlcomputerconsultancy.com Web: owlcomputerconsultancy.com SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companies. 10