Beautiful PROC CONTENTS Output Using the ODS Excel Destination Suzanne Dorinski SESUG 2015 Disclaimer: Any views expressed are those of the author and.

Slides:



Advertisements
Similar presentations
Easily retrieve data from the Baan database
Advertisements

Someone hands you a a diskette that has data about schools in the City of Cleveland. They tell you that the school file is in a a dBase format. How do.
FRAN CAMPANA CAT/MORGAN LIBRARY Discoverer Plus. What is Discoverer Plus? Oracles Discoverer Plus report writing tool that provides access to the Colleges.
Axio Research E-Compare A Tool for Data Review Bill Coar.
R2 Library Features and Functionality Overview. The R2 Library  The R2 Library is an electronic database that enables access to digital book content.
Wincite Introduces Knowledge Notebooks A new approach to collecting, organizing and distributing internal and external information sources and analysis.
SAS Output Delivery System. Find heart in the sashelp library Double click.
Tutorial 8 Sharing, Integrating and Analyzing Data
Tutorial 11: Connecting to External Data
PROC_CODEBOOK: An Automated, General Purpose Codebook Generator
Pasewark & Pasewark 1 Access Lesson 6 Integrating Access Microsoft Office 2007: Introductory.
1 Access Lesson 6 Integrating Access Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Label production Solution with Label Gallery programs Label Gallery is used for general label design and print GalleryForm is used to create data entry.
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.
Managing your References Sue Bird Bodleian Bio- & Environmental Sciences October 2010.
Self Guided Tour for Query V8.4 Basic Features. 2 This Self Guided Tour is meant as a review only for Query V8.4 Basic Features and not as a substitute.
PowerPoint Lesson 9 Importing and Exporting Information Microsoft Office 2010 Advanced Cable / Morrison 1.
Delivering Knowledge for Health eJournals training day Friday 30 th March 2007 Wolfson Training Suite, Edinburgh University.
EndNote Web In the ISI Web of Knowledge.
1 Document Production Software Assists you with composing, editing, designing, printing, and electronically publishing documents –Word processing –Desktop.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
Report Management Using the ODS DOCUMENT Destination and Report Metadata Brit Harvey February 2010.
My ODS: Real-World Uses of Modifying Table Templates Steve James Centers for Disease Control and Prevention Atlanta, Ga.
User’s guide. Compare features:EndNote WebEndNote Save references++ Organize & edit references++ Storage capacity (number of references)10,000unlimited.
Digital Filing A Simple Way to Digitally Centralize and Distribute Documents.
Chapter 1: Introduction to SAS  SAS programs: A sequence of statements in a particular order  Rules for SAS statements: –Every SAS statement ends in.
Chapter 17 Creating a Database.
Lesson 2 Topic - Reading in data Chapter 2 (Little SAS Book)
RefWorks Your Personal Online Database And Bibliography Creator.
Use of ODS tagsets.excelxp to create Excel type files Douglas Staddon Senior Statistical ProgrammerOct 2011.
Publishing to PDF SNUG Quarter 2. Overview n What is PDF? n Why use PDF? n Creating PDF files with SAS Software n Issues n Advanced PDF files with SAS.
Transforming Data into Knowledge for Decision Making: Putting MS Access and Excel to Work for You Joan M. Gregory, Alice I. Weber, Allyson Mower, Julie.
1 EPIB 698E Lecture 1 Notes Instructor: Raul Cruz 7/9/13.
ECDL. Word processing Work with documents and save them in different file formats Choose built-in options such as the Help function to enhance productivity.
Chapter 11 Using SAS ® Web Report Studio. Section 11.1 Overview of SAS Web Report Studio.
EndNote: The Next Steps Rebecca Starkey Reference Librarian The Joseph Regenstein Library
Chapter 4 concerns various SAS procedures (PROCs). Every PROC operates on: –the most recently created dataset –all the observations –all the appropriate.
Spreadsheets 101 What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
Chapter 1: Overview of SAS System Basic Concepts of SAS System.
How to start using SAS SARBAJIT MUKHERJEE. WHAT IS SAS? SAS stands for Statistical Analysis System. Useful for the following types of task: 1. Data entry,
Copyright © 2004, SAS Institute Inc. All rights reserved. SASHELP Datasets A real life example Barb Crowther SAS Consultant October 22, 2004.
1 Chapter 3: Getting Started with Tasks 3.1 Introduction to Task Dialogs 3.2 Creating a Listing Report 3.3 Creating a Frequency Report 3.4 Creating a Two-Way.
1 Introduction to SAS Available at
Lesson 2 Topic - Reading in data Programs 1 and 2 in course notes –Chapter 2 (Little SAS Book)
1 Data Manipulation (with SQL) HRP223 – 2009 October 12, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
1 EPIB 698C Lecture 1 Instructor: Raul Cruz-Cano
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapter 26 By Tasha Chapman, Oregon Health Authority.
SAS Certification Prep Guide Chapter 7 Creating and Applying User-Defined Formats.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 14 & 19 By Tasha Chapman, Oregon Health Authority.
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.
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.
Costs Database and SharePoint Site
Chapter 10: Accessing Relational Databases (Self-Study)
Applied Business Forecasting and Regression Analysis
Easily retrieve data from the Baan database
Avaya Professional Services (APS) Tools ProVision
Creating the Example Data
Exporting and Importing
Beautiful PROC CONTENTS Output Using the ODS Excel Destination
Managing your References
Purpose Real life scenario: I have a set of reports to refresh every month but data is only available at any day during Day 3 – 5 at beginning of each.
5/8/2019 3:20 AM bQuery-Tool 3.0 A new and elegant way to create queries and ad-hoc reports on your Baan/Infor ERP LN data. This Baan session is a query.
Integrating Office 2013 Programs
JTLS 6.0 View Data Files In Excel
Presentation transcript:

Beautiful PROC CONTENTS Output Using the ODS Excel Destination Suzanne Dorinski SESUG 2015 Disclaimer: Any views expressed are those of the author and not necessarily those of the U.S. Census Bureau.

Overview  Question from in-house user group member  Solution for Oracle database  Solution for library with native SAS data sets 2

Question from user How do I export the output of PROC CONTENTS (variable name, type, length, and format) from several Oracle database tables within the same database to separate worksheets (one worksheet for each table) in an Excel spreadsheet? 3

ODS Excel destination!  Easy to create native Excel output  Experimental in SAS 9.4 M2  Production in SAS 9.4 M3 (July 2015 release) 4

Oracle database example 5

Connect to the Oracle database libname asj oracle user=asjview password=asjview path=jailprod.world schema=asjdba access=readonly; run; 6

Need to know which PROC CONTENTS output object to use 7

Save information to data set 8

Use _all_ keyword to work with all the data sets in a library 9

Sort for readability 10

PROC PRINT produces output 11

Add ODS sandwich options nobyline; ODS EXCEL FILE="H:\SESUG 2015\all_variables_from_Oracle_database.xlsx" options(sheet_name="#BYVAL(member)" embedded_titles='yes'); proc print data=AllOracleVarOut noobs; by member; pageby member; title "Variables in #BYVAL(member) table"; run; ODS EXCEL CLOSE; 12

View the output 13

Now do with library of SAS data sets ODS OUTPUT variables=allvarout; proc contents data=sashelp._all_ memtype=data; run; proc sort data=allvarout; by member num; run; 14

SAS data sets example continued options nobyline; ODS EXCEL FILE="H:\SESUG 2015\all_variables_in_SASHELP_data_sets.xlsx" options(sheet_name="#BYVAL(member)" embedded_titles='yes'); proc print data=allvarout noobs; by member; pageby member; title "Variables in #BYVAL(member) data set"; run; ODS EXCEL CLOSE; 15

View output for SASHELP library 16

SASHELP library varies based on products installed  185 data sets in SASHELP in Census Bureau’s virtual desktop infrastructure environment  86 data sets in SASHELP in SAS University Edition 17

Conclusions  ODS Excel destination is easy to use  Produces native Excel output  Can quickly document all variables in SAS library 18

Questions? 19