SAUSAG 71 – 21 Aug 2014 Tech Tips Jerry Le Breton On behalf of the SAUSAG Committee.

Slides:



Advertisements
Similar presentations
Michael Pizzo Software Architect Data Programmability Microsoft Corporation.
Advertisements

3/5/2009Computer systems1 Analyzing System Using Data Dictionaries Computer System: 1. Data Dictionary 2. Data Dictionary Categories 3. Creating Data Dictionary.
Linux+ Guide to Linux Certification, Second Edition
CS 299 – Web Programming and Design Overview of JavaScript and DOM Instructor: Dr. Fang (Daisy) Tang.
Data Management: Documentation & Metadata Types of Documentation.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
Welcome to SAS…Session..!. What is SAS..! A Complete programming language with report formatting with statistical and mathematical capabilities.
Training Course 2 User Module Training Course 3 Data Administration Module Session 1 Orientation Session 2 User Interface Session 3 Database Administration.
SAS SQL SAS Seminar Series
Attribute Data in GIS Data in GIS are stored as features AND tabular info Tabular information can be associated with features OR Tabular data may NOT be.
© OCS Consulting The flexible extension to your IT team 1 Jim Groeneveld, OCS Consulting, ´s Hertogenbosch, Netherlands. PhUSE 2011 Comparing dataset metadata.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor Ms. Arwa.
Week 7 Working with the BASH Shell. Objectives  Redirect the input and output of a command  Identify and manipulate common shell environment variables.
©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina Chapter 17 supplement: Review of Formatting Data STAT 541.
My ODS: Real-World Uses of Modifying Table Templates Steve James Centers for Disease Control and Prevention Atlanta, Ga.
Multiple Uses for a Simple SQL Procedure Rebecca Larsen University of South Florida.
SAS Efficiency Techniques and Methods By Kelley Weston Sr. Statistical Programmer Quintiles.
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.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification Chapter Eight Working with the BASH Shell.
Data Management Console Synonym Editor
Lesson 2 Topic - Reading in data Chapter 2 (Little SAS Book)
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Managing Extended Attributes With an Enterprise Guide Add-In Larry Hoyle, Institute for Policy & Social Research, University of Kansas.
SQL Chapter Two. Overview Basic Structure Verifying Statements Specifying Columns Specifying Rows.
Tutorial 13 Validating Documents with Schemas
Separating the Interface from the Engine: Creating Custom Add-in Tasks for SAS Enterprise Guide ® Peter Eberhardt Fernwood Consulting Group Inc.
LING/C SC/PSYC 438/538 Lecture 8 Sandiway Fong. Adminstrivia Homework 4 not yet graded …
ISO 191** Overview A “Family” of Standards. Resources ISO Standards Web Page – Technical.
Customize SAS Output Using ODS Joan Dong. The Output Delivery System (ODS) gives you greater flexibility in generating, storing, and reproducing SAS procedure.
Chapter 18 Object Database Management Systems. Outline Motivation for object database management Object-oriented principles Architectures for object database.
1 Lecture 10 Introduction to AWK COP 3344 Introduction to UNIX.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Linux+ Guide to Linux Certification, Second Edition
Lesson 2 Topic - Reading in data Programs 1 and 2 in course notes –Chapter 2 (Little SAS Book)
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 17.
Creating and Using Prompts in SAS® Enterprise Guide Joseph Urbi, WellPoint, Virginia Beach, VA.
Distribution A: Approved for public release; distribution is unlimited. Case Number: 88ABW , 31 Mar 2015 A Tool that Uses the SAS PRX Functions.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapter 26 By Tasha Chapman, Oregon Health Authority.
Linux Administration Working with the BASH Shell.
A MORE COMPLETE ODS REPORT. What we’re going to talk about…  Creating a title page  Creating an introduction page  Creating long-form text descriptions.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 3 & 4 By Tasha Chapman, Oregon Health Authority.
Creative Create Lists Elizabeth B. Thomsen Member Services Manager
Business rules.
CSE 374 Programming Concepts & Tools
The Simple Corpus Tool Martin Weisser Research Center for Linguistics & Applied Linguistics Guangdong University of Foreign Studies
Databases.
Advantages of sas for reporting
CS 330 Class 7 Comments on Exam Programming plan for today:
Applied Business Forecasting and Regression Analysis
MySQL: Part II.
Chapter 2: Relational Model
Introduction to PL/SQL Programing
Training course on biodiversity data publishing and fitness-for-use in the GBIF Network, 2011 edition How Darwin Core Archives have changed the landscape.
SAS Programming Introduction to SAS.
Understanding Inheritance
Program Design Introduction to Computer Programming By:
A DDI3.2 Style for Data and Metadata Extracted from SAS
SAS Essentials How SAS Thinks
A bit more about Read Codes and SNOMED CT
LING/C SC/PSYC 438/538 Lecture 10 Sandiway Fong.
Defining and Calling a Macro
Getting your metadata using PROC METADATA
Never Cut and Paste Again
Lab 2 and Merging Data (with SQL)
Lab 2 HRP223 – 2010 October 18, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
Product Training Program
PHP –Regular Expressions
Login Main Functions Via SAS Information Delivery Portal
Presentation transcript:

SAUSAG 71 – 21 Aug 2014 Tech Tips Jerry Le Breton On behalf of the SAUSAG Committee

Did you know… ?  PERL regular expressions can be used by informats created with PROC FORMAT ? SAUSAG 71 – 21 Aug 2014 What’s a PERL regular expression? It’s a pattern matching (and substitution) “language”. Whole set of prx… functions available. This is validating the format of a time variable.

PERLy FORMATS SAUSAG 71 – 21 Aug 2014 Use the pattern to define an INFORMAT. The REGEXP option identifies the string as a regular expression. If matched, the time8. informat is used to return a SAS time value.

Curly PERLy FORMATS SAUSAG 71 – 21 Aug 2014 Pattern substitutions also possible

PERLy FORMATS  Why bother – can use PRX functions? Simpler programs Formats independent of programs - patterns can be changed without touching the programs that use the informats  See: Using the New Features in PROC FORMAT Rick Langston, SAS Institute Inc., Cary, NC Many other papers SAUSAG 71 – 21 Aug 2014

Metadata  “Data about data”  SAS Metadata Server underpinning SAS products since version 9  Metadata also buried in Base SAS data sets – for decades.  e.g. column labels, column formats, total observations, sorted status, …. SAUSAG 71 – 21 Aug 2014

Metadata – SAS Data Set SAUSAG 71 – 21 Aug 2014 Logical Components of a SAS Data Set SAS(R) 9.3 Language Reference: Concepts, Second Edition Metadata includes data set attributes, and column attributes e.g. column labels and formats

Data Set Descriptor Info SAUSAG 71 – 21 Aug 2014 Data Set label can be customised with useful stuff. Proc DATASETS controls most descriptor info.

Metadata – SAS Data Set SAUSAG 71 – 21 Aug 2014 Logical Components of a SAS Data Set SAS(R) 9.4 Language Reference: Concepts, Third Edition SAS 9.4 provides for any amount of custom metadata with Extended Attributes.

Data Set – Extended Attributes  Attributes for the data set e.g. the “as at” date of the data set  Attributes for the columns e.g. an explanation of a column’s derivation  Attributes are simply Name/Value pairs  You use Proc DATASETS to manage a data set’s extended attributes SAUSAG 71 – 21 Aug 2014

Data Set – Extended Attributes SAUSAG 71 – 21 Aug 2014 xattr statement for controlling extended attributes add a new attribute. ds indicates a data set extended attributes (rather than one for a variable) Name of extended attributes Value of extended attributes

Data Set – Extended Attributes SAUSAG 71 – 21 Aug 2014 New table in output of contents statement for data set extended attributes.

Variable – Extended Attributes SAUSAG 71 – 21 Aug 2014 Set the value of an extended attribute, ‘Privacy’, for the variable, Name.

Variable – Extended Attributes SAUSAG 71 – 21 Aug 2014 Multiple extended attributes can be set.

Variable – Extended Attributes SAUSAG 71 – 21 Aug 2014 Can store pre-calculated stats in extended attributes. Store anything in extended attributes – even the source program.

Accessing Extended Attributes SAUSAG 71 – 21 Aug 2014

Stored Extended Attributes SAUSAG 71 – 21 Aug 2014 Extended attributes in separate file: sas7bxat extension (indexes stored in files with sas7bndx extension)  Use SAS to copy/move the data set  Extended attributes propagate in simple processing  But check doco for anything more complicated.

Extended Attributions  Base SAS (R) 9.4 Procedures Guide, Third Edition Proc DATASETS  How to store data about your data in your data Chris Hemedinger, SAS Institute Inc  Developer Reveals: Extended Data Set Attributes Diane Olson, SAS Institute Inc., Cary NC SGF Paper SAUSAG 71 – 21 Aug 2014

Questions? SAUSAG 71 – 21 Aug 2014 I could use an extended attribute… Jerry Le Breton