©Dofasco Inc., 2004 All rights reserved 1 Using the Output Delivery System October 22, 2004 Presentation to: The Toronto Area SAS Society.

Slides:



Advertisements
Similar presentations
Managing Your SAS Output with the Document Procedure PhilaSUG Meeting March 15, 2011.
Advertisements

Summary Statistics/Simple Graphs in SAS/EXCEL/JMP.
Getting the Right Report (Again): Your Compatibility Guide for ODS PDF 9.2 Bari Lawhorn and Scott Huntley, SAS Institute Inc., Cary, NC.
Using ODS Regions to Create Custom Reports Kate Morrow, M.S. Statistician Vermont Oxford Network, Burlington, VT.
Creating and Editing a Web Page Using Inline Styles
Lesson 2+3 MICROSOFT WORD by Nguyễn Thanh Tùng Web:
How to Create a Custom Style Sonia Extremera / Antonio Nieto / Javier Gómez PhUSE Annual Conference, 9th-12th Oct 2011, Brighton UK.
The many uses of an iPad Here are a couple tips to keep in mind: Keep it simple: A website is a place for the exchange of information. It does not need.
Using a Template to Create a Resume and Sharing a Finished Document
SAS Output Delivery System. Find heart in the sashelp library Double click.
IWebFolio Using a Template Tutorial Images in this tutorial:
Customize your SAS® Output with the Template Procedure: A Beginning Tutorial Carol Gosselin North Carolina State University, Raleigh, NC Joy Munk Smith.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
Operating Systems Day 6. Page Setup 1.Open notepad and type a document or file 2.Click on file menu 3.Click on page setup menu item 4.Select paper size,
How to Build Tabular Dashboards Using Proc Report
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
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.
SAS PROC REPORT PROC TABULATE
Agenda Outline Mode Separating Show Into Sections Hyperlinking Adding Media Inserting Charts from Excel Common Mistakes Q&A.
Using a Spreadsheet Chapter 5.
Project 1: Creating a Dreamweaver Web Page and Local Site 1 Project Objectives Add a background image Open and close panels Display and describe the Property.
Website Development with Dreamweaver
Report Management Using the ODS DOCUMENT Destination and Report Metadata Brit Harvey February 2010.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
PROC TEMPLATE: The Basics Lauren Haworth Genentech, Inc. South San Francisco, CA.
ODS Statistical Graphics in SAS 9.2 January 17, 2010.
Chapter 1: Introduction to SAS  SAS programs: A sequence of statements in a particular order  Rules for SAS statements: –Every SAS statement ends in.
Katherine Nicholas. Outline: 1. What is ODS 2. Basic syntax 3. Saving output to files 4. Built-in graphics 5. Identifying objects in output 6. Outputting.
01/20151 EPI 5344: Survival Analysis in Epidemiology SAS code and output February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
M AKE E ASY S TYLE T EMPLATES U SING SAS M ACRO Barbara Harlan.
Self Serve Census Data for Neighborhoods and other Custom Aggregations A SAS/IntrNet Applicaton Larry Hoyle Policy Research Institute University of Kansas.
Word 2013 Certification Skills Measured. 1. Create and Manage Documents  Create a Document  Navigate through a Document  Format a Document  Customize.
Copyright © 2005, SAS Institute Inc. All rights reserved. Effective Use of SAS/GRAPH® Stored Processes Pat Berryman Senior Software Manager Data Visualization.
SAS Software Version 8 The Output Delivery System.
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.
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.
SAS ODS (Output Delivery System) Donald Miller 812 Oswald Tower ;
Effective SAS greplay’ing and how to avoid stretching By David Mottershead Senior Programmer, Quanticate.
Chapter 3 Memos.
Word 2003 The Word Screen. Word 2003 Screen File Menu –Holds the options for creating a new document, opening a document, saving a document, printing.
Landscaper 101. Time Code AMC AMCNET HELP!!! Where do you go for help? –Upper right corner has a ? for the online help –This presentation.
BASIC WORD PROCESSORS WEEK 5. BASIC WORD PROCESSORS Word Processor Word processor is a program which is used to edit text files and format them with font,
Customize SAS Output Using ODS Joan Dong. The Output Delivery System (ODS) gives you greater flexibility in generating, storing, and reproducing SAS procedure.
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
ODS TAGSETS - a Powerful Reporting Method Derek. 2 Agenda Understanding the tagset How to use tagsets Conclusion.
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Microsoft Word 2007 In the Library at York College, all Windows computers have Microsoft Word 2007.
Excel Class Outline What is a spreadsheet? What can you do with them? The Cell - basic unit of a spreadsheet Making a Table - cells in Rows and Columns.
Behind the Scenes with SAS®: Using Customer Graphics in SAS® Output Louise Hadden Abt Associates Inc.
1 SAS ® ODS Technology for Today’s Decision Makers Sunil Gupta Quintiles.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 14 & 19 By Tasha Chapman, Oregon Health Authority.
Beautiful PROC CONTENTS Output Using the ODS Excel Destination Suzanne Dorinski SESUG 2015 Disclaimer: Any views expressed are those of the author and.
Android Online Training AcuteSoft: India: , Land Line: +91 (0) USA: , UK : +44.
Title (replace with abstract title)
Poster Title Researchers’/Presenters’ Names Pharmacologie cellulaire et moléculaire, Louvain Drug Research Institute, Université catholique de Louvain.
Chapter 5: Enhancing Your Output with ODS
With Microsoft FrontPage 2000
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Fonts, Pictures, Styles, Files, Spelling, and More!
Replace this text with your title Abstract Results Introduction
Replace This Text With Your Paper Title Replace This Text With Your Paper Title ID: XXXXX Firstname LASTNAME1, Firstname LASTNAME2, Firstname LASTNAME3.
SAS Output Delivery System
Chapter 1: Introduction to SAS
Tamara Arenovich Tony Panzarella
Beautiful PROC CONTENTS Output Using the ODS Excel Destination
Microsoft PowerPoint 2007 – Unit 2
Presentation transcript:

©Dofasco Inc., 2004 All rights reserved 1 Using the Output Delivery System October 22, 2004 Presentation to: The Toronto Area SAS Society

October 22, 2004 © Dofasco Inc All rights reserved 2 Agenda Introduction Introduction Book Review Book Review CD Book Review CD Book Review Some examples using ODS Some examples using ODS Summary Summary

October 22, 2004 © Dofasco Inc All rights reserved 3 Introduction Book Review: Quick Results with the Output Delivery System, Sunil Gupta, © 2003, SAS Institute Inc. Book Review: Quick Results with the Output Delivery System, Sunil Gupta, © 2003, SAS Institute Inc. CD Book Review: Instant ODS, Bernadette Johnson, © 2003, SAS Institute Inc. CD Book Review: Instant ODS, Bernadette Johnson, © 2003, SAS Institute Inc. Examples: Using ODS in some practical situations. Examples: Using ODS in some practical situations.

October 22, 2004 © Dofasco Inc All rights reserved 4 Quick Results with the Output Delivery System Beginner Level Beginner Level About 100 pages (just the right length) About 100 pages (just the right length) Well written Well written Clear Examples Clear Examples Logical Progression Logical Progression

October 22, 2004 © Dofasco Inc All rights reserved 5 Basic ODS Syntax ODS TRACE on / ; ODS destination ; ODS OUTPUT output-object-SAS-Data-Set-name ; ODS SELECT list ; your program ODS CLOSE ; ODS TRACE off;

October 22, 2004 © Dofasco Inc All rights reserved 6 Destinations What format do you want your report in? What format do you want your report in? HTML – web pages HTML – web pages PDF – acrobat reader PDF – acrobat reader RTF- document format RTF- document format Printer formats- PRINTER, PS, PCL Printer formats- PRINTER, PS, PCL LISTING- traditional SAS output LISTING- traditional SAS output MAIL- * not in book MAIL- * not in book ODS destination ; ODS destination ; (Remember to match the extension to the destination)

October 22, 2004 © Dofasco Inc All rights reserved 7 Objects Blocks of output created by SAS procedures. Blocks of output created by SAS procedures. Univariate: Univariate: Moments Moments BasicMeasures BasicMeasures TestsForLocation TestsForLocation Quantiles Quantiles ExtremeObs ExtremeObs ODS SELECT/EXCLUDE list ; ODS SELECT/EXCLUDE list ;

October 22, 2004 © Dofasco Inc All rights reserved 8 Inserting Graphs filename odsout 'h:\Sas'; filename odsout 'h:\Sas'; filename grafout 'h:\Sas'; filename grafout 'h:\Sas'; goptions reset=all device=html; goptions reset=all device=html; ODS HTML path=odsout gpath=grafout body="Test.htm"; ODS HTML path=odsout gpath=grafout body="Test.htm"; options ps=55 ls=80 nodate nonumber; options ps=55 ls=80 nodate nonumber; title 'Steel Export Levels'; title 'Steel Export Levels'; axis1 label=(a=-90 'Millions of Tons Exported'); axis1 label=(a=-90 'Millions of Tons Exported'); symbol1 v=none i=join l=1 w=3; symbol1 v=none i=join l=1 w=3; proc gchart data=sashelp.steel; proc gchart data=sashelp.steel; vbar date/discrete freq=steel raxis=axis1; vbar date/discrete freq=steel raxis=axis1; run; run; proc gplot data=sashelp.steel; proc gplot data=sashelp.steel; plot steel*date/ vaxis=axis1; plot steel*date/ vaxis=axis1; run; run; ODS HTML Close; ODS HTML Close; run; run; Note: We are using a SAS Sample Data Set found in SASHELP

October 22, 2004 © Dofasco Inc All rights reserved 9 Inserting Graphs BASE HTML FILE INDEX FILE VARIOUS GRAPHS

October 22, 2004 © Dofasco Inc All rights reserved 10 Viewing HTML Output

October 22, 2004 © Dofasco Inc All rights reserved 11 Instant ODS- Using Styles 50 pre-packaged styles in HTML, PDF and RTF format. 50 pre-packaged styles in HTML, PDF and RTF format. Step 1: Check the system requirements Step 1: Check the system requirements Step 2: Save the ODS library to a hard disk Step 2: Save the ODS library to a hard disk Step 3: Select a style Step 3: Select a style Step 4: Insert your code into the basic ODS code provided Step 4: Insert your code into the basic ODS code provided Step 5: Run program and enjoy results. Step 5: Run program and enjoy results.

October 22, 2004 © Dofasco Inc All rights reserved 12 Instant ODS- Using Styles Some notes: Some notes: Match the code to the style carefully Match the code to the style carefully When you use the code provided open in Notepad first (code_files folder on CD) and copy and paste into the editor When you use the code provided open in Notepad first (code_files folder on CD) and copy and paste into the editor Print the welcome.pdf file Print the welcome.pdf file The time savings is great for the price! The time savings is great for the price!

October 22, 2004 © Dofasco Inc All rights reserved 13 An Instant ODS Example Program: Program: ODS PATH (PREPEND) demo.ODS(READ); ODS PATH (PREPEND) demo.ODS(READ); GOPTIONS HSIZE=7 IN VSIZE=5IN; *size graphs 2.5in by 3.5in; GOPTIONS HSIZE=7 IN VSIZE=5IN; *size graphs 2.5in by 3.5in; ODS MARKUP ODS MARKUP TAGSET=web_graph_1 FRAME='h:\sas\demo\html-frame-tassdemo2.htm' TAGSET=web_graph_1 FRAME='h:\sas\demo\html-frame-tassdemo2.htm' BODY='h:\sas\demo\html-body-tassdemo2.htm' BODY='h:\sas\demo\html-body-tassdemo2.htm' CONTENTS='h:\sas\demo\html-table-contents-tassdemo2.htm' CONTENTS='h:\sas\demo\html-table-contents-tassdemo2.htm' GPATH='h:\sas\demo' (URL=NONE) ; GPATH='h:\sas\demo' (URL=NONE) ; goptions cback=cream; goptions cback=cream; title f=zapfb h=1.75 'Steel Exports in Millions of Tons'; title f=zapfb h=1.75 'Steel Exports in Millions of Tons'; symbol1 i=join l=1 w=4 v=none c=white; symbol1 i=join l=1 w=4 v=none c=white; axis1 label=(a=90 f=zapfb h=1.5 'Millions of Tons'); axis1 label=(a=90 f=zapfb h=1.5 'Millions of Tons'); axis2 label=(f=zapfb h=1.5 'Year' ); axis2 label=(f=zapfb h=1.5 'Year' ); proc gplot data=sashelp.steel; proc gplot data=sashelp.steel; plot steel*date/haxis=axis2 vaxis=axis1 cframe=cream; plot steel*date/haxis=axis2 vaxis=axis1 cframe=cream; run; run; ODS MARKUP CLOSE; ODS MARKUP CLOSE; Run; Run;

October 22, 2004 © Dofasco Inc All rights reserved 14 ODS Output

October 22, 2004 © Dofasco Inc All rights reserved 15 Do-it-yourself Example Step 1: Set up a new style template Step 1: Set up a new style template Program (Sets up a place to keep the style): Program (Sets up a place to keep the style): libname demo 'h:\sas\demo'; libname demo 'h:\sas\demo'; ods path demo.mytemp(update) sashelp.tmplmst(read); ods path demo.mytemp(update) sashelp.tmplmst(read); ODS PATH SHOW ; ODS PATH SHOW ; proc template; proc template; edit styles.default as styles.sc; edit styles.default as styles.sc; style data from cell /background=vligb; style data from cell /background=vligb; style header from headersandfooters background=vligb; style header from headersandfooters background=vligb;

October 22, 2004 © Dofasco Inc All rights reserved 16 Do-it-yourself Example Program cont’d (General Colors and Styles): Program cont’d (General Colors and Styles): style table from output / style table from output / background=black borderwidth=1 tagattr='align="left"'; background=black borderwidth=1 tagattr='align="left"'; style color_list / 'bgA' = ligb 'fgA2' = black style color_list / 'bgA' = ligb 'fgA2' = black 'fgA1'= black 'fga'= black; 'fgA1'= black 'fga'= black; style colors / style colors / 'contitlefg'=color_list('fgA2') 'contitlefg'=color_list('fgA2') 'confolderfg'=color_list('fgA2'); 'confolderfg'=color_list('fgA2'); style fonts / style fonts / 'headingFont' = ("Arial, Helvetica, Helv", 1, demi_bold) 'headingFont' = ("Arial, Helvetica, Helv", 1, demi_bold) 'docFont' = ("Arial, Helvetica, Helv",1,demi_bold) 'docFont' = ("Arial, Helvetica, Helv",1,demi_bold) 'titlefont' = ("Arial, Helvetica, Helv",1,bold); 'titlefont' = ("Arial, Helvetica, Helv",1,bold);

October 22, 2004 © Dofasco Inc All rights reserved 17 Do-it-yourself Example Program cont’d (Table of Contents): Program cont’d (Table of Contents): style contenttitle from indextitle /font=(arial,3,bold); style contenttitle from indextitle /font=(arial,3,bold); (Content Title) (Content Title) style contentproclabel from contentprocname /font=(arial,2); style contentproclabel from contentprocname /font=(arial,2); (Label replacing the procedure) (Label replacing the procedure) style contentprocname from indexprocname /font=(arial,2); style contentprocname from indexprocname /font=(arial,2); (The Procedure Name) (The Procedure Name) style Bycontentfolder from Bycontentfolder /font=(arial,2); style Bycontentfolder from Bycontentfolder /font=(arial,2); (The by-variable info) (The by-variable info) style contentitem from indexitem /font=(arial,2); style contentitem from indexitem /font=(arial,2); (The item is the list) (The item is the list)

October 22, 2004 © Dofasco Inc All rights reserved 18 Do-it-yourself Example Program cont’d (Table of Contents cont’d…): Program cont’d (Table of Contents cont’d…): style contentProcname from Indexprocname /bullet=none; style contentProcname from Indexprocname /bullet=none; style ByContentFolder from ContentFolder /Bullet = NONE style ByContentFolder from ContentFolder /Bullet = NONE ListEntryAnchor = yes ListEntryAnchor = yes PreHtml = _undef_ PreHtml = _undef_ PostHtml = _undef_; PostHtml = _undef_; Style ContentItem from IndexItem /Bullet = NONE Style ContentItem from IndexItem /Bullet = NONE ListEntryAnchor = yes ListEntryAnchor = yes PreHtml = _undef_ PreHtml = _undef_ PostHtml = _undef_ PostHtml = _undef_ pretext=" " pretext=" " posttext=" "; posttext=" ";

October 22, 2004 © Dofasco Inc All rights reserved 19 Do-it-yourself Example Program cont’d (Table of Contents cont’d…): Program cont’d (Table of Contents cont’d…): Style ContentTitle from IndexTitle / Style ContentTitle from IndexTitle / PRETEXT='MECHANICAL PROPERTIES BREAKDOWN FOR ALL TESTS'; PRETEXT='MECHANICAL PROPERTIES BREAKDOWN FOR ALL TESTS'; style contents from documents / style contents from documents / background=vligb; background=vligb; style table from output /outputwidth=10%; style table from output /outputwidth=10%; end; end; run; run;

October 22, 2004 © Dofasco Inc All rights reserved 20 Do-it-yourself Example The Log: The Log:

October 22, 2004 © Dofasco Inc All rights reserved 21 Do-it-yourself Example Using the style: Using the style: The program: The program: libname sasdata 'h:\sas\demo'; libname sasdata 'h:\sas\demo'; proc template; proc template; define style new; define style new; parent=styles.sc; parent=styles.sc; *Changing Title name of the table of contents; *Changing Title name of the table of contents; replace ContentTitle from IndexTitle / replace ContentTitle from IndexTitle / PRETEXT='2003 Summary-By Grade Group' PRETEXT='2003 Summary-By Grade Group' font=(arial,3,bold); font=(arial,3,bold); END; END; RUN; RUN;

October 22, 2004 © Dofasco Inc All rights reserved 22 Do-it-yourself Example The Program cont’d: The Program cont’d: options nocenter; options nocenter; filename odsout 'h:\sas\demo\'; filename odsout 'h:\sas\demo\'; ods listing close; ods listing close; ods html path=odsout ods html path=odsout contents="TassDemo_Contents.html contents="TassDemo_Contents.html frame="TassDemo_Frame.html" frame="TassDemo_Frame.html" body="TassDemo_Body.html“ newfile=output style=new; body="TassDemo_Body.html“ newfile=output style=new; ODS PROCLABEL 'BY GRADE GROUP'; ODS PROCLABEL 'BY GRADE GROUP'; options pageno=1 device=win; options pageno=1 device=win; title1 'MECHANICAL PROPERTIES Jan to Dec' ; title1 'MECHANICAL PROPERTIES Jan to Dec' ; TITLE2 ; TITLE2 ; FOOTNOTE1 'Note: Includes all test results'; FOOTNOTE1 'Note: Includes all test results';

October 22, 2004 © Dofasco Inc All rights reserved 23 Do-it-yourself Example The Program cont’d: The Program cont’d: proc tabulate data=demo.test2 contents=''; proc tabulate data=demo.test2 contents=''; class GradeGrp GradeNo StdCode DirectCd class GradeGrp GradeNo StdCode DirectCd DispCd TempNo TemperCd ThickRange; DispCd TempNo TemperCd ThickRange; var Yield TensileA ElongB Mech1020 ; var Yield TensileA ElongB Mech1020 ; keylabel mean='Avg'; keylabel mean='Avg'; label DispCd= 'Dispo'; label DispCd= 'Dispo'; table GradeGrp=“", all GradeNo='GRADE'* ThickRange='THICKNESS'* table GradeGrp=“", all GradeNo='GRADE'* ThickRange='THICKNESS'* TempNo='TEMP'* TemperCD='CW'* DirectCd='DIR'* TempNo='TEMP'* TemperCD='CW'* DirectCd='DIR'* StdCode='STDC'* (all DispCd), StdCode='STDC'* (all DispCd), Yield='YIELD'*(n*f=4.0 mean*f=5.1 std*f=4.1 min*f=5.1 max*f=5.1) Yield='YIELD'*(n*f=4.0 mean*f=5.1 std*f=4.1 min*f=5.1 max*f=5.1) TensileA='TENSILE'*(mean*f=5.1 std*f=4.1 min*f=5.1 max*f=5.1) TensileA='TENSILE'*(mean*f=5.1 std*f=4.1 min*f=5.1 max*f=5.1) ElongB='ELONGATION'*(mean*f=5.1 std*f=4.1 min*f=5.1 max*f=5.1) ElongB='ELONGATION'*(mean*f=5.1 std*f=4.1 min*f=5.1 max*f=5.1) Mech1020='MECHVAL'*(mean*f=5.3 std*f=5.3 min*f=5.3 max*f=5.3) Mech1020='MECHVAL'*(mean*f=5.3 std*f=5.3 min*f=5.3 max*f=5.3) /condense misstext='-' contents=‘ ' ; /condense misstext='-' contents=‘ ' ; run; run; ods html close; ods html close; ods listing; ods listing;

October 22, 2004 © Dofasco Inc All rights reserved 24 Do-it-yourself Example The Output: The Output:

October 22, 2004 © Dofasco Inc All rights reserved 25 Do-it-yourself Example

October 22, 2004 © Dofasco Inc All rights reserved 26 Instant ODS Example The Output using an ODS template: The Output using an ODS template:

October 22, 2004 © Dofasco Inc All rights reserved 27 Instant ODS Example

October 22, 2004 © Dofasco Inc All rights reserved 28 Summary Quick Results using the Output Delivery System Quick Results using the Output Delivery System Instant ODS Instant ODS Do-it-yourself Example Do-it-yourself Example Instant ODS Example Instant ODS Example

October 22, 2004 © Dofasco Inc All rights reserved 29 Questions? Contact information: Lesley Harschnitz- Sandra Cunningham-