Choosing the Best Method to Create an Excel Report Romain Miralles, Clinovo, Sunnyvale, CA
|
|
|
- Calvin Lambert
- 10 years ago
- Views:
Transcription
1 Choosing the Best Method to Create an Excel Report Romain Miralles, Clinovo, Sunnyvale, CA ABSTRACT PROC EXPORT, LIBNAME, DDE or excelxp tagset? Many techniques exist to create an excel file using SAS. Which one is the best one? Well, it depends; each of them offers some unique advantages. LIBNAME statement is a new and useful option available with SAS 9 but old methods like DDE are still very powerful and offer some unique capabilities. Knowing and understanding the different techniques is essential for SAS programmers to quickly and effectively produce a report that will meet the requirement provided by the customer. This paper will briefly describe the main techniques to generate an excel file from SAS, and provide recommendations on the appropriate method to use when an excel output must be created. INTRODUCTION SAS programmers often have to prepare reports and listings for customers. Multiple methods exist in SAS to program listings and reports. Choosing the best technique does not necessarily mean selecting the most powerful solution. The role of the SAS programmer is to determine the best technique to use for a project taking into consideration the customer s needs, constraints, and time frame. Many clients are also required to have an Excel version of the output. They want to be able to view, sort and filter the data, and Excel is usually the tool they master best. In addition, Excel is an excellent means to share information. We will see in this paper the techniques available to generate Excel reports using SAS, we will explain the different functionalities, and weigh the pros and cons of each solution depending on the purpose and requirements. PROC EXPORT PROC EXPORT is the most common way to export a SAS dataset to a Microsoft Excel document. Its simple syntax makes it easy to use. Usually, it is the first method from which a SAS programmer will learn to export data. It is a basic technique that proves useful in many situations. SYNTAX proc export data = wuss.wuss dbms=excel outfile = "c:\wuss2010.xls" replace; sheet='wuss'; data: SAS dataset to export. outfile: Path and filename for the output. dbms: To create an Excel file, DBMS option needs to be set to Excel. replace: Overwrites an existing file. sheet: Sheet name in Excel. If this option is not included, then a sheet name based on DATA= will be created. PROC EXPORT can be used in 2 different ways: - First, we can use it to create an Excel file with the data from the dataset. With this method, it is not possible to format the output. - The second solution is to use an Excel template and to populate the file with data from the dataset. An Excel document is saved on the computer and the columns are formatted as needed. Then the path and filename of the Excel template are entered in the proc export outfile parameter. 1
2 Figure 1. PROC EXPORT output without using a template. Variable labels are not exported. Figure 2. PROC EXPORT using a pre-formatted template. You might encounter the following error message when using PROC EXPORT with an Excel template: - ERROR: Error attempting to CREATE a DBMS table. ERROR: Execute: Too many fields defined. WARNING: File deletion failed for _IMEX_.wuss.DATA. ERROR: Export unsuccessful. See SAS Log for details. This message means that you are trying to export more columns than the number of columns defined in your named range. To resolve this issue, you need to change your named range in Excel (named ranges are further described in the LIBNAME engine section). Named range issues can also generate incorrect reports. For Instance, in the Figure 3 below, an unexpected tab appears. This error implies you need to check the named range. Figure 3. Named range is not defined properly in the Excel template. PROC EXPORT does not populate the existing tab and create a new one. 2
3 WHEN TO USE IT PROC EXPORT is a good method for easy data manipulation. The Excel file can have one or multiple spreadsheets. However, it is impossible to create elaborated reports that will impress customers. PROC EXPORT is a good technique if the customer expects a simple listing developed quickly with limited formatting. Many programmers only use PROC EXPORT and Export Wizard to create Excel reports. This is a good solution overall, but in many situations other techniques can produce a better result and broaden the horizons of SAS programmers. LIMITATIONS Customization of a report is limited even when using an Excel template. PROC EXPORT starts in the default, top, left cell (A1) and fills out the necessary rows and columns. Moreover, PROC EXPORT cannot use the SAS labels as column names in Excel unless you are using SAS 9.2. This limits the use of PROC EXPORT for report programming. Typically, users have no knowledge of the SAS dataset structure and SAS variable names are not meaningful to them. In addition, variable names in SAS have restrictions that column labels don t share. The order of columns in the exported worksheet is the same as the order of variables in the original dataset. Variables need to be ordered before using the PROC EXPORT. All the variables existing in the dataset will be output using this technique. EXCELXP TAGSET Using ExcelXP tagset is a technique available in SAS version 9.1. It utilizes the Extended Markup Language (XML) but does not require SAS programmers to know XML. Using the ExcelXP Tagset is a powerful method for formatting a spreadsheet. It is used much like the ODS HTML destination. Common ODS options can be used as well as many other helpful options. ExcelXP tagset is different from the other techniques described in this paper in that it doesn t need an Excel template to create a formatted report. It can be downloaded from the SAS website. Installation is easy: You open the SAS program and simply execute it. This will create or update the ExcelXP tagset on your computer. SYNTAX ExcelXP tagset can be used to export the results of PROC REPORT, PROC TABULATE, or PROC PRINT. It can display multiple tables per worksheet as well as multiple worksheets. The ODS option style can be used with the ExcelXP tagset. Many styles are available in SAS and styles can also be customized or created using PROC TEMPLATE. ODS listing; ODS results; ODS listing close; /*Turn off the standard line printer destination*/ ODS noresults; /*Prevents results from appearing within SAS viewer*/ ods tagset.excelxp file="c:\wuss2010.xls" style=wuss /*Styles to control appearance of output*/ options (Embedded_titles = 'yes' Embedded_Footnotes = 'yes' sheet_name= 'Wuss' autofilter= 'yes' frozen_headers= '3' autofit_height= 'yes' absolute_column_width= '15,10,10,13'); title1 "List of ongoing clinical trials"; footnote1 "august 12th 2010"; 3
4 proc Report data=wuss.wuss NOWD; Column study count_pt expected start_date; define study /center style(column)=[font_weight=bold] style(header) = [background = CX4D7EBF]; ; define count_pt /center style(header) = [background = CX4D7EBF]; define expected /center style(header) = [background = CX4D7EBF]; define start_date /center style(header) = [background = CX4D7EBF]; ods tagset.excelxp close; /* Close and release the xml file so it can be opened with Excel*/ ODS listing; ODS results; ExcelXP includes a wide range of formatting options. In this example, we used the options described below but many more options are available and documented online: Embedded_Footnotes: Add footnotes to the footer section of the Excel worksheet. Embedded_Titles: Add Titles to the header section of the Excel worksheet. sheet_name: Name the current sheet. autofilter: This option will add an autofilter to your headers. frozen_headers: If your listing has many rows, scrolling down will move the headers off the screen. This useful option will freeze the rows you want to use as headers. autofit_height: Excel automatically sets the row heights so that wrapped text can be seen. absolute_column_width: ExcelXP automatically estimates the width on columns based on several factors. This option allows you to correct the column widths. The column widths are entered as a comma separated list. Different values can be tried until you get the expected output. Figure 4. Output produced by ExcelXP tagset using a SAS style and some tagset options. 4
5 WHEN TO USE IT ExcelXP tagset has an amazing number of options and high flexibility, allowing it to accomplish almost any report. It reduces or eliminates the need for manual formatting, as all formatting and layouts are performed by SAS: There is no need to create a template or edit the Excel workbook. ExcelXP includes a lot of options that control the appearance of the report and many papers are available online to get a better understanding of all them. However, if you need to use an Excel template for your report, the ExcelXP tagset is not the best solution. ExcelXP tagset is one of the best ways to create a file with multiple sheets. Unlike other techniques, there is no need to prepare a template. All formatting is performed by SAS, so it becomes very easy to define a style and apply it to all the worksheets. LIMITATIONS In order to take advantage of the latest ExcelXP features, the tagset must be downloaded and installed on the machine. Computers without the latest version of ExcelXP might not be able to run SAS programs to create reports. Additionally, ExcelXP is still evolving, thus functionalities may change in the future. Excel does not handle date variables like SAS. Date variables exported from SAS with ExcelXP tagset are interpreted like a text variable. Excel will understand SAS dates only if they are converted to a specific format before using ExcelXP (the paper The Devil Is in the Details: Styles, Tips, and Tricks That Make Your Microsoft Excel Output Look Great! gives a great explanation about date format with ExcelXP). ExcelXP tagset produces an XML file designed for Excel. XML is a great way to store data; everything is in a humanreadable format. However, XML files are not readable on every computer. Some customers might have an old version of Excel that could not open the file created by ExcelXP tagset. One of the solutions to avoid this issue is to open the XML file and save it in XLS format. This can be automated using a SAS macro and a VBS script. DDE Dynamic Data Exchange (DDE) is an old protocol, but it is one of the most powerful methods to integrate SAS and Excel. DDE is the direct communication between SAS and Excel using a server/client model. Excel acts as a server and SAS as a client. It is the only technique that can use visual basic language, the most powerful feature of Excel, and provides total control over the output. However, this technique might seem obscure to people who have no experience with it. There are two ways to use DDE: - The first approach, and probably the most difficult one, is to execute all the code directly in SAS using X4ML functions to provide instructions to the Excel application. DDE can enable much of the functionality of Excel within SAS. - The second solution is to create a pre-formatted Excel template and populate it using DDE. With just two macros to open and close the Excel file, it becomes very easy to program a fancy report. This solution is easier and faster. Anyone can prepare a nice spreadsheet using the power of Excel, and populate it with the SAS data. SYNTAX %let stufile=c:\wuss; /*********************************************************************************/ /* TO OPEN XLS FILE */ /*********************************************************************************/ %MACRO OPENXLS(FOLDER=,IN=); %LET FIL=; DATA _null_; LENGTH FILE $300.; FILE="'&STUFILE\&folder.&in.'"; FILE="'"!!TRIM(LEFT(TRANWRD(FILE,"'",'"')))!!"'"; CALL SYMPUT ("FIL",TRIM(LEFT(FILE))); options noxwait noxsync; x &fil.; filename commands dde "Excel system"; %MEND OPENXLS; 5
6 /*********************************************************************************/ /* TO SAVE ACTIVE XLS FILE UNDER SPECIFIC FOLDERS AND QUIT EXCEL */ /*********************************************************************************/ %MACRO CLOSEXLS(out=,quit=0); %LET FIL=; DATA _null_; LENGTH FILE $300.; FILE="[save.as('&STUFILE.\&out.')]"; FILE="'"!!TRIM(LEFT(TRANWRD(FILE,"'",'"')))!!"'"; CALL SYMPUT ("FIL",TRIM(LEFT(FILE))); %PUT &FIL=; data _null_; file commands; put &fil.; put '[CLOSE()]'; %IF &quit=0 %then %do; put '[QUIT()]'; stop; filename commands clear; %END; %MEND CLOSEXLS; %IF &quit=1 %then %do; %END; %OPENXLS(FOLDER=template\,IN=wuss2010_DDE_temp.xls); /* Open the Excel template*/ option missing="" ; /* First dataset is output in a range starting at row 5 column 3 and ending at row 30 and column 10*/ filename TAB DDE "EXCEL [wuss2010_dde_temp.xls]wuss!r5c3:r30c10"; filename xlcmds DDE "EXCEL SYSTEM"; data _null_; /* Data step to output the data in the Excel file */ set wuss.wuss; file TAB notab lrecl=7000; PUT study count_pt expected start_date '09'x '09'x '09'x '09'x; /* Second dataset is output in a range starting at row 16 column 1 and ending at row 18 and column 2*/ filename TAB DDE "EXCEL [wuss2010_dde_temp.xls]wuss!r16c1:r18c2"; filename xlcmds DDE "EXCEL SYSTEM"; data _null_; set wuss.param; file TAB notab lrecl=7000; PUT var1 '09'x var2 '09'x; data _null_; /* Invoke a VB macro lastline embedded in the Excel template */ file xlcmds; PUT '[RUN("lastline")]'; %CLOSEXLS(OUT=wuss_DDE_&today..xls); 6
7 filename TAB DDE "EXCEL [wuss2010_dde_temp.xls]wuss!r5c3:r30c10": Excel template name inside brackets followed by the Excel sheet name. R5C3:R30C10 are row and column numbers where the data will be loaded. Just make sure that all data can fit in the range defined. In this example we used an Excel macro lastline programmed in VBA and embedded in the template. This macro changes the background color and the font of the table s last line. We could have prepared a template with the last line pre-formatted. However, if the number of records changes frequently in the SAS dataset, we would need to manually update the template. Using a VBA macro, Excel can determine automatically the last line and format the data. Figure 5. Pre-formatted Excel template used with DDE. Figure 6. Excel file created using DDE. The last line total is formatted using a VBA macro. 7
8 WHEN TO USE IT DDE is a great solution to create sophisticated reports. It provides full control of Excel and allows you to leverage the powerful capabilities of this reporting tool. Anyone knowing Excel can prepare an Excel template with pre-formatted cells and columns. VBA macros can be programmed and called directly from SAS. They can be very powerful and can help you build the perfect report. If you need to use a VBA macro for your report, DDE is the best solution. LIMITATIONS Both Excel and SAS need to be installed and active for DDE to work. This makes DDE impossible to use in an environment where SAS is installed on a server and Excel on a desktop. In addition, knowledge of Excel programming is required. DDE uses Excel version 4 macro language, which has been superseded by Visual Basic for Applications (VBA). Finding documentation for this macro language is not always easy. However, even if SAS cannot issue visual basic command, it can still invoke VB macros that are embedded in a sheet. One frequent issue with DDE is the carriage return. If a cell value contains a carriage return in SAS, it will be interpreted as a line return by Excel and generate an incorrect report. One solution to avoid this issue is to replace the carriage returns by another character with SAS before using DDE. LIBNAME ENGINE LIBNAME engine is the newest method to get information from SAS into Excel. It is available with SAS 9.0 and lets you use Excel as SAS library. Like DDE, LIBNAME engine allows you to heavily customize your output. It does not give full control of Excel like DDE, but it has one big advantage: Excel doesn t need to be installed on the machine running SAS. SYNTAX LIBNAME can be used to create a new workbook. It will create the Excel file on the machine and then populate it such as a PROC EXPORT. The file should not exist on the drive as LIBNAME engine cannot overwrite. libname toexcel EXCEL 'c:\wuss2010_libname.xls' VER=2002 ; DATA toexcel.wuss (DBLABEL=YES); SET wuss.wuss ; LIBNAME toexcel CLEAR; Ver=2002: To specify the most current version. The default is Excel 97 DBLABEL=YES: Write the variable labels A data step is used to export the data. We can choose the name of the tab in the Excel output and we can export the variable labels with the option DBLABEL=YES. Figure 7. Excel file created with LIBNAME without using a template. SAS variable labels can be exported as column names. 8
9 LIBNAME can also be used with a template to create a customized output. The first step is to prepare a template and define the named ranges to receive the SAS data. Then, the file can be populated using the Excel LIBNAME. Without properly defined named ranges, LIBNAME engine cannot export the data to Excel. A range is a subset of cells defined using Excel option insert->name->define. Named range defined in Excel. Named range is case-sensitive and must match exactly the name in the SAS code. libname toexcel EXCEL 'c:\wuss2010_libname_2.xls' VER=2002 ; /* Delete the data from the range to be populated. Without prior deletion, SAS will not populate the range*/ PROC DATASETS LIB=toexcel; DELETE wuss; QUIT; PROC DATASETS LIB=toexcel; DELETE param; QUIT; DATA toexcel.wuss; SET wuss.wuss ; DATA toexcel.param ; SET wuss.param ; LIBNAME toexcel CLEAR; /* Disconnect from workbook*/ Figure 8. Define named ranges dialog 9
10 Figure 9. Template used with LIBNAME engine. Rows 5 and 15 are hidden in order not to display the variable names in the final report. Figure 10. Output with LIBNAME engine. Variable names are output in the report but hidden to the user. Two named ranges have been defined in the template and used in the SAS code. WHEN TO USE IT LIBNAME engine is another great method to generate customized Excel reports. It does not need Excel present or activated, and a simple data step can be used to populate the output. The Excel spreadsheet can be manipulated much like a SAS dataset. Additionally, unlike PROC EXPORT (before SAS 9.2), LIBNAME engine can export the variable labels. LIBNAME engine is also a possible solution to program a fancy report. It is not as powerful as DDE but it is sufficient for most of the programs. Pre-defined and customized Excel worksheets can be easily used after understanding named ranges in Excel. 10
11 LIMITATIONS Using LIBNAME can be confusing at the beginning. Each dataset appears twice when you open the Excel file with LIBNAME: - One with the expected name. This dataset is the named range. - One with a trailing $. This dataset is the spreadsheet. It requires a little time to understand Excel structure and the use of named ranges. Without a correctly named range in Excel, LIBNAME cannot execute and displays an error message in the log. By default, LIBNAME engine writes the variable names in the first row of a range. When defining the named ranges, users need to remember that the first row will be populated with the variable names. The only solution not to display the headers is to hide the first row of the range in the Excel template. NO FORMATING AND QUICK REPORT If the report does not require any formatting, the easiest methods to use are PROC EXPORT and LIBNAME without template. The Excel file is created directly from the SAS code. LIBNAME engine offers more advantages than PROC EXPORT, such as the ability to export the labels or to create new columns as you are writing to the spreadsheet. Both techniques have a very simple syntax. PROC EXPORT is a SAS procedure with multiple options widely described online. LIBNAME engine uses a data step to export the data. These techniques can be used to quickly create a new Excel file. You can export a dataset to Excel even faster without programming by right-clicking on the dataset. USING AN EXCEL TEMPLATE We sometimes need to use an Excel template designed by an Excel expert or by ourselves. In that case, the two best methods are LIBNAME engine and DDE. PROC EXPORT can be used with an Excel template but formatting options are too limited. Syntaxes are quite different between LIBNAME and DDE. With the LIBNAME engine, we need to use named ranges in Excel and make sure the data will fit in the template. For DDE, only the column names need to be set up in the Excel template. It doesn t require named ranges, and data will be output in the rows and columns defined in the SAS code. The biggest advantage of DDE over LIBNAME engine is the possibility to call and execute VBA macros. CREATING A MULTI-SHEET REPORT Choosing the best method for a multi-sheet report depends on the report you want to create. For multi-tabs without formatting, PROC EXPORT or LIBNAME engine are sufficient. If the output needs to be formatted, different techniques can be used. A template can be prepared in different tabs and populated with LIBNAME or DDE. However, using a template is not a good idea if the report has many tabs. It would take too much time to prepare each tab. ExcelXP tagset is the ideal solution to export SAS data to Excel workbooks that contain multiple worksheets. By using styles and the numerous options available with the tagset, you can create a custom template that will be applied to all the tabs. The tagset will create the Excel file with the tabs and style defined in the SAS code. CONCLUSION The goal of the methods described above is the same: Creating an Excel file using SAS. However, syntax, capabilities and limitations are different. Some SAS programmers choose to learn one method to create an Excel report and use it for any program. This strategy narrows the ability to take full advantage of broad and powerful SAS capabilities. Knowing several techniques is a better strategy that allows SAS programmers to effectively develop a report in a short period of time. By acquiring knowledge on different SAS techniques, SAS programmers have a broader range of options available to create the exact report expected by the customer and can decide on the method best suited taking into account time constraints and the ultimate project goal.. 11
12 REFERENCES Generating Custom Report Tables: Using SAS with DDE and VBA, Ying Feng, SUGI De-Mystifying the SAS LIBNAME Engine in Microsoft Excel: A Practical Guide, Paul A. Choate, Carol A. Martell, SUGI Printable Spreadsheets Made Easy: Utilizing the SAS Excel XP Tagset, Rick Andrews, NESUG Creating Multi-Sheet Excel Workbooks the Easy Way with SAS, Vincent DelGobbo, pharmasug 2007 Play Nice with Others: Waiting for a Lock on SAS Table, John Leveille, Jimmy Hunnings, pharmasug Excellent Ways of Exporting SAS Data to Excel, Ralph Winters, NESUG Choosing the Right Tool from Your SAS and Microsoft Excel Tool Belt, Steven First, Jennifer First, SUGI More Tips and Tricks for Creating Multi-Sheet Microsoft Excel Workbooks the Easy Way with SAS, Vincent DelGobbo, SGF The Devil Is in the Details: Styles, Tips, and Tricks That Make Your Microsoft Excel Output Look Great!, Eric Gebhart, SUGI CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the authors at: Romain Miralles Clinovo E. Arques Avenue, suite 114 Sunnyvale, CA [email protected] Web : SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companies 12
Create an Excel report using SAS : A comparison of the different techniques
Create an Excel report using SAS : A comparison of the different techniques Romain Miralles, Clinovo, Sunnyvale, CA Global SAS Forum 2011 April 2011 1 1. ABSTRACT Many techniques exist to create an Excel
Customized Excel Output Using the Excel Libname Harry Droogendyk, Stratia Consulting Inc., Lynden, ON
Paper SIB-105 Customized Excel Output Using the Excel Libname Harry Droogendyk, Stratia Consulting Inc., Lynden, ON ABSTRACT The advent of the ODS ExcelXP tagset and its many features has afforded the
Integrating SAS and Excel: an Overview and Comparison of Three Methods for Using SAS to Create and Access Data in Excel
Integrating SAS and Excel: an Overview and Comparison of Three Methods for Using SAS to Create and Access Data in Excel Nathan Clausen, U.S. Bureau of Labor Statistics, Washington, DC Edmond Cheng, U.S.
ABSTRACT INTRODUCTION SAS AND EXCEL CAPABILITIES SAS AND EXCEL STRUCTURES
Paper 85-2010 Choosing the Right Tool from Your SAS and Microsoft Excel Tool Belt Steven First and Jennifer First, Systems Seminar Consultants, Madison, Wisconsin ABSTRACT There are over a dozen ways to
Tips and Tricks for Creating Multi-Sheet Microsoft Excel Workbooks the Easy Way with SAS. Vincent DelGobbo, SAS Institute Inc.
Paper HOW-071 Tips and Tricks for Creating Multi-Sheet Microsoft Excel Workbooks the Easy Way with SAS Vincent DelGobbo, SAS Institute Inc., Cary, NC ABSTRACT Transferring SAS data and analytical results
Printable Spreadsheets Made Easy: Utilizing the SAS Excel XP Tagset Rick Andrews, Office of the Actuary, CMS, Baltimore, MD
Paper RV-05 Printable Spreadsheets Made Easy: Utilizing the SAS Excel XP Tagset Rick Andrews, Office of the Actuary, CMS, Baltimore, MD ABSTRACT The SAS System offers myriad techniques for exchanging data
Importing Excel Files Into SAS Using DDE Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA
Importing Excel Files Into SAS Using DDE Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA ABSTRACT With the popularity of Excel files, the SAS user could use an easy way to get Excel files
SAS to Excel with ExcelXP Tagset Mahipal Vanam, Kiran Karidi and Sridhar Dodlapati
PharmaSUG2010 - Paper CC22 SAS to Excel with ExcelXP Tagset Mahipal Vanam, Kiran Karidi and Sridhar Dodlapati ABSTRACT Creating XML based excel files is a very convenient and powerful feature of SAS 9
Using SAS Output Delivery System (ODS) Markup to Generate Custom PivotTable and PivotChart Reports Chevell Parker, SAS Institute
Using SAS Output Delivery System (ODS) Markup to Generate Custom PivotTable and PivotChart Reports Chevell Parker, SAS Institute ABSTRACT This paper illustrates how to use ODS markup to create PivotTable
AN ANIMATED GUIDE: SENDING SAS FILE TO EXCEL
Paper CC01 AN ANIMATED GUIDE: SENDING SAS FILE TO EXCEL Russ Lavery, Contractor for K&L Consulting Services, King of Prussia, U.S.A. ABSTRACT The primary purpose of this paper is to provide a generic DDE
Excel with SAS and Microsoft Excel
Excel with SAS and Microsoft Excel Andrew Howell Senior Consultant, ANJ Solutions SAS Global Forum Washington DC 23 26 March 2014 Introduction - SAS & Excel interaction Excel as a Data Source Excel as
Report Customization Using PROC REPORT Procedure Shruthi Amruthnath, EPITEC, INC., Southfield, MI
Paper SA12-2014 Report Customization Using PROC REPORT Procedure Shruthi Amruthnath, EPITEC, INC., Southfield, MI ABSTRACT SAS offers powerful report writing tools to generate customized reports. PROC
Methodologies for Converting Microsoft Excel Spreadsheets to SAS datasets
Methodologies for Converting Microsoft Excel Spreadsheets to SAS datasets Karin LaPann ViroPharma Incorporated ABSTRACT Much functionality has been added to the SAS to Excel procedures in SAS version 9.
Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access
Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix Jennifer Clegg, SAS Institute Inc., Cary, NC Eric Hill, SAS Institute Inc., Cary, NC ABSTRACT Release 2.1 of SAS
SAS og Excel. Kender du fem forskellige måder at overføre data mellem SAS og Excel? Gert Nissen, seniorkonsulent
SAS og Excel Kender du fem forskellige måder at overføre data mellem SAS og Excel? Gert Nissen, seniorkonsulent Copyright 2011 SAS Institute Inc. All rights reserved. Indhold Introduktion 5 metoder Konklusion
Flat Pack Data: Converting and ZIPping SAS Data for Delivery
Flat Pack Data: Converting and ZIPping SAS Data for Delivery Sarah Woodruff, Westat, Rockville, MD ABSTRACT Clients or collaborators often need SAS data converted to a different format. Delivery or even
Importing Excel File using Microsoft Access in SAS Ajay Gupta, PPD Inc, Morrisville, NC
ABSTRACT PharmaSUG 2012 - Paper CC07 Importing Excel File using Microsoft Access in SAS Ajay Gupta, PPD Inc, Morrisville, NC In Pharmaceuticals/CRO industries, Excel files are widely use for data storage.
THE HELLO WORLD PROJECT
Paper RIV-08 Yes! SAS ExcelXP WILL NOT Create a Microsoft Excel Graph; But SAS Users Can Command Microsoft Excel to Automatically Create Graphs From SAS ExcelXP Output William E Benjamin Jr, Owl Computer
Writing Data with Excel Libname Engine
Writing Data with Excel Libname Engine Nurefsan (Neffy) Davulcu Advanced Analytics Intern, TransUnion Canada Golden Horseshoe SAS User Group (GHSUG) Burlington, Ontario, Canada MAY 27, 2016 ODS All Functionality
Using DDE and SAS/Macro for Automated Excel Report Consolidation and Generation
Using DDE and SAS/Macro for Automated Excel Report Consolidation and Generation Mengxi Li, Sandra Archer, Russell Denslow Sodexho Campus Services, Orlando, FL Abstract Each week, the Sodexho Campus Services
Data Presentation. Paper 126-27. Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs
Paper 126-27 Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs Tugluke Abdurazak Abt Associates Inc. 1110 Vermont Avenue N.W. Suite 610 Washington D.C. 20005-3522
SAS ODS HTML + PROC Report = Fantastic Output Girish K. Narayandas, OptumInsight, Eden Prairie, MN
SA118-2014 SAS ODS HTML + PROC Report = Fantastic Output Girish K. Narayandas, OptumInsight, Eden Prairie, MN ABSTRACT ODS (Output Delivery System) is a wonderful feature in SAS to create consistent, presentable
Advanced Excel 10/20/2011 1
Advanced Excel Data Validation Excel has a feature called Data Validation, which will allow you to control what kind of information is typed into cells. 1. Select the cell(s) you wish to control. 2. Click
How To Write A Clinical Trial In Sas
PharmaSUG2013 Paper AD11 Let SAS Set Up and Track Your Project Tom Santopoli, Octagon, now part of Accenture Wayne Zhong, Octagon, now part of Accenture ABSTRACT When managing the programming activities
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...
3 What s New in Excel 2007
3 What s New in Excel 2007 3.1 Overview of Excel 2007 Microsoft Office Excel 2007 is a spreadsheet program that enables you to enter, manipulate, calculate, and chart data. An Excel file is referred to
Utilizing SAS for Complete Report Automation Brent D. Westra, Mayo Clinic, Rochester, MN
Paper S105-2011 Utilizing SAS for Complete Report Automation Brent D. Westra, Mayo Clinic, Rochester, MN ABSTRACT Analysts in every field devote a great deal of time and effort to the tedious, manual task
Producing Listings and Reports Using SAS and Crystal Reports Krishna (Balakrishna) Dandamudi, PharmaNet - SPS, Kennett Square, PA
Producing Listings and Reports Using SAS and Crystal Reports Krishna (Balakrishna) Dandamudi, PharmaNet - SPS, Kennett Square, PA ABSTRACT The SAS Institute has a long history of commitment to openness
Let SAS Modify Your Excel File Nelson Lee, Genentech, South San Francisco, CA
ABSTRACT PharmaSUG 2015 - Paper QT12 Let SAS Modify Your Excel File Nelson Lee, Genentech, South San Francisco, CA It is common to export SAS data to Excel by creating a new Excel file. However, there
Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands.
Quick Start Guide Microsoft Excel 2013 looks different from previous versions, so we created this guide to help you minimize the learning curve. Add commands to the Quick Access Toolbar Keep favorite commands
SPSS: Getting Started. For Windows
For Windows Updated: August 2012 Table of Contents Section 1: Overview... 3 1.1 Introduction to SPSS Tutorials... 3 1.2 Introduction to SPSS... 3 1.3 Overview of SPSS for Windows... 3 Section 2: Entering
Using Microsoft Office to Manage Projects
(or, Why You Don t Need MS Project) Using Microsoft Office to Manage Projects will explain how to use two applications in the Microsoft Office suite to document your project plan and assign and track tasks.
14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë
14.1 bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë bî~äì~íáåö=oéñäéåíáçå=ñçê=emi=rkfui=~åç=lééåsjp=eçëíë This guide walks you quickly through key Reflection features. It covers: Getting Connected
Using Microsoft Excel for Data Presentation Peter Godard and Cyndi Williamson, SRI International, Menlo Park, CA
Using Microsoft Excel for Data Presentation Peter Godard and Cyndi Williamson, SRI International, Menlo Park, CA ABSTRACT A common problem: You want to use SAS to manipulate and summarize your data, but
ACCESS 2007. Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818) 677-1700
Information Technology MS Access 2007 Users Guide ACCESS 2007 Importing and Exporting Data Files IT Training & Development (818) 677-1700 [email protected] TABLE OF CONTENTS Introduction... 1 Import Excel
Excel Reporting with 1010data
Excel Reporting with 1010data (212) 405.1010 [email protected] Follow: @1010data www.1010data.com Excel Reporting with 1010data Contents 2 Contents Overview... 3 Start with a 1010data query... 5 Running
ABSTRACT INTRODUCTION CLINICAL PROJECT TRACKER OF SAS TASKS. Paper PH-02-2015
Paper PH-02-2015 Project Management of SAS Tasks - Excel Dashboard without Using Any Program Kalaivani Raghunathan, Quartesian Clinical Research Pvt. Ltd, Bangalore, India ABSTRACT Have you ever imagined
TheEducationEdge. Export Guide
TheEducationEdge Export Guide 102111 2011 Blackbaud, Inc. This publication, or any part thereof, may not be reproduced or transmitted in any form or by any means, electronic, or mechanical, including photocopying,
Search help. More on Office.com: images templates
Page 1 of 14 Access 2010 Home > Access 2010 Help and How-to > Getting started Search help More on Office.com: images templates Access 2010: database tasks Here are some basic database tasks that you can
It s not the Yellow Brick Road but the SAS PC FILES SERVER will take you Down the LIBNAME PATH= to Using the 64-Bit Excel Workbooks.
Pharmasug 2014 - paper CC-47 It s not the Yellow Brick Road but the SAS PC FILES SERVER will take you Down the LIBNAME PATH= to Using the 64-Bit Excel Workbooks. ABSTRACT William E Benjamin Jr, Owl Computer
Automated distribution of SAS results Jacques Pagé, Les Services Conseils HARDY, Quebec, Qc
Paper 039-29 Automated distribution of SAS results Jacques Pagé, Les Services Conseils HARDY, Quebec, Qc ABSTRACT This paper highlights the programmable aspects of SAS results distribution using electronic
Course Descriptions for Focused Learning Classes
Course Descriptions for Focused Learning Classes Excel Word PowerPoint Access Outlook Adobe Visio Publisher FrontPage Dreamweaver EXCEL Classes Excel Pivot Tables 2 hours Understanding Pivot Tables Examining
SAS Add in to MS Office A Tutorial Angela Hall, Zencos Consulting, Cary, NC
Paper CS-053 SAS Add in to MS Office A Tutorial Angela Hall, Zencos Consulting, Cary, NC ABSTRACT Business folks use Excel and have no desire to learn SAS Enterprise Guide? MS PowerPoint presentations
Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1
Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the SAI reports... 3 Running, Copying and Pasting reports... 4 Creating and linking a report... 5 Auto e-mailing reports...
Microsoft Excel 2010 Part 3: Advanced Excel
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Excel 2010 Part 3: Advanced Excel Winter 2015, Version 1.0 Table of Contents Introduction...2 Sorting Data...2 Sorting
Working together with Word, Excel and PowerPoint
Working together with Word, Excel and PowerPoint Have you ever wanted your Word document to include data from an Excel spreadsheet, or diagrams you ve created in PowerPoint? This note shows you how to
Importing and Exporting With SPSS for Windows 17 TUT 117
Information Systems Services Importing and Exporting With TUT 117 Version 2.0 (Nov 2009) Contents 1. Introduction... 3 1.1 Aim of this Document... 3 2. Importing Data from Other Sources... 3 2.1 Reading
Intro to Mail Merge. Contents: David Diskin for the University of the Pacific Center for Professional and Continuing Education. Word Mail Merge Wizard
Intro to Mail Merge David Diskin for the University of the Pacific Center for Professional and Continuing Education Contents: Word Mail Merge Wizard Mail Merge Possibilities Labels Form Letters Directory
How To Create A Report In Excel
Table of Contents Overview... 1 Smartlists with Export Solutions... 2 Smartlist Builder/Excel Reporter... 3 Analysis Cubes... 4 MS Query... 7 SQL Reporting Services... 10 MS Dynamics GP Report Templates...
Software User's Guide
BROTHER QL-500/550/650TD/1050/1050N Software User's Guide QL-500 QL-650TD QL-550 QL-1050/1050N 1 Contents Contents....................................................................................2................................................................................4
Improving Your Relationship with SAS Enterprise Guide
Paper BI06-2013 Improving Your Relationship with SAS Enterprise Guide Jennifer Bjurstrom, SAS Institute Inc. ABSTRACT SAS Enterprise Guide has proven to be a very beneficial tool for both novice and experienced
Create a New Database in Access 2010
Create a New Database in Access 2010 Table of Contents OVERVIEW... 1 CREATING A DATABASE... 1 ADDING TO A DATABASE... 2 CREATE A DATABASE BY USING A TEMPLATE... 2 CREATE A DATABASE WITHOUT USING A TEMPLATE...
Using SAS DDE to Control Excel
Using SAS DDE to Control Excel George Zhu Alberta Health, Government of Alberta Edmonton SAS User Group Meeting April 15, 2015 1 DDE: Dynamic Data Exchange 2 Examples and Demonstration Demo 1: Import password
Combining SAS LIBNAME and VBA Macro to Import Excel file in an Intriguing, Efficient way Ajay Gupta, PPD Inc, Morrisville, NC
ABSTRACT PharmaSUG 2013 - Paper CC11 Combining SAS LIBNAME and VBA Macro to Import Excel file in an Intriguing, Efficient way Ajay Gupta, PPD Inc, Morrisville, NC There are different methods such PROC
Secrets from a SAS Technical Support Guy: Combining the Power of the SAS Output Delivery System with Microsoft Excel Worksheets
Paper SAS177-2014 Secrets from a SAS Technical Support Guy: Combining the Power of the SAS Output Delivery System with Microsoft Excel Worksheets Chevell Parker, SAS Institute Inc. ABSTRACT Business analysts
Tips and Tricks SAGE ACCPAC INTELLIGENCE
Tips and Tricks SAGE ACCPAC INTELLIGENCE 1 Table of Contents Auto e-mailing reports... 4 Automatically Running Macros... 7 Creating new Macros from Excel... 8 Compact Metadata Functionality... 9 Copying,
Staying Organized with the Outlook Journal
CHAPTER Staying Organized with the Outlook Journal In this chapter Using Outlook s Journal 362 Working with the Journal Folder 364 Setting Up Automatic Email Journaling 367 Using Journal s Other Tracking
Secure Website and Reader Application User Guide
Secure Website and Reader Application User Guide February 2005 IMPORTANT NOTICE Copyright Medibank Private Limited All rights reserved. No part of this document (including its appendices and Schedules)
TIBCO Spotfire Automation Services 6.5. User s Manual
TIBCO Spotfire Automation Services 6.5 User s Manual Revision date: 17 April 2014 Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED OR BUNDLED TIBCO
A Recursive SAS Macro to Automate Importing Multiple Excel Worksheets into SAS Data Sets
PharmaSUG2011 - Paper CC10 A Recursive SAS Macro to Automate Importing Multiple Excel Worksheets into SAS Data Sets Wenyu Hu, Merck Sharp & Dohme Corp., Upper Gwynedd, PA Liping Zhang, Merck Sharp & Dohme
Microsoft Office 2010: Access 2010, Excel 2010, Lync 2010 learning assets
Microsoft Office 2010: Access 2010, Excel 2010, Lync 2010 learning assets Simply type the id# in the search mechanism of ACS Skills Online to access the learning assets outlined below. Titles Microsoft
Creating and Using Forms in SharePoint
Creating and Using Forms in SharePoint Getting started with custom lists... 1 Creating a custom list... 1 Creating a user-friendly list name... 1 Other options for creating custom lists... 2 Building a
Generating a Custom Bill of Materials
Summary Tutorial TU0104 (v2.3) May 16, 2008 This tutorial describes how to use the Report Manager to set up a Bill of Materials (BOM) report. The manipulation of data and columns and exporting to an Excel
EVENT VIEWER IN WINDOWS 7
EVENT VIEWER IN WINDOWS 7 Event Viewer We can open Event Viewer in different ways, such as trough Computer Management and Administrative Tools. However, the easiest way is to type "eventvwr" in search
Excel 2010: Create your first spreadsheet
Excel 2010: Create your first spreadsheet Goals: After completing this course you will be able to: Create a new spreadsheet. Add, subtract, multiply, and divide in a spreadsheet. Enter and format column
Cashion High School Fundamentals of Administrative Technologies Syllabus Course Number: 8103 (OK Promise Approved)
Cashion High School Fundamentals of Administrative Technologies Syllabus Course Number: 8103 (OK Promise Approved) Course Title: Fundamentals of Administrative Technologies (Prerequisite: Fundamentals
Microsoft' Excel & Access Integration
Microsoft' Excel & Access Integration with Office 2007 Michael Alexander and Geoffrey Clark J1807 ; pwiueyb Wiley Publishing, Inc. Contents About the Authors Acknowledgments Introduction Part I: Basic
Microsoft Access 2010 Overview of Basics
Opening Screen Access 2010 launches with a window allowing you to: create a new database from a template; create a new template from scratch; or open an existing database. Open existing Templates Create
SPSS for Windows importing and exporting data
Guide 86 Version 3.0 SPSS for Windows importing and exporting data This document outlines the procedures to follow if you want to transfer data from a Windows application like Word 2002 (Office XP), Excel
PharmaSUG 2015 - Paper QT26
PharmaSUG 2015 - Paper QT26 Keyboard Macros - The most magical tool you may have never heard of - You will never program the same again (It's that amazing!) Steven Black, Agility-Clinical Inc., Carlsbad,
Applications Development
Paper 21-25 Using SAS Software and Visual Basic for Applications to Automate Tasks in Microsoft Word: An Alternative to Dynamic Data Exchange Mark Stetz, Amgen, Inc., Thousand Oaks, CA ABSTRACT Using Dynamic
LabVIEW Report Generation Toolkit for Microsoft Office
USER GUIDE LabVIEW Report Generation Toolkit for Microsoft Office Version 1.1.2 Contents The LabVIEW Report Generation Toolkit for Microsoft Office provides VIs and functions you can use to create and
USE CDISC SDTM AS A DATA MIDDLE-TIER TO STREAMLINE YOUR SAS INFRASTRUCTURE
USE CDISC SDTM AS A DATA MIDDLE-TIER TO STREAMLINE YOUR SAS INFRASTRUCTURE Kalyani Chilukuri, Clinovo, Sunnyvale CA WUSS 2011 Annual Conference October 2011 TABLE OF CONTENTS 1. ABSTRACT... 3 2. INTRODUCTION...
Tommy B. Harrington 104 Azalea Drive Greenville, NC 27858 Email: [email protected]
M o s t U s e f u l E x c e l C o m m a n d s Tommy B. Harrington 104 Azalea Drive Greenville, NC 27858 Email: [email protected] Computer Training YOU Can Understand! Most Useful Excel Commands
EzyScript User Manual
Version 1.4 Z Option 417 Oakbend Suite 200 Lewisville, Texas 75067 www.zoption.com (877) 653-7215 (972) 315-8800 fax: (972) 315-8804 EzyScript User Manual SAP Transaction Scripting & Table Querying Tool
CREATING EXCEL PIVOT TABLES AND PIVOT CHARTS FOR LIBRARY QUESTIONNAIRE RESULTS
CREATING EXCEL PIVOT TABLES AND PIVOT CHARTS FOR LIBRARY QUESTIONNAIRE RESULTS An Excel Pivot Table is an interactive table that summarizes large amounts of data. It allows the user to view and manipulate
Access 2007 Creating Forms Table of Contents
Access 2007 Creating Forms Table of Contents CREATING FORMS IN ACCESS 2007... 3 UNDERSTAND LAYOUT VIEW AND DESIGN VIEW... 3 LAYOUT VIEW... 3 DESIGN VIEW... 3 UNDERSTAND CONTROLS... 4 BOUND CONTROL... 4
NorthClark Computing, Inc. Bill of Material and Parts Master Maintenance. Administrator s Guide
ERP Consulting Web Development Custom Programming Solutions Desktop & Web Applications for Manfact NorthClark Computing, Inc. Bill of Material and Parts Master Maintenance Administrator s Guide Web and
Password Memory 6 User s Guide
C O D E : A E R O T E C H N O L O G I E S Password Memory 6 User s Guide 2007-2015 by code:aero technologies Phone: +1 (321) 285.7447 E-mail: [email protected] Table of Contents Password Memory 6... 1
Importing Data into R
1 R is an open source programming language focused on statistical computing. R supports many types of files as input and the following tutorial will cover some of the most popular. Importing from text
EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002
EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 Table of Contents Part I Creating a Pivot Table Excel Database......3 What is a Pivot Table...... 3 Creating Pivot Tables
Microsoft Office Word 2010: Level 1
Microsoft Office Word 2010: Level 1 Workshop Objectives: In this workshop, you will learn fundamental Word 2010 skills. You will start by getting acquainted with the Word user interface, creating a new
How To Create A Powerpoint Intelligence Report In A Pivot Table In A Powerpoints.Com
Sage 500 ERP Intelligence Reporting Getting Started Guide 27.11.2012 Table of Contents 1.0 Getting started 3 2.0 Managing your reports 10 3.0 Defining report properties 18 4.0 Creating a simple PivotTable
Migrating to Excel 2010 from Excel 2003 - Excel - Microsoft Office 1 of 1
Migrating to Excel 2010 - Excel - Microsoft Office 1 of 1 In This Guide Microsoft Excel 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key
Aspose.Cells Product Family
time and effort by using our efficient and robust components instead of developing your own. lets you open, create, save and convert files from within your application without Microsoft Excel, confident
User Guide for TASKE Desktop
User Guide for TASKE Desktop For Avaya Aura Communication Manager with Aura Application Enablement Services Version: 8.9 Date: 2013-03 This document is provided to you for informational purposes only.
DESKTOP PRODUCTIVITY SOFTWARE
USING WINDOWS 8 UNIT 1: INTRODUCTION TO COMPUTERS Topic A: Overview of computers Topic B: How computers work Topic C: Starting the computer UNIT 2: INPUT DEVICES Topic A: Mouse and keyboard basics Topic
Microsoft Office. Mail Merge in Microsoft Word
Microsoft Office Mail Merge in Microsoft Word TABLE OF CONTENTS Microsoft Office... 1 Mail Merge in Microsoft Word... 1 CREATE THE SMS DATAFILE FOR EXPORT... 3 Add A Label Row To The Excel File... 3 Backup
Microsoft Office System Tip Sheet
The 2007 Microsoft Office System The 2007 Microsoft Office system is a complete set of desktop and server software that can help streamline the way you and your people do business. This latest release
Microsoft Office Access 2007 which I refer to as Access throughout this book
Chapter 1 Getting Started with Access In This Chapter What is a database? Opening Access Checking out the Access interface Exploring Office Online Finding help on Access topics Microsoft Office Access
Switching from PC SAS to SAS Enterprise Guide Zhengxin (Cindy) Yang, inventiv Health Clinical, Princeton, NJ
PharmaSUG 2014 PO10 Switching from PC SAS to SAS Enterprise Guide Zhengxin (Cindy) Yang, inventiv Health Clinical, Princeton, NJ ABSTRACT As more and more organizations adapt to the SAS Enterprise Guide,
