Tips and Tricks to Using SAS Enterprise Guide in a BI World

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

Improving Your Relationship with SAS Enterprise Guide

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

The Query Builder: The Swiss Army Knife of SAS Enterprise Guide

PharmaSUG Paper QT26

I Didn t Know SAS Enterprise Guide Could Do That!

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

Carry it Easy. User Guide

BROWSER TIPS FOR PEOPLESOFT

OVERVIEW OF THE ENTERPRISE GUIDE INTERFACE

OSPI SFTP User Guide

SAS University Edition: Installation Guide for Amazon Web Services

How to test and debug an ASP.NET application

Surf it Easy. User Guide

IceWarp to IceWarp Server Migration

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

Let SAS Write Your SAS/GRAPH Programs for You Max Cherny, GlaxoSmithKline, Collegeville, PA

Power Update - Documentation Power Update Manager

Getting Started With MySaleManager.NET

SAS. Cloud. Account Administrator s Guide. SAS Documentation

Attix5 Pro Server Edition

Online Payroll System Bureau Manual

Be a More Productive Cross-Platform SAS Programmer Using Enterprise Guide

Exporting to DVD with EDIUS

SUGI 29 Applications Development

Toad for Data Analysts, Tips n Tricks

Using Parametric Equations in SolidWorks, Example 1

Programming Tricks For Reducing Storage And Work Space Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA.

WHAT S NEW IN MS EXCEL 2013

STIDistrict SQL 2000 Database Management Plans

TU04. Best practices for implementing a BI strategy with SAS Mike Vanderlinden, COMSYS IT Partners, Portage, MI

UNIX Comes to the Rescue: A Comparison between UNIX SAS and PC SAS

Getting Started with SAS. Enterprise Miner 4.3

My LMS. Learning Management System Guide for Students

COMMONWEALTH OF PA OFFICE OF ADMINISTRATION. Human Resource Development Division. SAP LSO-AE Desk Guide 15 T H J A N U A R Y,

RingCentral for Desktop. UK User Guide

Online Sharing User Manual

Business Portal for Microsoft Dynamics GP User s Guide Release 5.1

Connection and Printer Setup Guide

Paper Creating Variables: Traps and Pitfalls Olena Galligan, Clinops LLC, San Francisco, CA

Using the SAS Enterprise Guide (Version 4.2)

SAS 9.3 Foundation for Microsoft Windows

Build Your First Web-based Report Using the SAS 9.2 Business Intelligence Clients

Attix5 Pro. Your guide to protecting data with Attix5 Pro Desktop & Laptop Edition. V6.0 User Manual for Mac OS X

Practice Fusion API Client Installation Guide for Windows

Configure Cisco Emergency Responder Disaster Recovery System

Backup Tab. User Guide

StreamServe Persuasion SP5 Control Center

User Guide. SysMan Utilities. By Sysgem AG

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

DiskPulse DISK CHANGE MONITOR

StarWind iscsi SAN Software: Implementation of Enhanced Data Protection Using StarWind Continuous Data Protection

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

IBM Unica emessage Version 8 Release 6 February 13, User's Guide

Scheduling in SAS 9.3

Attix5 Pro Server Edition

Avaya Network Configuration Manager User Guide

Choosing the Best Method to Create an Excel Report Romain Miralles, Clinovo, Sunnyvale, CA

Setting Up OpenOffice.org: Choosing options to suit the way you work

Create a GAME PERFORMANCE Portfolio with Microsoft Word

OnDemand for Academics

Stellar Phoenix Exchange Server Backup

Using the Acrobat tab in Microsoft Word: Setting PDF Preferences

How to create a blog or website

TRIAL SOFTWARE GUIDE 1. PURPOSE OF THIS GUIDE 2. DOWNLOAD THE TRIALSOFTWARE 3. START WIDS 4. OPEN A SAMPLE COURSE, PROGRAM

Argus Direct add-in for spreadsheets - Installation Guide

SMAC 2.0 MAC Address Changer User Guide

Content Author's Reference and Cookbook

Quick Start Guide.

Introduction to SAS Business Intelligence/Enterprise Guide Alex Dmitrienko, Ph.D., Eli Lilly and Company, Indianapolis, IN

Carry it Easy +Plus Bio. User Guide

Avaya one-x Mobile User Guide for iphone

Add in Guide for Microsoft Dynamics CRM May 2012

SYSTEM REQUIREMENTS...3

Guide to Operating SAS IT Resource Management 3.5 without a Middle Tier

Virtual CD v10. Network Management Server Manual. H+H Software GmbH

Creating Word Tables using PROC REPORT and ODS RTF

SAS IT Resource Management 3.2

While You Were Sleeping - Scheduling SAS Jobs to Run Automatically Faron Kincheloe, Baylor University, Waco, TX

Brocade Network Advisor: CLI Configuration Manager

SAS Information Delivery Portal: Organize your Organization's Reporting

UOFL SHAREPOINT ADMINISTRATORS GUIDE

Colligo Manager 6.2. Offline Mode - User Guide

How to Create an XML Map with the XML Mapper

Share Point Document Management For Sage 100 ERP

KPN SMS mail. Send SMS as fast as !

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

NETWORK PRINT MONITOR User Guide

Analyzing the Server Log

Legal Notes. Regarding Trademarks KYOCERA Document Solutions Inc.

AVDC Document Management System Getting Started

for Sage 100 ERP General Ledger Overview Document

SECTION 5: Finalizing Your Workbook

Add-In 7.1 for Microsoft Office

SiteOrigin WordPress Theme Pitch

Transcription:

ABSTRACT Paper SAS331-2014 Tips and Tricks to Using SAS Enterprise Guide in a BI World Angela Hall, SAS Institute Inc., Cary, NC No need to fret, Base SAS programmers. Converting to SAS Enterprise Guide is a breeze, and it provides so many advantages. Coding remote connections to SAS servers is a thing of the past. Generate WYSIWYG prompts to increase the usage of the SAS code and to create reports and SAS Stored Processes to share easily with people who don t use SAS Enterprise Guide. The first and most important thing, however, is to change the default options and preferences to tame SAS Enterprise Guide, making it behave similar to your Base SAS ways. I cover all of these topics and provide demos along the way. WHY ENTERPRISE GUIDE If you consider the immediate benefits you can receive, making the initial switch is more likely. First, the point-andclick wizards that are available reduce the need to memorize or search through documentation for obscure options such as creating three-dimensional bar charts or adding table output to your SUMMARY procedure results. Second, in a client/server environment the RSUBMIT and FTP technologies are no longer required as you can save and run code on the server through Enterprise Guide. Finally, Enterprise Guide can be used instead of SAS Management Console to directly manage your metadata via the Update Library tool and create Stored Processes through a wizard. SAS administrators appreciate this last one as it allows SAS developers to complete tasks without an administrator s help. MODIFY YOUR OPTIONS After programming in Base SAS for years, switching to SAS Enterprise Guide can be a huge paradigm shift. Fortunately, modifying the options of SAS Enterprise Guide to force it to behave more like Base SAS will eliminate your initial frustrations. Included are nine options that I recommend changing as soon as you install SAS Enterprise Guide. All options are accessed via the menu bar: Tools -> Options. Display 1. Menu bar to open options OPTION #1 - WELCOME SCREEN The initial welcome screen provides you with the ability to quickly open a prior saved project or create a new code node. However, for seasoned Base SAS programmers we would prefer to open programs via the menu bar. Turn off the initial welcome screen by either checking the option Don t show this window again on the welcome screen itself or removing the option from the General settings screen as seen below. 1

Display 2. Disable the Welcome Window OPTION #2 MANAGING OUTPUTS AND LOG When I started programming in SAS, I was a statistics student and my professor was adamant about checking the logs before reviewing any results. He made it a point that just because results and reports generate output doesn t necessarily mean that the program was successful. It is always best to do a review to make sure the data tables were refreshed in the run, that all the observations that you expect were included in the process, and that the macros resolved. In SAS Enterprise Guide, the default is to jump you right to the results after running a program, so changing that is critical to keeping the professor happy. There are several steps to this modification. a. In the Results General area of the Project View, uncheck the option Automatically open data or results when generated. This ensures that I don t look at the output first. (Note that more recent versions of SAS Enterprise Guide, such as 6.1, now have this option turned off by default.) Display 3. Do not open results automatically 2

b. In the Options window, move to the Project Views area, and select Show SAS output log. This will allow the log to be clicked and opened from process flow screen. Display 4. Output log Included is an example of the process flow view, which allows quick access to the logs for a step in the flow. Display 5. Open log from process flow OPTION #3 REPLACE RESULTS In Base SAS, when you click Submit the job runs, period. In SAS Enterprise Guide, you are prompted with a message Do you want to replace the results from the prior run? This might be useful if you are testing a couple of different strings of code, but for hardcore SAS programmers this is seen as just another barrier to completing the programming task at hand. Change this behavior by selecting Replace without prompting in the Results General area of the Options GUI. 3

Display 6. Replace without prompting A second step to this is to enable project logging. As program node logs are cleared and refreshed when the process is run, the project log will maintain everything. Just as programmers are familiar with the logs operating in Base SAS. In the General area, select the option to generate a project log for all new projects. This will store the full length of the logs. Display 7. Enable project logging All logs will then be stored in the Project Log (open via the menu View -> Project Log). Included is an example of running two different procedures in the same program node. The project log has both logs, but the program log will have only the most recent run. 4

Display 8. Project log OPTION #4 REMOVING GENERATED CODE FROM LOGS While reviewing the log messages generated from SAS Enterprise Guide, you will find a significant chunk is wrapper code automatically created by the tool. A simple PROC PRINT can output 14 extra lines above the PROC within the log file. 1 ;*';*";*/;quit;run; 2 OPTIONS PAGENO=MIN; 3 %LET _CLIENTTASKLABEL='Program'; 4 %LET _CLIENTPROJECTPATH=''; 5 %LET _CLIENTPROJECTNAME=''; 6 %LET _SASPROGRAMFILE=; 7 8 ODS _ALL_ CLOSE; 9 OPTIONS DEV=ACTIVEX; 10 GOPTIONS XPIXELS=0 YPIXELS=0; 11 FILENAME EGHTML TEMP; 12 ODS HTML(ID=EGHTML) FILE=EGHTML ENCODING='utf-8' STYLE=sasweb 12! STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/x86/SASEnterpriseGuide/4.3/Styles/s 12! asweb.css") 12! ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v92/sasgraph.exe#version=9,2 12! ") NOGTITLE NOGFOOTNOTE GPATH=&sasworklocation; NOTE: Writing HTML(EGHTML) Body file: EGHTML 13 14 GOPTIONS ACCESSIBLE; Output 1. Generated automatic output from SAS Enterprise Guide Remove these lines from the log by unchecking the option Show generated wrapper code in SAS log from the Results General area. 5

Display 9. Remove wrapper code from logs This also reduces the size of the project log, enabling faster reviews of multiple code logs. OPTION #5 MODIFYING THE RESULT FORMATS SAS Enterprise Guide by default produces all output in SAS Report format. Depending on how long you have been programming in Base SAS, you might prefer text or HTML format instead. Take your pick by modifying the Result Formats options in the Results General Options area. Display 10. Change result formats You can also modify the results default settings further by selecting the related output from the left menu bar and choosing other options. In the below example, I have selected the HTML output result and changed the default stylesheet to sasweb. 6

Display 11. Additional result output options OPTION #6 REMOVING OR CHANGING RESULT TITLES AND FOOTERS In Base SAS, the default title is The SAS System and there are no footers. In Enterprise Guide, the procedure is included in the title and the footer contains text for the date. All of this can be modified using the Tasks General area of the Options window. You can add a default title, default footer, and choose to remove the SAS procedure title. Included is an example of my settings for results. Note that these can always be overridden by using the title or footnote statements within the program itself. Display 12. Output result titles and footnotes OPTION #7 MANAGING PERFORMANCE Unlike Base SAS, when you use data in Enterprise Guide it appears to add it to the project. By default, Enterprise Guide will also attempt to open the data table. If the table is significant in size, your Enterprise Guide session could experience a performance issue. Turn this off by changing the Automatically open data when added to the project option in the Data General area. (Note that more recent versions of SAS Enterprise Guide, such as 6.1, now have this option turned off by default.) 7

Display 13. Do not open data automatically OPTION #8 LOCKING DATA TABLES The biggest complaint received from SAS programmers is about the fact that Enterprise Guide can lock the data table and keep it locked even as the users believe they have moved to a different area in the project. Other users will try to access the table and get messages stating that the process failed because the data table is in use. Select the option Close data grid after period of inactivity and enter in a number of minutes, such as 10. This will at least keep you from locking tables for other individuals. (Note that more recent versions of SAS Enterprise Guide, such as 6.1, now have this option turned on with a 30-minute timeout by default.) Display 14. Close data grids after inactivity 8

OPTION #9 DISABLE WARNING MESSAGES ON TOOL CLOSURE As all seasoned programmers are aware, when you close Base SAS all of your data in the temporary library WORK is deleted. There is no recovery other than running your job again when you reopen the tool. We do not require a reminder about this; we have been programming for years. SAS Enterprise Guide will remind you unless you turn off the option Always prompt when closing a project with temporary data references in the Data General area. Display 15. Remove prompt about temporary work data REFERENCES Seeno, Heather Y. Top Ten Reasons to Switch to SAS Enterprise Guide (Say Goodbye to PC SAS). Proceedings of the NESUG 2008 Conference. Pittsburgh, PA. Available at http://www.nesug.org/proceedings/nesug08/ff/ff13.pdf RECOMMENDED READING The SAS Dummy Blog http://blogs.sas.com/content/sasdummy CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author: Angela Hall 100 SAS Campus Drive Cary, NC 27513 SAS Institute Inc. angela.hall@sas.com http://blogs.sas.com/content/bi 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. 9