SAS training just got a little more Excel-friendly

"Can you show me how to view my SAS data and report output in Excel?" has been a popular question with SAS programming students. In this brief Q&A, instructor Theresa Stemler, shares some news that should be music to the ears of anyone who wants to learn how to view SAS datasets or reports in Microsoft® Excel:

SAS instructor Theresa Stemler; image
How did the development of the new Exporting SAS Data Sets and Creating ODS Files for Microsoft Excel training course come about?

SAS Training has touched on techniques for viewing SAS dataset and report output in Excel in a few of our courses in the past, however, many of our students have given us feedback that they’d like more in-depth coverage on this topic in class.  Based on that feedback, we moved forward to develop a new course exclusively devoted to the topic.  After working for six months on development, I’m really excited about teaching the course to students this year.

Which type of student could benefit from the new course?

We recommend this course to users who have been writing SAS programs for at least six months or who have taken our SAS Programming 1: Essentials course, but, students who’ve taken our Statistics 1: Intro to ANOVA, Regression and Logistic Regression could also benefit.

Really, this course could be helpful to all SAS users outside of the BI environment who need to view SAS datasets or SAS reports in Excel.  Inside the BI environment, there’s a different way to accomplish getting SAS information into Excel, and our Accessing SAS from the Microsoft Office Applications course addresses that approach.

What are some of the most popular techniques that students will learn in the new course?

Students often want to know how to control the formatting that shows in Excel.  In the course, we’ll show them how to preserve leading zeros and specify date formats using several different techniques.  Another task students often ask about is how to customized worksheet names.  In class, we discuss several methods for customizing worksheet names.  Overall, students who take the course will learn six distinct methods that show the latest techniques to export SAS data sets and create ODS files for Excel.

Can you share a quick tip from the new course? 

Let’s say you’re working in SAS and you quickly need to make a CSV file from PROC MEANS output to send to your boss. Instead of using the default destinations in EG or SAS Display Manager, you could do this:

ODS CSVALL file='c:\temp\myreport.csv';
proc means data=sashelp.class min mean max median;
  var height weight;
  class sex;
  ‘Summary Statistics for SASHELP.CLASS’;


Then run your code, go to your C: drive to send the file to your boss.

You can learn about this topic and more in the new Exporting SAS Data Sets and Creating ODS Files for Microsoft Excel course.

tags: SAS data in Microsoft Excel, SAS output in Microsoft Excel, SAS reports in Microsoft Excel, View SAS in Excel


  1. Sunil Gupta
    Posted March 1, 2013 at 9:55 am | Permalink

    Thanks for the useful tip!

  2. Posted March 25, 2013 at 12:07 pm | Permalink

    Is this going to include the topic about creating mulitple tabs output in excel?, please advise.

    • Ruth Dobson-Torres Ruth Dobson-Torres
      Posted March 26, 2013 at 2:04 pm | Permalink

      Yes, Helen. According to Theresa, the course shows several different ways to create multiple worksheets in a workbook.

One Trackback

  1. [...] this previous blog, I conducted a Q&A interview with SAS instructor Theresa Stemler about the new Exporting SAS [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>