SAS Web Report Studio Performance Improvement

Similar documents
10/16/2011. Disclaimer. SAS-Teradata Integration & Value to the SAS User. What we ll cover. What is SAS In-Database?

Senturus Analytics Connector. User Guide Cognos to Tableau Senturus, Inc. Page 1

Senturus Analytics Connector. User Guide Cognos to Power BI Senturus, Inc. Page 1

SAS/ACCESS Supplement for MySQL. SAS/ACCESS for Relational Databases

Installation and Configuration Guide

Installation and Configuration Guide

Senturus Analytics Connector Version 3.0. User Guide. Senturus, Inc. 533 Airport Blvd. Suite 400 Burlingame CA P F

Information Design Tool User Guide SAP BusinessObjects Business Intelligence platform 4.0 Support Package 2

This course is aimed at those who need to extract information from a relational database system.

arc tangent, 26 ASIN, 22t, 25 ATAN, 22t, 26 ATAN2, 22t, 26 ATANH, 22t, 26 AVG, 18t

JUST PASSING THROUGH OR ARE YOU? DETERMINE WHEN SQL PASS THROUGH OCCURS TO OPTIMIZE YOUR QUERIES Misty Johnson Wisconsin Department of Health

COPYRIGHTED MATERIAL. Index SYMBOLS AND NUMERICS. Index

Using SAS with Oracle : Writing efficient and accurate SQL Tasha Chapman and Lori Carleton, Oregon Department of Consumer and Business Services

Macro Variables and System Options

Visit for more.

External Databases: Tools for the SAS Administrator

Turbo charging SAS Data Integration using SAS In-Database technologies Paul Jones

PharmaSUG China Mina Chen, Roche (China) Holding Ltd.


COPYRIGHTED MATERIAL. Contents. Chapter 1: Introducing T-SQL and Data Management Systems 1. Chapter 2: SQL Server Fundamentals 23.

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS

SAS ODBC Driver. Overview: SAS ODBC Driver. What Is ODBC? CHAPTER 1

Debugging. Where to start? John Ladds, SAS Technology Center, Statistics Canada.

Basic Concepts #4. Data Step #3: Reading a SAS Data Set and Functions and Call Routines. JC Wang

Multi-Threaded Reads in SAS/Access for Relational Databases Sarah Whittier, ISO New England, Holyoke, MA

Advanced SQL Tribal Data Workshop Joe Nowinski

Introducing the SAS ODBC Driver

DB2 SQL Class Outline

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

PREREQUISITES FOR EXAMPLES

Key Reasons for SAS Data Set Size Difference by SAS Grid Migration Prasoon Sangwan, Piyush Singh, Tanuj Gupta TATA Consultancy Services Ltd.

Index. Purchase this book at

DBLOAD Procedure Reference

Improving Your Relationship with SAS Enterprise Guide Jennifer Bjurstrom, SAS Institute Inc.

Certkiller.A QA

IVOA Astronomical Data Query Language Version 0.6

Chapter 9 How to use functions

Paper BI SAS Enterprise Guide System Design. Jennifer First-Kluge and Steven First, Systems Seminar Consultants, Inc.

SAS Activity-Based Management 7.11 Installation, Migration, and Configuration Guide

Efficiently Join a SAS Data Set with External Database Tables

for Relational Databases

DB2 Function Conversion for Sybase ASE Users

SQL FUNCTIONS. Prepared By:Dr. Vipul Vekariya.

Built-in SQL Functions. Chapter 5

Top 10 Ways to Optimize Your SAS Code Jeff Simpson SAS Customer Loyalty

SAS/ACCESS Data Set Options

Call: SAS BI Course Content:35-40hours

SAP Crystal Reports and SAP HANA: Options and Opportunities (0301)

Seamless Dynamic Web (and Smart Device!) Reporting with SAS D.J. Penix, Pinnacle Solutions, Indianapolis, IN

for Relational Databases

15. INFORMATICS PRACTICES (CODE: 065)

Technical Paper. Accessing a Microsoft SQL Server Database from SAS under Microsoft Windows

Teradata SQL Features Overview Version

SAS Cost and Profitability Management 8.3. Installation, Migration, and Configuration Guide

Python. Olmo Zavala R. Python Exercises. Center of Atmospheric Sciences, UNAM. August 24, 2016

SAS Information Map Studio 3.1: Tips and Techniques

SAS ENTERPRISE GUIDE USER INTERFACE

Installing SQL Server Developer Last updated 8/28/2010

SAS 9.3 LIBNAME Engine for DataFlux Federation Server

Document Type: Best Practice Date: January 14, 2010

Oral Questions and Answers (DBMS LAB) Questions & Answers- DBMS

UNIT-3 RELATIONAL DATABASE MANAGEMENT SYSTEM

Base and Advance SAS

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number.

SAS/ACCESS Supplement for Teradata. SAS/ACCESS for Relational Databases Second Edition

Tips for Mastering Relational Databases Using SAS/ACCESS

OLAP Introduction and Overview

Working with Big Data in SAS

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)

SWITCH(DatePart("w",DateOfYear) IN(1,7),"Weekend",DatePart("w",DateOfYear) IN(2,3,4,5,6),"Weekday") AS DayType,

Crystal Reports. Overview. Contents. Differences between the Database menu in Crystal Reports 8.5 and 9

Supplement for Netezza

Configuring SAS Web Report Studio Releases 4.2 and 4.3 and the SAS Scalable Performance Data Server

Technical Paper. Defining an OLEDB Using Windows Authentication in SAS Management Console

Configuration of Microsoft SQL Server Express

,

Fuzzy Matching with SAS: Data Analysts Tool to Cleaner Data. Josh Fogarasi

SAS Information Map Studio 2.1: Tips and Techniques

Talend Open Studio for Data Quality. User Guide 5.5.2

SAS Publishing Intelligence Platform SAS. Data Administration Guide

Upgrading your SAS Software Project Management Details

Administering SAS Enterprise Guide 4.2

An Introduction to SAS University Edition

How to Configure Pushdown Optimization for an Amazon Redshift Task Using an ODBC Connection

Stored Processes What are they and how can they be used? Adam Player (Nerd)

The SAS Platform. Georg Morsing

1. Attempt any two of the following: 10 a. State and justify the characteristics of a Data Warehouse with suitable examples.

Release is a maintenance release for Release , , , or

Query To View Table Structure In Sql Server 2008

Oracle Database 12c SQL Fundamentals

Techno Expert Solutions An institute for specialized studies!

Installing Visual Studio for Report Design

The Expressions plugin PRINTED MANUAL

Barco Medialon Manager V6

SAS 9.4 Intelligence Platform: Data Administration Guide, Sixth Edition

Paper HOW-06. Tricia Aanderud, And Data Inc, Raleigh, NC

A SAS/AF Application for Parallel Extraction, Transformation, and Scoring of a Very Large Database

31 Working with Documents in Web Intelligence Rich Client

Rough Optimizations of Complex Expressions in Infobright s RDBMS

Index. Symbols A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Transcription:

SAS Web Report Studio Performance Improvement Using Stored Processes in Information Map Studio

A tale of two methods Direct access to relational databases Including: DB2, SQL, MySQL, ODBC, Oracle, Teradata, etc. Some Web Reports open quickly, some do not 2

Connection Styles Advantages Selecting a SAS/ACCESS Method Libname Statement: libname mysqllib mysql user=testuser password=testpass database=mysqldb server=mysqlserv port=9876; data test; set mysqllib.customers; run; SQL Pass-Thru: proc sql; connect to mysql (user=testuser password=testpass server=mysqlserv database=mysqldb port=9876); quit; select * from connection to mysql (create table test as select * from customers); disconnect from mysql; 3

Connection Differences Libname Statement Access Engine translates majority of SAS functions into the native client If a function doesn t translate, SAS copies all related data into SASWORK for processing. Default Method for SQL Pass-Thru Uses SQL code native to database engine Information Maps 4

What functions pass to the Access Engine? SAS Access for Relational Databases DBMS Specific Reference Chapter on Passing SAS Functions to ABS DTEXTWEEKDAY REPEAT ARCOS (ACOS) DTEXTYEAR ROUND ARSIN (ASIN) EXP SECOND ATAN FLOOR SIGN AVG HOUR SIN BYTE (CHAR) INDEX (LOCATE) SOUNDEX CEIL (CEILING) LENGTH SQRT COALESCE LOG STRIP (TRIM) COMPRESS (REPLACE) LOG2 SUBSTR (SUBSTRING) COS LOG10 TAN COT LOWCASE (LCASE) TIME (CURTIME()) COUNT MAX TIMEPART DATE (CURDATE) MIN TODAY (CURDATE()) DATEPART MINUTE TRIMN (RTRIM) DATETIME (NOW) MOD UPCASE (UCASE) DAY (DAYOFMONTH) MONTH WEEKDAY (DAYOFWEEK) DTEXTDAY QTR (QUARTER) YEAR 5

Does it pay to switch? Options fullstimer; Options sastrace=,,,d sastraceloc=saslog nostsuffix; The message you don t want to see: SAS_SQL: Unable to convert the query to a DBMS specific SQL statement due to an error. 6

Information Map Studio Enterprise Guide Testing Step 1 7

Information Map Studio Enterprise Guide Testing Step 2 8

Information Map Studio Enterprise Guide Testing Step 3 9

Monitoring from the Server Add sastrace and fullstimer options PooledWorkspaceServer\autoexec_usermods.sas Turn on logging http://support.sas.com/kb/34567 Requires a restart of the Object Spawner 10

Steps Required for an Explicit Switch Metadata Location for Output Table Definitions No permanent file is needed No conflicts - users will be pointed to a temporary SAS work location Stored Process Explicit Query Runs on Workspace Server Prompt creation and programming required here if needed within explicit query Information Map that utilizes the two components 11

Easy way to metadata Create a 1 record base table libname biout fileloc ; data biout.shoereport; set sashelp.shoes (obs=1); run; Import into SAS Metadata Feel free to delete the base table from the file system 12

Create a SAS Stored Process *ProcessBody; libname BiOUT (work); Set to Execute on the SAS Workspace Server Wait? What? Authentication? Oh yeah. 13

Authentication Typically SAS Metadata includes a separate AuthDomain for RDBMS Access Within the Proc SQL connect statement, change the user and password to AuthDomain connect to mysql (AuthDomain="SQLAuth" server=l17795 database=sasdata port=3306); 14

Create the new Information Map Select the BiOUT table metadata Select the stored process Run a test 15

What about prompts? Define them in the Stored Process 16

Other Ideas Stored Processes Querying an OLAP Cube Reusing Existing SQL Code Refining the Query Joins based on Prompts Other Ideas? Web Report Studio Tweaks http://support.sas.com/kb/39065 17