Copyright © 20088 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.

Slides:



Advertisements
Similar presentations
Copyright © 2007 Vangent, Inc. All Rights Reserved. Example of OOR Architecture Open Ontology Repository Architecture – Some Considerations April 28-29,
Advertisements

Inside an XSLT Processor Michael Kay, ICL 19 May 2000.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
Copyright © 2005, SAS Institute Inc. All rights reserved. Integrating SAS® in a Web Services Architecture Dan Jahn Developer – SAS Cary.
State of Connecticut Core-CT Project Query 8 hrs Updated 6/06/2006.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Technical BI Project Lifecycle
Guide to extract/download multiple databases from Mainframe Tapes to PC using SAS PC Fereydoun J. Foroudian Blue Cross of California SAS is a registered.
Copyright © 2007, SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
McGraw-Hill/Irwin Copyright © 2008, The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin Copyright © 2008 The McGraw-Hill Companies, Inc.
5 Copyright © 2009, Oracle. All rights reserved. Defining ETL Mappings for Staging Data.
State of Connecticut Core-CT Project Query 4 hrs Updated 1/21/2011.
04 | Customize Team Foundation Server for Team Use Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence.
® IBM Software Group © 2006 IBM Corporation How to read/write XML using EGL This Learning Module shows how to utilize an EGL Library to read/write an XML.
Chapter 5 Using SAS ® ETL Studio. Section 5.1 SAS ETL Studio Overview.
Copyright © 2007, SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
Copyright © 2010, SAS Institute Inc. All rights reserved. Define.xml - Tips and Techniques for Creating CRT - DDS Julie Maddox Mark Lambrecht SAS Institute.
© 2011 Autodesk Navigating Through the Corridor using AutoCAD® Civil 3D®.NET API Augusto Goncalves Senior Developer Consultant at Autodesk.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Semantic Sensor/Device Description System EEEM042-Mobile Applications and Web Services Assignment- Spring Semester 2015 Prof. Klaus Moessner, Dr Payam.
Statistical Discovery. TM From SAS. JMP ® Software: Introduction to Categorical Data Analysis.
Copyright © 2006, SAS Institute Inc. All rights reserved. Enterprise Guide 4.2 : A Primer SHRUG : Spring 2010 Presented by: Josée Ranger-Lacroix SAS Institute.
1Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8 Reporting from Contract.
Implementation Yaodong Bi. Introduction to Implementation Purposes of Implementation – Plan the system integrations required in each iteration – Distribute.
© 2012 Autodesk Dario Nicolini Product Manager Autodesk ® Inventor ® iLogic: a great Autodesk tool to improve Inventor features.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe.
Copyright © IBM Corp., All rights reserved; made available under the EPL v1.0 | March 20, 2008 | Short Talk Standards based systems management: An.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Copyright  Oracle Corporation, All rights reserved. 4 CMIS Powell Oracle Designer: Creating the Database Design CMIS Powell.
Peoplesoft XML Publisher Integration with PeopleTools -Jayalakshmi S.
© 2011 Autodesk CP5239 Demand-Loading AutoCAD®.NET Plug-ins James E. Johnson Synergis Software Sr. CAD Developer.
My ODS: Real-World Uses of Modifying Table Templates Steve James Centers for Disease Control and Prevention Atlanta, Ga.
Chapter 6 SAS ® OLAP Cube Studio. Section 6.1 SAS OLAP Cube Studio Architecture.
Copyright © 2010, SAS Institute Inc. All rights reserved. Applied Analytics Using SAS ® Enterprise Miner™
Using SAS® Information Map Studio
Copyright © 2011, SAS Institute Inc. All rights reserved. Using the SAS ® Clinical Standards Toolkit 1.4 to work with the CDISC ODM model Lex Jansen SAS.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
© 2011 Autodesk High-End Infrastructure Modeling with Low-Cost Tools: Introducing AutoCAD® Map 3D 2012 Bradford Heasley, GISP Vice President, Brockwell.
Data Management Console Synonym Editor
Overview of the SAS® Management Console
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
4 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved. Computer Software Chapter 4.
1 © 1999 Microsoft Corp.. Microsoft Repository Phil Bernstein Microsoft Corp.
“This presentation is for informational purposes only and may not be incorporated into a contract or agreement.”
Copyright © 2004, SAS Institute Inc. All rights reserved. SAS Stored Processes An analyst’s perspective Sylvain Tremblay SAS Canada 24 February 2006.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
GBIF Data Access and Database Interoperability 2003 Work Programme Overview Donald Hobern, GBIF Programme Officer for Data Access and Database Interoperability.
Chapter 11 Using SAS ® Web Report Studio. Section 11.1 Overview of SAS Web Report Studio.
Separating the Interface from the Engine: Creating Custom Add-in Tasks for SAS Enterprise Guide ® Peter Eberhardt Fernwood Consulting Group Inc.
1 Service Creation, Advertisement and Discovery Including caCORE SDK and ISO21090 William Stephens Operations Manager caGrid Knowledge Center February.
Copyright © 2005, SAS Institute Inc. All rights reserved. SAS is a registered trademark or trademark of SAS Institute Inc. in the USA and other countries.
Dom and XSLT Dom – document object model DOM – collection of nodes in a tree.
Copyright © 2010, SAS Institute Inc. All rights reserved. SAS ® Using the SAS Grid.
3 Copyright © 2009, Oracle. All rights reserved. Understanding the Warehouse Builder Architecture.
Hyperion Artifact Life Cycle Management Agenda  Overview  Demo  Tips & Tricks  Takeaways  Queries.
Type presentation name here in slide master © 2007 SDL. Company Confidential. Forward-looking information is based upon multiple assumptions and uncertainties.
9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Scheduling and Bursting Reports.
0 Copyright 2012 FUJITSU Interstage BOP SQL Query Tutorial Todd Palmer October 2012.
© 2012 Autodesk Support Your Design Process with the AutoCAD Map3D Interface to WindMil Using MultiSpeak Frank Misurec Stephen Brockwell Brockwell IT Consulting.
TECHVERZE Oracle BI Publisher Online Training. Introduction to Oracle BI Publisher Oracle BI Publisher is the reporting solution to deliver, author, and.
1 PSI/PhUSE Single Day Event – SAS Applications – June 11, 2009 SAS Drug Development from the Inside Magnus Mengelbier Director.
SAS BI ONLINE TRAINING Contact our Support Team : SOFTNSOL India: Skype id : softnsoltrainings id:
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Build your Metadata with PROC CONTENTS and ODS OUTPUT Louise S. Hadden Abt Associates Inc.
Better Metadata Through SAS® II: %SYSFUNC, PROC DATASETS, and Dictionary Tables.
Slide 1 © 2016, Lera Technologies. All Rights Reserved. Oracle Data Integrator By Lera Technologies.
Tips for Mastering Relational Databases Using SAS/ACCESS®
PROC DOC III: Self-generating Codebooks Using SAS®
Getting your metadata using PROC METADATA
Presentation transcript:

Copyright © SAS Institute Inc. All rights reserved. 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. Useful by Association: Adding Practical Value by Analyzing SAS ® 9 Data Integration Metadata Steve Morton, Applied System Knowledge Ltd, Henley-on-Thames, U.K.

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Useful by Association:… Overview of the Paper SAS 9 Metadata - the what and how Basics of the SAS Open Metadata Architecture Reading metadata in SAS ® DATA step Simple Attribute values Listing all Objects of a given type Analysis using Associations Developing analysis utilities Example: creating an analysis program to list all input & output tables for every Job in a repository Conclusions

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Why the DATA step?  Documentation: SAS ® Open Metadata Interface: Reference Documents the structure & concepts Gives examples – mostly in Java, C++ or Visual Basic Also describes DATA step functions On SAS projects you can always find SAS programmers! You can’t necessarily rely on having access to Java, C++ or VB expertise

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Getting Started… Main features of interest: Objects −The ‘things’ such as Table, Column, Job Attributes −Properties of Objects such as Name, Type, Length Associations −Connection between Objects, such as Table-to-Columns Metadata Browser in the SAS desktop environment SAS language features …

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. SAS Language Features for Metadata Access PROC METADATA XML query structure as input XML output – requires XSL template to read Verbose and “un-SAS-like” DATA step functions METADATA_GETNOBJ, METADATA_GETNATR and so on Input name text and/or Universal Resource Identifiers Output text, URIs, return codes Very natural to SAS programmers!

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Function: metadata_getnatr Get N th attribute of an object: rc = metadata_getnatr( = 'sastest'", N, attribute, value); Input URI and attribute number Output attribute name & value

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Program: read all attributes for a SASLibrary data _null_; a = 0; rc = 0; length attr value $256; Put 'Attributes of sastest library:'; do while(rc >= 0); A + 1; rc = metadata_getnatr( = 'sastest'", A, attr, value); if value ne '' then do; put +5 attr ' = ' value; end; stop; run;

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Output: read all attributes for a SASLibrary Attributes of sastest library: Name = sastest MetadataUpdated = 05Nov2007:18:40:11 MetadataCreated = 05Nov2007:18:40:11 Libref = sastest IsPreassigned = 0 IsDBMSLibname = 0 Engine = BASE Id = A5R7K9XX.BH0000RT

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Library Attributes in Metadata Browser

Copyright © 2008, SAS Institute Inc. All rights reserved. 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 Useful Functions Metadata_Getnobj Search for N th object that matches a search URI Use to get all objects of a type, or partial-name match Metadata_Getattr Get specific attribute value by name Metadata_Getnasl Get each association name than can exist for an object Metadata_Getnasn Get N th association URI

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Program: read all Associations for a SAS Library data _null_; length id $20 type attr prop assoc value lib_uri auri $256; nobj = = 'sastest'", 1, lib_uri); if nobj gt 0 then do; put lib_uri=; n = 0; rc = 0; Put 'Associations of sastest library:'; do while(rc >= 0); n + 1; rc = metadata_getnasl(lib_uri, n, assoc); if assoc ne '' then do; i = 0; arc = 0; do while(arc >= 0); i + 1; arc = metadata_getnasn(lib_uri, assoc, i, auri); if arc >= 0 then do; put +5 assoc i ': ' auri=; end; *if arc…; end; *do while…; end; * if assoc…; end; *do while…; end; *if nobj…; stop; run;

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Output: all Associations for a SAS Library lib_uri=OMSOBJ:SASLibrary\A5R7K9XX.BH0000RT Associations of sastest library: DeployedComponents 1 : auri=OMSOBJ:ServerContext\A5R7K9XX.AT Tables 1 : auri=OMSOBJ:PhysicalTable\A5R7K9XX.BJ Trees 1 : auri=OMSOBJ:Tree\A5R7K9XX.AK0002BE UsingPackages 1 : auri=OMSOBJ:Directory\A5R7K9XX.B00000RT UsingPrototype 1 : auri=OMSOBJ:Prototype\A5R7K9XX.AA00003 lib_uri=OMSOBJ:SASLibrary\A5R7K9XX.BH0000RT Associations of sastest library: DeployedComponents 1 : auri=OMSOBJ:ServerContext\A5R7K9XX.AT Tables 1 : auri=OMSOBJ:PhysicalTable\A5R7K9XX.BJ Trees 1 : auri=OMSOBJ:Tree\A5R7K9XX.AK0002BE UsingPackages 1 : auri=OMSOBJ:Directory\A5R7K9XX.B00000RT UsingPrototype 1 : auri=OMSOBJ:Prototype\A5R7K9XX.AA00003 PhysicalTable  tables of the library Tree  custom folder in which the library is found Directory  directory path of the data

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Getting directory path details – key statements  Search for all SASLibrary objects: lrc = ? ‘’ ", n, uri_lib);  Follow association to get directory path of each rc = metadata_getattr(uri_lib, 'Name', name); rc = metadata_getnasn(uri_lib, 'UsingPackages', 1, uri_path); rc = metadata_getattr(uri_path, 'DirectoryName', path);

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Output of directory path values Library name= groc path=Data\DWAD\Grocery Library name= sastest path=Data\sastest Library name= osas2_db path= No Path ! It is a DBMS library definition

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Important to query the correct Attribute Base SAS library will have DirectoryName attribute DBMS library will have SchemaName rc = metadata_getattr(uri_path, 'SchemaName', schema);

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. A more interesting report  Requirement: Data warehouse ETL maintenance will add new jobs and change existing ones Partial promotion needs to promote all changed jobs and tables; we know which ones have been changed. But other – unchanged – jobs may use tables that have new/altered columns. Code must be regenerated to avoid errors or warnings at run time. How can we know which tables every job uses as input or output? Point-and-click Impact Analysis is tedious for a large number of tables!

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Staring point – examine the metadata of a job Input Tables Output Tables

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. More complex jobs also have intermediate tables Input to Loader is Output from Sort Object is a WorkTable

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. To complete the programming, we need to… Get the URI for each Job in the repository and navigate the Steps and Transformations associations to get every processing step Read all the ClassifierSources and ClassifierTargets Associations for each Transformation to identify the Tables Filter out WorkTable references – they are all internal to the jobs and of no interest Output the results oNote: the code can be found in the Proceedings or downloaded from

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. A much more complex job…

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. … reported as part of a whole repository analysis

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Conclusion Metadata we build for our ETL jobs is a rich source of information By using SAS DATA step functions any moderately experienced SAS programmer can access this resource Metadata Browser provides an aid to understanding the structure and relationships in metadata – use it as your guide!

Copyright © 2008, SAS Institute Inc. All rights reserved. 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. Thank You! Questions? The author can be contacted at:

Copyright © 2008, SAS Institute Inc. All rights reserved. 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.