My ODS: Real-World Uses of Modifying Table Templates Steve James Centers for Disease Control and Prevention Atlanta, Ga.

Slides:



Advertisements
Similar presentations
Welcome to WebCRD.
Advertisements

 Open the Paradise.exe file  Application displays records in the Books database  Allows the store manager to enter an author’s name (or part of a name)
How to Create a Custom Style Sonia Extremera / Antonio Nieto / Javier Gómez PhUSE Annual Conference, 9th-12th Oct 2011, Brighton UK.
COE201 – Computer Proficiency Mr. Hamze Msheik
SAS Output Delivery System. Find heart in the sashelp library Double click.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 6 1 Microsoft Office Excel 2003 Tutorial 6 – Working With Multiple Worksheets.
Get Fancy Department Level Reports Using SAS ExcelXP Tagset 2008 AIR Forum Seattle, Washington Ray Wallace Washington State University.
Basic And Advanced SAS Programming
Customize your SAS® Output with the Template Procedure: A Beginning Tutorial Carol Gosselin North Carolina State University, Raleigh, NC Joy Munk Smith.
Project Implementation for COSC 5050 Distributed Database Applications Lab5.
FORMAT FESTIVAL AN INTRODUCTION TO SAS® FORMATS AND INFORMATS By David Maddox.
Microsoft Office Excel 2013 Expert Microsoft Office Excel 2013 Expert Courseware # 3254 Lesson 6: Protecting and Configuring Workbooks.
Copyright © 2010, Meta-Xceed, Inc. All rights reserved. BI Flash and all other Meta-Xceed Inc. product or service names are registered trademarks or trademarks.
Chapter 2: Working with Data in a Project
A Concise Display of Multiple Response Items Patrick Thornton.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Record & run a macro Record & run a macro Save as a macro-
Introduction to SAS BIO 226 – Spring Outline Windows and common rules Getting the data –The PRINT and CONTENT Procedures Manipulating the data.
RTSUG 04Feb2014: Beyond Directory Listings in SAS By: Jim Worley.
Niraj J. Pandya, Element Technologies Inc., NJ.  Summarize all possible combinations of class level variables even if few categories are altogether missing.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Twelve Access Databases and LINQ.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 3 Analyzing Data and Creating Reports.
Report Management Using the ODS DOCUMENT Destination and Report Metadata Brit Harvey February 2010.
SAS Options – Versatile Players in the Game of SAS Denise Poll, SAS Institute Inc.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 3: Customizing Document Elements.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
Multiple Uses for a Simple SQL Procedure Rebecca Larsen University of South Florida.
%rtf2data: A utility macro to convert RTF Table to SAS® dataset
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
Essential ODS PDF Patrick Thornton.
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.
Knowing Understanding the Basics Writing your own code SAS Lab.
Chapter 1: Introduction to SAS  SAS programs: A sequence of statements in a particular order  Rules for SAS statements: –Every SAS statement ends in.
01/20151 EPI 5344: Survival Analysis in Epidemiology SAS code and output February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
Using the new Version 8 Template Procedure for Complete Control of SAS Output Style and Format David Ghan Technical Training Specialist SAS, Canada.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 15 Advanced Tables.
1 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Accessing Remote Data 2.4 Importing Text Files.
SAS ODS (Output Delivery System) Donald Miller 812 Oswald Tower ;
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Procedure Editor :17 This SOP describes the Setting procedure and order folders. How to load procedures in order files for sources and.
Priya Ramaswami Janssen R&D US. Advantages of PROC REPORT -Very powerful -Perform lists, subsets, statistics, computations, formatting within one procedure.
Separating the Interface from the Engine: Creating Custom Add-in Tasks for SAS Enterprise Guide ® Peter Eberhardt Fernwood Consulting Group Inc.
1 Chapter 7: Customizing and Organizing Project Results 7.1 Combining Results 7.2 Updating Results 7.3 Customizing the Output Style (Self-Study)
Chapter 1: Overview of SAS System Basic Concepts of SAS System.
Lesson 8 - Topics Creating SAS datasets from procedures Using ODS and data steps to make reports Using PROC RANK Programs in course notes LSB 4:11;5:3.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 25 I’m Suffering from Information Overload.
Chapter 24 I’m Suffering from Information Overload (Access Databases) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Copyright © 2004, SAS Institute Inc. All rights reserved. SASHELP Datasets A real life example Barb Crowther SAS Consultant October 22, 2004.
Customize SAS Output Using ODS Joan Dong. The Output Delivery System (ODS) gives you greater flexibility in generating, storing, and reproducing SAS procedure.
1 Data Manipulation (with SQL) HRP223 – 2009 October 12, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
SAS Programming Training Instructor:Greg Grandits TA: Textbooks:The Little SAS Book, 5th Edition Applied Statistics and the SAS Programming Language, 5.
ODS TAGSETS - a Powerful Reporting Method Derek. 2 Agenda Understanding the tagset How to use tagsets Conclusion.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Copyright © SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
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.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 5 & 6 By Ravi Mandal.
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.
SAUSAG 71 – 21 Aug 2014 Tech Tips Jerry Le Breton On behalf of the SAUSAG Committee.
Microsoft Visual Basic 2010: Reloaded Fourth Edition
Applied Business Forecasting and Regression Analysis
Introduction The Custom Store Groups folders and functions allows you to create, modify and use store accounts of specific interest to you or your team.
SAS Output Delivery System
Instructor: Raul Cruz-Cano
Chapters 5 and 7 supplement
PROC DOC III: Self-generating Codebooks Using SAS®
Beautiful PROC CONTENTS Output Using the ODS Excel Destination
Getting your metadata using PROC METADATA
DATABASES WHAT IS A DATABASE?
Presentation transcript:

My ODS: Real-World Uses of Modifying Table Templates Steve James Centers for Disease Control and Prevention Atlanta, Ga.

Goals See useful examples of modifying procedure output See useful examples of modifying procedure output Trigger your thoughts of how it could help you Trigger your thoughts of how it could help you Motivate you to pursue your own study of table templates Motivate you to pursue your own study of table templates

My SAS Too much output from Proc Contents Too much output from Proc Contents Proc Freq frequencies don’t use a comma format. Proc Freq frequencies don’t use a comma format. “The FREQ Procedure” on the output. “The FREQ Procedure” on the output.

My SAS My Proc Contents My Proc Contents My Proc Freq My Proc Freq My Proc Contents My Proc Contents

ODS Basics OutputObject SAS® process or procedure creates one or more output objects. ODS statements route object(s) to destination. Output Object is composed of a data component and for most procedures, a template component.

ODS Basics –Some procedures might have only a single output object, whereas others have multiple output objects. –ODS stores a link to each output object in the Results folder, displayed interactively in the Results window. PROC PRINT has one output object. PROC UNIVARIATE has multiple output objects.

ODS Basics An output object is an object that contains both –the results of a Data step or PROC step –information about how to format the results Data Component Table Template Output Object +

My Proc Contents

List of Variables Only List of Variables Only Remove “The Contents Procedure” Remove “The Contents Procedure”

My Proc Freq

Frequency is formatted with a comma10. format Percent has a percent (%) sign added Column headings are customized

My Proc Freq Table Template Storage It is a type of SAS file called a template store. SAS Institute provides a template store called TMPLMST in the SASHELP directory.

My Proc Freq ODS PATH SASUSER.TEMPLAT (UPDATE) SASUSER.TEMPLAT (UPDATE) SASHELP.TMPLMST (READ) SASHELP.TMPLMST (READ) ;

My Proc Freq ODS PATH SASUSER.MYTEMPLATES (UPDATE) SASUSER.MYTEMPLATES (UPDATE) SASHELP.TMPLMST (READ) SASHELP.TMPLMST (READ) ;

My Proc Freq proc template ; define Base.Freq.OneWayFreqs ; edit Base.Freq.OneWayFreqs ;

SASHELP.TMPLMST Base.Contents.Attributes Base.Contents.Variables Base.Freq.OneWayFreqs Etc. SASUSER.MYTEMPLATES My Proc Freq Before Edit

SASHELP.TMPLMST Base.Contents.Attributes Base.Contents.Variables Base.Freq.OneWayFreqs Etc. SASUSER.MYTEMPLATES Base.Freq.OneWayFreqs My Proc Freq After Edit

For Further Study Base.Freq.OneWayList Base.Freq.List Base.Freq.OneWayFreqs Parent Template Child Templates Base.Freq.Frequency Base.Freq.Percent

For Further Study Common.ANOVA.DF SASHELP.TMPLMST Stat.Discrim.DF Stat.Discrim.ANOVA contains DF column Which inherits from parent column Which inherits from grandparent column Stat.GLM.ANOVA contains DF column

My Proc Freq Return to Default Behavior? proc template ; delete Base.Freq.OneWayFreqs ; proc template ; delete Base.Freq.OneWayFreqs ; ods path sashelp.tmplmst (read) ; ods path sashelp.tmplmst (read) ;

My Proc Contents

One Table of Output with: –Selected Attribute and EngineHost Information –Selected Variable Information

My Proc Contents 1. Modify existing table template with the changes we want: –Attribute info in the header –Combine type/length and format/informat columns –Engine/Host info in the footer –Use macro variables

My Proc Contents 2. Create a macro that: – Runs Proc Contents, storing output objects as SAS datasets – Reads SAS datasets and store info in macro variables. – Run Proc Contents again using new table template

Conclusion ODS allows you to add much more customization to your output simply and easily. ODS allows you to add much more customization to your output simply and easily.

Acknowledgements Cynthia Zender – SAS Institute

Trademark Citation SAS is a registered trademark or trademark of SAS Institute Inc. in the USA and other countries. SAS is a registered trademark or trademark of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. ® indicates USA registration.

Contact Information : Steve James Centers for Disease Control and Prevention MS E-57 Atlanta, Ga. (404)