1 Creating Formats on the Fly Suzanne M. Dorinski* U.S. Census Bureau *Disclaimer: This paper is released to inform interested parties of ongoing research.

Slides:



Advertisements
Similar presentations
Lecture 7, Term COD12 Computer Literacy for Teachers Presentation Software.
Advertisements

1 Migration of Business Objects XI from R2 to R3 July 1, 2009 Office of the Chief Financial Officer Fiscal Management Information System Team This presentation.
Microsoft Word 2013 An Overview. Your Environment Quick Access Toolbar Customizable toolbar for one-click shortcuts Tabs Backstage View Tools located.
Microsoft PowerPoint 2013 An Overview.
1 Update on Strategic Planning and Innovation FSCPE September 27, 2006 Nancy M. Gordon Associate Director for Strategic Planning and Innovation U.S. Census.
COMP 4—Power Tools for the Mind 1 Power Tools Word Processing What we’ll cover for this lecture topic: –Types and Examples of Application software –Creating.
Creating a Positive Classroom Environment Jeff Johnston, Director of Instructional Development November 5, 1998.
1 Access Lesson 6 Integrating Access Microsoft Office 2010 Introductory Pasewark & Pasewark.
Welcome to SAS…Session..!. What is SAS..! A Complete programming language with report formatting with statistical and mathematical capabilities.
Biostatistics Analysis Center Center for Clinical Epidemiology and Biostatistics University of Pennsylvania School of Medicine Minimum Documentation Requirements.
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.
SAS PROC REPORT PROC TABULATE
Introduction to SAS Essentials Mastering SAS for Data Analytics Alan Elliott and Wayne Woodward SAS ESSENTIALS -- Elliott & Woodward1.
The Project – Spreadsheet Design. The following is the high mark band for the spreadsheet design: The candidate has Analysed a given data set and designed.
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.
Advanced Lesson 5: Advanced Data Management Excel can import data, or bring it in from other sources and file formats. Importing data is useful because.
Knowing Understanding the Basics Writing your own code SAS Lab.
EPIB 698C Lecture 2 Notes Instructor: Raul Cruz 2/14/11 1.
1 Click to edit Master title style Demographic Analysis Panel Current and Future State FDA/PhUSE CSS - Working Group 5 - Analysis Standards Script Examples.
ECE Computer Engineering Design Project 2014 Department of Electrical & Computer Engineering Font Sizes and Types For paragraph text pt text.
Innovations in Data Dissemination Thomas L. Mesenbourg, Jr. Acting Director U.S. Census Bureau United Nations Seminar on Innovations in Official Statistics.
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.
2006 Census of Population and Dwellings Proposed Products and Services.
SAS ODS (Output Delivery System) Donald Miller 812 Oswald Tower ;
Chapter 22: Using Best Practices 1 STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina.
Paperless Publishing web publishing. ebooks. digital paper.
Priya Ramaswami Janssen R&D US. Advantages of PROC REPORT -Very powerful -Perform lists, subsets, statistics, computations, formatting within one procedure.
Data accessibility, confidentiality and copyright Bangkok 2010.
The Microdata Analysis System (MAS): ACS Pilot Amy Lauger and Tiffany Julian State Data Centers Steering Committee Meeting 4/15/2015 Disclaimer: The views.
Customize SAS Output Using ODS Joan Dong. The Output Delivery System (ODS) gives you greater flexibility in generating, storing, and reproducing SAS procedure.
Chapter 2 Getting Data into SAS Directly enter data into SAS data sets –use the ViewTable window. You can define columns (variables) with the Column Attributes.
Best Practices: Vital Statistics Report Vital Statistics Team September 14, 2005 FSCPE Conference.
CSPro Android for Lesotho Census
ODS TAGSETS - a Powerful Reporting Method Derek. 2 Agenda Understanding the tagset How to use tagsets Conclusion.
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.
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Online Programming| Online Training| Real Time Projects | Certifications |Online Classes| Corporate Training |Jobs| CONTACT US: STANSYS SOFTWARE SOLUTIONS.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapter 26 By Tasha Chapman, Oregon Health Authority.
SAS ® Global Forum 2014 March Washington, DC.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 14 & 19 By Tasha Chapman, Oregon Health Authority.
Reporting The Facts: The ODSmemo macro suite for making reproducible RTF memos within SAS® Rocio Lopez Cleveland Clinic.
Better Metadata Through SAS® II: %SYSFUNC, PROC DATASETS, and Dictionary Tables.
Analysis and Reporting Toolset (A&RT): Lessons on how to develop a system with an external partner David Smith AstraZeneca.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 16 & 17 By Tasha Chapman, Oregon Health Authority.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 5 & 6 By Ravi Mandal.
Beautiful PROC CONTENTS Output Using the ODS Excel Destination Suzanne Dorinski SESUG 2015 Disclaimer: Any views expressed are those of the author and.
Lesson 4: Inserting Charts. 2 Learning Objectives After studying this lesson, you will be able to:  Insert charts to display numerical data  Link to.
Application software Word processing 1. Application software  Some types:  Document production:  Word-processing, desktop publishing, web page authoring.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 3 & 4 By Tasha Chapman, Oregon Health Authority.
Chapter 5: Enhancing Your Output with ODS
A New Look for the NHANES Website (NHANES Tutorial)
Chapter 2: Getting Data into SAS
SAS Programming Introduction to SAS.
Introduction/Abstract
ECONOMETRICS ii – spring 2018
Geographic Definitions and Linking
SAS in Data Cleaning.
Chapters 5 and 7 supplement
PROC DOC III: Self-generating Codebooks Using SAS®
An Approach to Standard Programming in a Clinical Data Repository
Introduction to SAS A SAS program is a list of SAS statements executed in order Every SAS statement ends with a semicolon! SAS statements can be in caps.
Beautiful PROC CONTENTS Output Using the ODS Excel Destination
To change this title, go to Notes Master
Crime in the USA: Using SAS to Analyze Recidivism Rates
Retrieving numerical values.
Introduction to SAS Lecturer: Chu Bin Lin.
Dynamically Updated Publications
Presentation transcript:

1 Creating Formats on the Fly Suzanne M. Dorinski* U.S. Census Bureau *Disclaimer: This paper is released to inform interested parties of ongoing research and to encourage discussion. Any views expressed are those of the author and not necessarily those of the U.S. Census Bureau.

2 Overview Data used in this example Desired output vs. PROC FREQ default Process text from spreadsheet Control data set for PROC FORMAT Process each variable separately Modify template for PROC FREQ output

3 Data used in this example Local Education Agency Universe Survey for School Year Public-use data set from National Center for Education Statistics Links included in paper, full code on sasCommunity.org

4

5 Data used in this example Desired output vs. PROC FREQ default Process text from spreadsheet Control data set for PROC FORMAT Process each variable separately Modify template for PROC FREQ output

6

7

8 Process text from spreadsheet Use | as delimiter in DOC_FORMATS \emdash creates — in output

9

10

11

12

13 FORMAT_INFO_TO_TRANSPOSE

14 TRANSPOSED_FORMAT_INFO

15 Data used in this example Desired output vs. PROC FREQ default Process text from spreadsheet Control data set for PROC FORMAT Process each variable separately Modify template for PROC FREQ output

16

17 FORMAT_CONTROL_DATA_SET

18 Process each variable separately Use a macro to do PROC FREQ on each variable, then append results to master data set. Macro converts numeric variables to character (RACECAT is numeric, all other variables are character). See my 2007 paper for more details.

19

20

21

22

23 Data used in this example Desired output vs. PROC FREQ default Process text from spreadsheet Control data set for PROC FORMAT Process each variable separately Modify template for PROC FREQ output

24

25 References Dilorio, Frank and Abolafia, Jeff “Dictionary Tables and Views: Essential Tools for Serious Applications”. Dilorio, Frank and Abolafia, Jeff “The Design and Use of Metadata: Part Fine Art, Part Black Art”. Dorinski, Suzanne M “How To Produce Almost Perfect RTF Output”.

26 References (con’t) Dorinski, Suzanne M “A Lazy Programmer Case Study: Dynamic Macro Code To Deal With Changing Number of Variables Over Time”. Dorinski, Suzanne M “Using ODS Object Oriented Features To Produce A Formatted Record Layout”. Wright, Wendy L “Creating a Format from Raw Data or a SAS® Dataset”.

27 Acknowledgements Cindy Sheckells, Suzanne McArdle, John Barrow, Mary Ann Koller, Carma Hogue, Terri Craig for comments and suggestions that helped.

28 Where I first started learning SAS

29 Questions?