MASUG December 5, 2005. Agenda Announcements Announcements Tips & Tricks Tips & Tricks Presentation: Presentation: Working Smarter, Not Harder with DDE:

Slides:



Advertisements
Similar presentations
Examples from SAS Functions by Example Ron Cody
Advertisements

A “LOTTO” SAS for you! or, “Check Your Balls with SAS Arrays” By Keith McWhorter Georgia Technology Authority January 30, 2007.
Outline Proc Report Tricks Kelley Weston. Outline Examples 1.Text that spans columnsText that spans columns 2.Patient-level detail in the titlesPatient-level.
Course ILT Modifying presentations Unit objectives Create a presentation based on a template and apply a template to an existing presentation Identify.
Working Smarter, Not Harder with DDE: Did I Really Spend All That Time Just Formatting My Report? Bobby Kidd Vice President Senior Statistical Portfolio.
PHP (2) – Functions, Arrays, Databases, and sessions.
Enough really good SAS ® tips to fill a book Arthur Tabachneck, President and CEO, myqna.org.
Microsoft Access Exporting Access Data and Mail Merging.
Introduction to SQL Session 1 Retrieving Data From a Single Table.
Basic And Advanced SAS Programming
Let SAS Do the Coding for You! Robert Williams Business Info Analyst Sr. WellPoint Inc.
PROC_CODEBOOK: An Automated, General Purpose Codebook Generator
How to Build Tabular Dashboards Using Proc Report
Data Cleaning 101 Ron Cody, Ed.D Robert Wood Johnson Medical School Piscataway, NJ.
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.
Inti Online Login Page (Lecturer/Student/Administrator View)
SAS SQL SAS Seminar Series
A Concise Display of Multiple Response Items Patrick Thornton.
Different Decimal Places For Different Laboratory Tests PharmaSug 2004, TT01 A. Cecilia Mauldin.
An Animated Guide©: Sending SAS files to Excel Concentrating on a D.D.E. Macro.
Niraj J. Pandya, Element Technologies Inc., NJ.  Summarize all possible combinations of class level variables even if few categories are altogether missing.
Tips & Tricks MASUG02/18/2005. Multiple Graphs on One Page.
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.
Essential ODS PDF Patrick Thornton.
SAS Efficiency Techniques and Methods By Kelley Weston Sr. Statistical Programmer Quintiles.
1 Back Up with Each Submit One approach for keeping a dynamic back up copy of your current work.
01/20151 EPI 5344: Survival Analysis in Epidemiology SAS code and output February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
Macro Overview Mihaela Simion. Macro Facility Overview Definition : The SAS Macro Facility is a tool within base SAS software that contains the essential.
1 SAS 1-liners SAS Coding Efficiencies. 2 Overview Less is more Always aim for robust, reusable and efficient code Coding efficiency versus processing.
SAS Software Version 8 The Output Delivery System.
1 Efficient SAS Coding with Proc SQL When Proc SQL is Easier than Traditional SAS Approaches Mike Atkinson, May 4, 2005.
1 Filling in the blanks with PROC FREQ Bill Klein Ryerson University.
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 ;
MASUG March 10, 2006 at FedEx. Agenda Announcements Announcements Tips & Tricks Tips & Tricks Lisa Horwitz from SAS Lisa Horwitz from SAS.
Tips & Tricks From your fellow SAS users 9/30/2004.
MASUG September 15, Agenda  Guest Introductions  John Boling – SAS inSchool  Tim Garton – Health Forecasts  Announcements  Tips & Tricks 
YET ANOTHER TIPS, TRICKS, TRAPS, TECHNIQUES PRESENTATION: A Random Selection of What I Learned From 15+ Years of SAS Programming John Pirnat Kaiser Permanente.
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.
Computing with SAS Software A SAS program consists of SAS statements. 1. The DATA step consists of SAS statements that define your data and create a SAS.
Copyright © 2004, SAS Institute Inc. All rights reserved. SASHELP Datasets A real life example Barb Crowther SAS Consultant October 22, 2004.
Evolution of The Interaction Point to SLAC Today (daily /web newspaper) Ruth McDunn Senior Web Information Specialist Stanford Linear Accelerator.
MASUG May 19, I’d like to say… Thank You! to SAS for sponsoring the food this evening.
ODS TAGSETS - a Powerful Reporting Method Derek. 2 Agenda Understanding the tagset How to use tagsets Conclusion.
Using Dictionary Tables to Profile SAS Datasets By Phillip Julian February 11, 2011.
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.
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.
Working Efficiently with Large SAS® Datasets Vishal Jain Senior Programmer.
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 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.
Dan Hakimzadeh Agenda ● A Fistful of Photos ● For a Few Photos More ● The Good, The Bad, and The Templates.
Session 1 Retrieving Data From a Single Table
Introduction to the MS Word template for IEEE standards drafts
PROC DOC III: Self-generating Codebooks Using SAS®
صندوق ضمانت سرمایه گذاری صنایع کوچک
Chance to make SAS-L History!
Examining model stability, an example
Let’s Talk About Variable Attributes
Trigger %macro check_trigger_run;
Richard DeVenezia Programmer Analyst, Johnson & Johnson
Tips and Tricks for Using Macros to Automate SAS Reporting.
Presentation Title By : Urppt.com Date : January 201X
Presentation transcript:

MASUG December 5, 2005

Agenda Announcements Announcements Tips & Tricks Tips & Tricks Presentation: Presentation: Working Smarter, Not Harder with DDE: Did I Really Spend All That Time Formatting My Report in Excel? Working Smarter, Not Harder with DDE: Did I Really Spend All That Time Formatting My Report in Excel? Giveaways Giveaways Next Meeting Next Meeting

Announcements SAS Training Center at U of M – if interested in registering, need to do so approx. 3 weeks prior to course date. SAS Training Center at U of M – if interested in registering, need to do so approx. 3 weeks prior to course date. SUGI 31 – San Francisco March 26-29, 2006 SUGI 31 – San Francisco March 26-29, 2006

Tips & Tricks Using Macro Variables for Automation – Michael Bates Using Macro Variables for Automation – Michael Bates

When Proc Print Isn’t Enough MASUG Tips & Tricks Dec 5, 2005 Walt Smith FedEx

When you want to send a simple report Proc print handles simple tables quite well The simple output is just a bit plain (as it should be) SAS 9 allows style changes that are easily accessible No need for proc template and all that scary stuff!

The plain example title1 "Ground History Update"; proc print label; var packages netrev adv adr yld wpp; var packages netrev adv adr yld wpp; by notsorted svctxt; by notsorted svctxt; id date; id date;run;

The result:

Now add some style: ods html file="Ground_Update.html" style=styles.sasweb; options missing=' '; title1 "Ground History Update"; proc print label style( header ) = { background=cxadbade foreground=black } ; style( header ) = { background=cxadbade foreground=black } ; var packages netrev; var packages netrev; var adv adr / var adv adr / style( data ) = { background=cxffbb33 foreground=black } ; style( data ) = { background=cxffbb33 foreground=black } ; var yld wpp ; var yld wpp ; by notsorted svctxt; by notsorted svctxt; id date / id date / style( data ) = { background=cxadbade foreground=black } style( data ) = { background=cxadbade foreground=black } style( header ) = { background=cxadbade foreground=black } ; style( header ) = { background=cxadbade foreground=black } ;run; ods html close; filename mail subject="Monthly Update"; data _null_; file mail; file mail; put "!EM_ATTACH!('Ground_Update.html')"; put "!EM_ATTACH!('Ground_Update.html')";run;

The result:

Tips & Tricks Getting variable names into a macro variable: Getting variable names into a macro variable: proc contents data = my_dataset noprint out = my_outset; run; proc sql noprint; select distinct name into :varnames separated by ‘ ‘ from my_outset order by varnum; quit;

Tips & Tricks Using only some variables: Using only some variables: proc sql noprint; select distinct name into :varnames3 separated by ' and ' from my_outset where varnum in (1, 2, 4) order by varnum; quit;

Tips & Tricks Using only some variables cont’d: Using only some variables cont’d: %put &varnames3; id and gender and j_class

Tips & Tricks Creating an index Creating an index PROC SQL; CREATE INDEX CATEGORY ON libref.MOVIES; QUIT;

Tips & Tricks Creating a compound index Creating a compound index PROC SQL; CREATE INDEX CATRATE ON libref.MOVIES (CATEGORY, RATING); QUIT;

Tips & Tricks Removing an index * Removing an index * PROC SQL; DROP INDEX CATRATE FROM libref.MOVIES; QUIT; * Previous 3 slides adapted from Sample 1557: Exploring the World of Indexes by Kirk Paul Lafler on support.sas.com

Our Main Presentation

Free Stuff

Next Meeting Tentative location – FedEx Tentative location – FedEx Would like to invite SAS speaker Would like to invite SAS speaker Topics of interest? Topics of interest? Will be back to Thursday 3-5pm Will be back to Thursday 3-5pm Other suggestions? Other suggestions?