1
DV-323
Tales From a Tech Support Guy: The Top Ten Most Impactful Reporting
and Data Analytic Features for SAS Programmers
Chevell Parker, SAS Institute Inc.
ABSTRACT
This paper helps you get the most out of SAS software by discussing some features that can make a big
impact on your job as a SAS programmer or a data analyst. Some of the areas covered include the
following:
• features that highlight the power of SAS reporting, which allow SAS programmers to generate
customized reports
• SAS integration with open-source tools, as well as automation
• some of the most impactful features in SAS
®
Viya
®
INTRODUCTION
SAS®9 and the SAS Viya platform have the capability of answering some of the most complex business
problems. This paper covers topics and methods that address these convoluted questions. The paper
covers key topics within the SAS language and is organized to build on earlier examples. These topics
include the following: reporting needs, programming automation, SAS integration with open source,
reading files of various formats, SAS Viya features and functionality, and more.
1. USING THE OUTPUT DELIVERY SYSTEM
The most fundamental part of the Output Delivery System (ODS) is the output object. An output object is
created when a template definition is combined with data that is generated when a DATA step or
procedure is executed. This output object is then sent to the open destination. In the current releases of
SAS®9 and SAS Viya, the default destination is the HTML5 destination for SAS
®
Studio, SAS
®
Enterprise
Guide
®
, and HTML4 for the SAS display manager. Note that ODS is not limited to generating HTML, but it
is the default destination.
Some of the formats that can be requested by the clients or by using the ODS statements include XLSX,
PDF, PPTX, DOCX, XML, Output, RTF, CSV, and more. Along with the many ODS destinations that can
be generated from this output object, the TEMPLATE procedure provides the styling component with the
formatted destinations.
ODS EXCEL
The ODS Excel destination generates output in the Microsoft Office Open XML SpreadsheetML file
format (XLSX). This destination automates the generation of Microsoft Excel worksheets directly from
SAS®9 and SAS Viya by creating presentation-ready Excel spreadsheets. There are many highlights of
this destination, but none are more important than the ability to eliminate manual work. Some of the most
used functionality that the options supply includes the ability to name and color worksheet tabs, freeze
row and column headers, add filters, start output in specific locations, and more. Other functionality
includes the ability to add graphics using both SAS/GRAPH
®
and ODS Graphics, add formulas, and add
multiple worksheets per workbook. Example 1 shows how you can use this destination to create
customized output similar to Output 1 below.