Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2004, SAS Institute Inc. All rights reserved. SAS Stored Processes An analyst’s perspective Sylvain Tremblay SAS Canada 24 February 2006.

Similar presentations


Presentation on theme: "Copyright © 2004, SAS Institute Inc. All rights reserved. SAS Stored Processes An analyst’s perspective Sylvain Tremblay SAS Canada 24 February 2006."— Presentation transcript:

1 Copyright © 2004, SAS Institute Inc. All rights reserved. SAS Stored Processes An analyst’s perspective Sylvain Tremblay SAS Canada 24 February 2006

2 Copyright © 2004, SAS Institute Inc. All rights reserved.

3 Agenda  What is a Stored Process ?  How can you Create/Distribute/Use them?  Scenario 1: Sample size calculations  Scenario 2: Characterization of a SAS dataset  Conclusion  Questions

4 What Is a SAS Stored Process? A SAS Stored Process is a SAS program that is hosted on a server and described by metadata can be executed by many of the new clients in the SAS ® 9 Intelligence Platform SAS Stored Process

5 Where Is a Stored Process Defined and Stored? A stored process is a SAS program defined by metadata and stored in a source code repository. Most of the capabilities of SAS programs are still available to you. proc report data=sashelp.class nowd; column name age height; define name / order 'Name'; define age / display; define height / display; run; SAS Stored Process Source Code Repository Metadata Server Metadata Server.SAS file

6 What Can a Stored Process Access? Because a stored process is a SAS program, it can access any SAS data source or external file. SAS Stored Process SAS Data Sources External Files

7 What Can a Stored Process Create? Because a stored process is a SAS program, it can create new data sets, files, and report output in a variety of formats. SAS Stored Process SAS Data Sources External Files SAS ODS Output SAS Catalog Entry E-mail Results Package

8 Copyright © 2004, SAS Institute Inc. All rights reserved. Agenda  What is a Stored Process ?  How can you Create/Distribute/Use them?  Scenario 1: Sample size calculations  Scenario 2: Characterization of a SAS dataset  Conclusion  Questions

9 Integrated Object Model (IOM) Server Basic Steps to create a Stored Process Client Tier Middle Tier Server Tier SAS Add-In for Microsoft Office Metadata Server Metadata Server Data Tier SAS Datasets SAS SPDS SAS OLAP cubes SAS Datasets SAS SPDS SAS OLAP cubes ERP RDBMS ODBC PC Files RDBMS ODBC PC Files OLAP Server OLAP Server Workspace Server Workspace Server Stored Process Server Stored Process Server SAS Enterprise Guide 1.Write the Stored Process 2. Register it (Metadata) 3.Leverage it from a Client

10 Methods for Invoking Stored Processes Stored processes can be invoked from several of the SAS ® 9 Intelligence Applications. SAS Stored Process SAS Enterprise GuideSAS Add-In for Microsoft Office SAS Information Map Studio SAS Information Delivery Portal SAS Web Report Studio

11 Copyright © 2004, SAS Institute Inc. All rights reserved. Agenda  What is a Stored Process ?  How can you Create/Distribute/Use them?  Scenario 1: Sample size calculations  Scenario 2: Characterization of a SAS dataset  Conclusion  Questions

12 Copyright © 2004, SAS Institute Inc. All rights reserved. Scenario 1: Sample size calculations Leverage PROC POWER to calculate a required sample size based on a set of parameters.

13 Copyright © 2004, SAS Institute Inc. All rights reserved. Sample Size Calculations Required Power Alpha Level Type of Analysis Formulation of H1 Variability of Sample n = ?

14 Copyright © 2004, SAS Institute Inc. All rights reserved. Agenda  What is a Stored Process ?  How can you Create/Distribute/Use them?  Scenario 1: Sample size calculations  Scenario 2: Characterization of a SAS dataset  Conclusion  Questions

15 Copyright © 2004, SAS Institute Inc. All rights reserved. Scenario 2: Characterization of a SAS dataset Leverage a complex MACRO program to describe automatically the variables and values of a dataset.

16 Copyright © 2004, SAS Institute Inc. All rights reserved. Agenda  What is a Stored Process ?  How can you Create/Distribute/Use them?  Scenario 1: Sample size calculations  Scenario 2: Characterization of a SAS dataset  Conclusion  Questions

17 Conclusion SAS Stored Processes will accept user input parameter values so that the code is not static. SAS Stored Process code is not embedded into client applications. SAS Stored Process programs can be invoked from multiple clients, such as Web browsers and desktop applications. Stored process programs also ensure security and application integrity because the code is contained on a server and can be centrally maintained and managed from the server. Extend the analytical power of SAS to non SAS programmers.

18 Copyright © 2004, SAS Institute Inc. All rights reserved. Agenda  What is a Stored Process ?  How can you Create/Distribute/Use them?  Scenario 1: Sample size calculations  Scenario 2: Characterization of a SAS dataset  Conclusion  Questions

19 Copyright © 2004, SAS Institute Inc. All rights reserved. Questions ?

20 Copyright © 2004, SAS Institute Inc. All rights reserved. Upcoming SAS Training HALIFAX Programming II 02MAY2006 Enterprise Guide 07MAR2006 SQL 11APR2006 Intro to Programming 25APR2006 Macro 22MAR2006 Programming III 19APR2006 Statistics I 17MAY2006

21 Copyright © 2004, SAS Institute Inc. All rights reserved. THANK YOU! Sylvain Tremblay sylvain.tremblay@sas.com


Download ppt "Copyright © 2004, SAS Institute Inc. All rights reserved. SAS Stored Processes An analyst’s perspective Sylvain Tremblay SAS Canada 24 February 2006."

Similar presentations


Ads by Google