Creating the Perfect Table Using ODS to PDF in SAS 9.4®

Elizabeth Dennis, EMB Statistical Solutions
Maddy Dennis, Pharmapace
PharmaSUG 2015
Paper #QT07
 Converting RTF output to PDF output results in
unwanted format changes
 Using Proc Report code developed for ODS to
RTF on ODS to PDF results in unwanted format
changes
 Best results come from ODS to PDF
2
3
 The paper contains a Proc Template example
which meets the FDA requirements for version of
Adobe, fonts, margins, etc.
 The paper contains an ODS to PDF statement
which meets the FDA requirements for page
orientation, bookmarks, navigation tab, etc.
4
5
 Unicode symbols work as expected
 A helpful table of all possible unicode symbols can
be found on wikipedia
title5 j=c "Subjects ~{unicode 2265}50
Years of Age";
6
 The bottom border of the cell must be drawn to
underline the spanning text
Column ("~S={borderbottomcolor=black
borderbottomwidth=.5} Cycle 1
Treatment" col1-col3);
7
 Printing a line as the first footnote which spans the
entire table layout
footnote "~{style [outputwidth=100%
bordertopcolor=black
Bordertopwidth=.1pt]}";
8
 Some exist as unicodes, so that is an option
 ~{super} and ~{sub} work, but the result is abnormally
small
 The best results come from offsetting the text, slightly
above or below the line
col1='Age~-12y~{style[font_size=7pt]a}';
col1='t~7y~{style[font_size=7pt]max}';
9
 If a categorical cell has a count of zero,
then zero should print with no percentage
 The zero should align with other counts
 When both categorical and continuous data are on
one table, decimals should still be aligned
 These can all be achieved using 2 columns, one
for counts or descriptive statistics, and one for
percentages
 The template uses (cellpadding=0) so the 2
columns appear as one continuous column
10
define col2/ display "Drug(N="
style(header)=[just=right]
style(column)=[just=d
cellwidth=8% ];
define col3/ display "~{nbspace1}A&n1)"
style(header)=[just=left]
style(column)=[just=d
cellwidth=8%
rightmargin=.3in];
11
 Adding blank spaces
col1=‘~_ ~_ ~_ ~_Males’;
col1=‘~{nbspace 4}Males’;
 Adding blank lines
col2=AESTDTC || ‘/~n || AEENDTC ;
col2=AESTDTC || ‘/~{newline 1}’|| AEENDTC;
12
Name: Elizabeth Dennis
Organization: EMB Statistical Solutions LLC
City, State: Overland Park, KS
E-mail: edennis@embstats.com
Name: Maddy Dennis
Organization: Pharmapace
City, State: San Diego, CA
E-mail: madison.dennis@pharmapace.com
13
1 of 13

Recommended

SAS Modernization Webinar by
SAS Modernization WebinarSAS Modernization Webinar
SAS Modernization Webinard-Wise Technologies
688 views17 slides
Consolidate SAS 9.4 workloads with Intel Xeon processor E7 v3 and Intel SSD t... by
Consolidate SAS 9.4 workloads with Intel Xeon processor E7 v3 and Intel SSD t...Consolidate SAS 9.4 workloads with Intel Xeon processor E7 v3 and Intel SSD t...
Consolidate SAS 9.4 workloads with Intel Xeon processor E7 v3 and Intel SSD t...Principled Technologies
466 views35 slides
Sas Grid Migration and Roadmap by
Sas Grid Migration and RoadmapSas Grid Migration and Roadmap
Sas Grid Migration and Roadmapd-Wise Technologies
584 views1 slide
Breaking Free from Bootstrap: Custom Responsive Grids with Sass Susy by
Breaking Free from Bootstrap: Custom Responsive Grids with Sass SusyBreaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
Breaking Free from Bootstrap: Custom Responsive Grids with Sass SusyJames Steinbach
48.1K views28 slides
SAS MDM TRAINING ,SAS MDM SYLLABUS by
SAS MDM TRAINING ,SAS MDM SYLLABUSSAS MDM TRAINING ,SAS MDM SYLLABUS
SAS MDM TRAINING ,SAS MDM SYLLABUSbidwhm
538 views19 slides
ChatGPT and the Future of Work - Clark Boyd by
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
22K views69 slides

More Related Content

Recently uploaded

BODY COMPOSITION.pptx by
BODY COMPOSITION.pptxBODY COMPOSITION.pptx
BODY COMPOSITION.pptxAneriPatwari
33 views46 slides
DEBATE IN CA BLADDER TMT VS CYSTECTOMY by
DEBATE IN CA BLADDER TMT VS CYSTECTOMYDEBATE IN CA BLADDER TMT VS CYSTECTOMY
DEBATE IN CA BLADDER TMT VS CYSTECTOMYKanhu Charan
38 views42 slides
CRANIAL NERVE EXAMINATION.pptx by
CRANIAL NERVE EXAMINATION.pptxCRANIAL NERVE EXAMINATION.pptx
CRANIAL NERVE EXAMINATION.pptxNerusu sai priyanka
175 views30 slides
NMP-9.pptx by
NMP-9.pptxNMP-9.pptx
NMP-9.pptxSai Sailesh Kumar Goothy
16 views46 slides
PCD Pharma Franchise In Chandigarh | Saphnix Lifesciences by
PCD Pharma Franchise In Chandigarh | Saphnix LifesciencesPCD Pharma Franchise In Chandigarh | Saphnix Lifesciences
PCD Pharma Franchise In Chandigarh | Saphnix LifesciencesSaphnix Lifesciences
8 views7 slides
VarSeq 2.5.0: VSClinical AMP Workflow from the User Perspective by
VarSeq 2.5.0: VSClinical AMP Workflow from the User PerspectiveVarSeq 2.5.0: VSClinical AMP Workflow from the User Perspective
VarSeq 2.5.0: VSClinical AMP Workflow from the User PerspectiveGolden Helix
70 views24 slides

Recently uploaded(20)

DEBATE IN CA BLADDER TMT VS CYSTECTOMY by Kanhu Charan
DEBATE IN CA BLADDER TMT VS CYSTECTOMYDEBATE IN CA BLADDER TMT VS CYSTECTOMY
DEBATE IN CA BLADDER TMT VS CYSTECTOMY
Kanhu Charan38 views
VarSeq 2.5.0: VSClinical AMP Workflow from the User Perspective by Golden Helix
VarSeq 2.5.0: VSClinical AMP Workflow from the User PerspectiveVarSeq 2.5.0: VSClinical AMP Workflow from the User Perspective
VarSeq 2.5.0: VSClinical AMP Workflow from the User Perspective
Golden Helix70 views
sales forecasting (Pharma) by sristi51
sales forecasting (Pharma)sales forecasting (Pharma)
sales forecasting (Pharma)
sristi518 views
Myocardial Infarction Nursing.pptx by Asraf Hussain
Myocardial Infarction Nursing.pptxMyocardial Infarction Nursing.pptx
Myocardial Infarction Nursing.pptx
Asraf Hussain13 views
melani glossophobia.pdf by Paygeon
melani glossophobia.pdfmelani glossophobia.pdf
melani glossophobia.pdf
Paygeon9 views
LMLR 2023 Back and Joint Pain at 50 by Allan Corpuz
LMLR 2023 Back and Joint Pain at 50LMLR 2023 Back and Joint Pain at 50
LMLR 2023 Back and Joint Pain at 50
Allan Corpuz328 views
BUKTI SOSIALISASI KODE ETIK DAN PERATURAN INTERNAL.docx 4,2,C.docx by InkhaRina
BUKTI SOSIALISASI KODE ETIK DAN PERATURAN INTERNAL.docx 4,2,C.docxBUKTI SOSIALISASI KODE ETIK DAN PERATURAN INTERNAL.docx 4,2,C.docx
BUKTI SOSIALISASI KODE ETIK DAN PERATURAN INTERNAL.docx 4,2,C.docx
InkhaRina35 views
Top 10 Pharma Companies in Mumbai | Medibyte by Medibyte Pharma
Top 10 Pharma Companies in Mumbai | MedibyteTop 10 Pharma Companies in Mumbai | Medibyte
Top 10 Pharma Companies in Mumbai | Medibyte
Medibyte Pharma21 views
The Art of naming drugs.pptx by DanaKarem1
The Art of naming drugs.pptxThe Art of naming drugs.pptx
The Art of naming drugs.pptx
DanaKarem110 views
The relative risk of cancer from smoking and vaping nicotine by yfzsc5g7nm
The relative risk of cancer from smoking and vaping nicotine The relative risk of cancer from smoking and vaping nicotine
The relative risk of cancer from smoking and vaping nicotine
yfzsc5g7nm181 views
Complications & Solutions in Laparoscopic Hernia Surgery.pptx by Varunraju9
Complications & Solutions in Laparoscopic Hernia Surgery.pptxComplications & Solutions in Laparoscopic Hernia Surgery.pptx
Complications & Solutions in Laparoscopic Hernia Surgery.pptx
Varunraju9113 views

Featured

How to have difficult conversations by
How to have difficult conversations How to have difficult conversations
How to have difficult conversations Rajiv Jayarajah, MAppComm, ACC
4.6K views19 slides
Introduction to Data Science by
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
82.2K views51 slides
Time Management & Productivity - Best Practices by
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
169.7K views42 slides
The six step guide to practical project management by
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
36.6K views27 slides
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright... by
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
12.6K views21 slides
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
55.4K views138 slides

Featured(20)

Time Management & Productivity - Best Practices by Vit Horky
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky169.7K views
The six step guide to practical project management by MindGenius
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius36.6K views
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright... by RachelPearson36
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson3612.6K views
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by Applitools
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools55.4K views
12 Ways to Increase Your Influence at Work by GetSmarter
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter401.6K views
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G... by DevGAMM Conference
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference3.6K views
Barbie - Brand Strategy Presentation by Erica Santiago
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago25.1K views
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well by Saba Software
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software25.2K views
Introduction to C Programming Language by Simplilearn
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn8.4K views
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr... by Palo Alto Software
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
Palo Alto Software88.3K views
9 Tips for a Work-free Vacation by Weekdone.com
9 Tips for a Work-free Vacation9 Tips for a Work-free Vacation
9 Tips for a Work-free Vacation
Weekdone.com7.2K views
How to Map Your Future by SlideShop.com
How to Map Your FutureHow to Map Your Future
How to Map Your Future
SlideShop.com275.1K views
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -... by AccuraCast
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...
AccuraCast3.4K views
Exploring ChatGPT for Effective Teaching and Learning.pptx by Stan Skrabut, Ed.D.
Exploring ChatGPT for Effective Teaching and Learning.pptxExploring ChatGPT for Effective Teaching and Learning.pptx
Exploring ChatGPT for Effective Teaching and Learning.pptx
Stan Skrabut, Ed.D.57.6K views

Creating the Perfect Table Using ODS to PDF in SAS 9.4®

  • 1. Elizabeth Dennis, EMB Statistical Solutions Maddy Dennis, Pharmapace PharmaSUG 2015 Paper #QT07
  • 2.  Converting RTF output to PDF output results in unwanted format changes  Using Proc Report code developed for ODS to RTF on ODS to PDF results in unwanted format changes  Best results come from ODS to PDF 2
  • 3. 3
  • 4.  The paper contains a Proc Template example which meets the FDA requirements for version of Adobe, fonts, margins, etc.  The paper contains an ODS to PDF statement which meets the FDA requirements for page orientation, bookmarks, navigation tab, etc. 4
  • 5. 5
  • 6.  Unicode symbols work as expected  A helpful table of all possible unicode symbols can be found on wikipedia title5 j=c "Subjects ~{unicode 2265}50 Years of Age"; 6
  • 7.  The bottom border of the cell must be drawn to underline the spanning text Column ("~S={borderbottomcolor=black borderbottomwidth=.5} Cycle 1 Treatment" col1-col3); 7
  • 8.  Printing a line as the first footnote which spans the entire table layout footnote "~{style [outputwidth=100% bordertopcolor=black Bordertopwidth=.1pt]}"; 8
  • 9.  Some exist as unicodes, so that is an option  ~{super} and ~{sub} work, but the result is abnormally small  The best results come from offsetting the text, slightly above or below the line col1='Age~-12y~{style[font_size=7pt]a}'; col1='t~7y~{style[font_size=7pt]max}'; 9
  • 10.  If a categorical cell has a count of zero, then zero should print with no percentage  The zero should align with other counts  When both categorical and continuous data are on one table, decimals should still be aligned  These can all be achieved using 2 columns, one for counts or descriptive statistics, and one for percentages  The template uses (cellpadding=0) so the 2 columns appear as one continuous column 10
  • 11. define col2/ display "Drug(N=" style(header)=[just=right] style(column)=[just=d cellwidth=8% ]; define col3/ display "~{nbspace1}A&n1)" style(header)=[just=left] style(column)=[just=d cellwidth=8% rightmargin=.3in]; 11
  • 12.  Adding blank spaces col1=‘~_ ~_ ~_ ~_Males’; col1=‘~{nbspace 4}Males’;  Adding blank lines col2=AESTDTC || ‘/~n || AEENDTC ; col2=AESTDTC || ‘/~{newline 1}’|| AEENDTC; 12
  • 13. Name: Elizabeth Dennis Organization: EMB Statistical Solutions LLC City, State: Overland Park, KS E-mail: edennis@embstats.com Name: Maddy Dennis Organization: Pharmapace City, State: San Diego, CA E-mail: madison.dennis@pharmapace.com 13

Editor's Notes

  1. More often, clients have requested PDF output. Most programmers have mastered the ODS to RTF code, but different techniques are necessary to produce the identical table format in PDF.
  2. When converting RTF output to PDF, the most common issue is that underlines that are no longer visible. One issue with using Proc Report code developed for RTF on PDF output is that not all ODS escape characters work with the page x of y statement.
  3. Clearer code when inserting multiple spaces or rows. It also has the advantage of being more human-readable.