[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-670626-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-670626-en":130,"doc-similar-670626":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","sesug-paper-132-2024-creating-and-customizing-high-impact-excel-workbooks-from-sas-with-ods-excel","SESUG Paper 132-2024 - Creating and Customizing High-Impact Excel Workbooks from SAS with ODS EXCEL","","Microsoft Excel is widely used across business workflows, and SAS users can substantially increase the value of their work by exporting directly to Excel through the ODS EXCEL destination. This paper presents practical examples showing how SAS can generate polished, customized Excel output with full control of visual styling such as fonts, colors, and borders. It also covers Excel-oriented capabilities like multi-tab workbooks, frozen or hidden panes, and the ability to embed Excel formulas and other features that improve impact for both users and customers.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/sesug-paper-132-2024-creating-and-customizing-high-impact-excel-workbooks-from-sas-with-ods-excel/670626/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/sesug-paper-132-2024-creating-and-customizing-high-impact-excel-workbooks-from-sas-with-ods-excel/670626.png","ImageObject",300,407,{"name":42,"@type":43},"dawugda","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-12-02","2026-11-01",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What problem does ODS solve compared with traditional SAS listing output?","Question",{"text":62,"@type":63},"Traditional listing output is limited by its monospace layout and lack of modern visual elements like colors, fonts, graphics, and links. ODS enables richer, publication-quality output and easier reuse in other applications, including Excel.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How can you create an XLSX file from SAS using the ODS EXCEL destination?",{"text":67,"@type":63},"Wrap the SAS code that generates output with two ODS EXCEL statements: one to open the EXCEL destination with FILE= pointing to the target path, and a second to close the destination with ODS EXCEL CLOSE.",{"name":69,"@type":60,"acceptedAnswer":70},"How do you control the worksheet (tab) name in the Excel workbook?",{"text":71,"@type":63},"Use the SHEET_NAME sub-option inside the ODS EXCEL OPTIONS clause to specify the worksheet name you want rather than relying on SAS’s automatic naming.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},670626,1793570383,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":107,"preview_page_count":33,"preview_urls":144},3985747870947,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","SESUG Paper 132-2024  \nCreating and Customizing High-Impact Excel Workbooks from SAS with ODS EXCEL  \nJoshua M. Horstman, Nested Loop Consulting  \nABSTRACT  \nLove it or hate it, Microsoft Excel is used extensively throughout the business world. As a SAS user, you can enhance the impact of your work by using the ODS EXCEL destination to create high-quality, customized output in Excel format directly from SAS. This paper walks through a series of examples demonstrating the flexibility and power of this approach. In addition to complete control over visual attributes such as fonts, colors, and borders, the ODS EXCEL destination allows the SAS user to take advantage of Excel features such as multiple tabs, frozen or hidden rows and columns, and even Excel formulas to deliver the high-impact results you and your customers want!  \nOVERVIEW OF THE OUTPUT DELIVERY SYSTEM  \nBefore SAS introduced the Output Delivery System , the traditional SAS listing was the primary mechanism by which the SAS system displayed output to the user. While this arrangement served its purpose, it had several limitations. Since it was designed at a time when line printers were widely used, it used a monospace typeface in which characters could be neatly arranged in rows and columns. It did not allow for the use of colors, fonts, graphics, and other visual elements commonly used today. The listing output could also be difficult to import into other applications.  \nTo overcome these limitations and facilitate the creation of publication-quality output , SAS developed the Output Delivery System (ODS) . It has been part of the base SAS product since version 7. No separate license is required to access this functionality.  \nODS provides extensive flexibility for customizing SAS output:  \n• Output can be created in a variety of common file formats (including Microsoft Excel files) .  \n• Colors, fonts, borders, shading, and other visual elements can be incorporated.  \n• Graphics, images, links, and tables can be embedded.  \n• Pagination can be precisely controlled.  \n• Accessible output can be generated that will work with assistive technology.  \nIn order to allow output to be created in many different file formats, ODS introduces the concept of a“destination.” An ODS destination is simply a representation of a location and format to which output can be routed. Some commonly used ODS destinations include RTF, HTML, PDF, POWERPOINT , and EXCEL. Traditional SAS listing output is also still available through the LISTING destination. This paper will focus exclusively on the use of the ODS EXCEL destination.  \nUSING THE ODS EXCEL DESTINATION  \nThe ODS EXCEL destination creates native XLSX files, just like the files created by modern versions of Microsoft Excel. To create such a file using SAS, simply include a pair of ODS EXCEL statements (sometimes referred to as the “ODS sandwich”) around the SAS code which generates the desired output. The first ODS EXCEL statement opens the EXCEL destination and directs the output to a specific file location using the FILE= option, while the second statement closes the destination using the CLOSE option. For example, the following sequence of statements directs the output from the PRINT procedure to the external Microsoft Excel file shown in Figure 1.  \nods excel file=\"c:\\example.xlsx\" ;  \nproc print [data](data=sashelp.cars)[=sashelp.cars](data=sashelp.cars); run;  \nods excel close ;  \nFigure 1. ODS Excel output from the PRINT Procedure  \nTHE ODS EXCEL OPTIONS OPTION  \nThe ODS EXCEL statement has an OPTIONS option that allows the user to specify a variety of Excelspecific sub-options. One or more pairs of sub-options and values can be enclosed in parentheses after the OPTIONS keyword as follows:  \nods excel file=\"c:\\example.xlsx\"  \noptions(suboption1=value1 suboption2=value2);  \nThe next several examples demonstrate the use of some of the sub-options available using the OPTIONS option. An exhaustive list of the available sub-option","cbCaioPkOqnkbUWh","https://ap.wps.com/l/cbCaioPkOqnkbUWh","pdf",1655760,16,"English","# Overview of the Output Delivery System\n# Using the ODS EXCEL Destination\n# The ODS EXCEL OPTIONS Option\n# Specifying the Worksheet Name\n# Creating Multiple Worksheets with BY Groups","[{\"question\":\"What problem does ODS solve compared with traditional SAS listing output?\",\"answer\":\"Traditional listing output is limited by its monospace layout and lack of modern visual elements like colors, fonts, graphics, and links. ODS enables richer, publication-quality output and easier reuse in other applications, including Excel.\"},{\"question\":\"How can you create an XLSX file from SAS using the ODS EXCEL destination?\",\"answer\":\"Wrap the SAS code that generates output with two ODS EXCEL statements: one to open the EXCEL destination with FILE= pointing to the target path, and a second to close the destination with ODS EXCEL CLOSE.\"},{\"question\":\"How do you control the worksheet (tab) name in the Excel workbook?\",\"answer\":\"Use the SHEET_NAME sub-option inside the ODS EXCEL OPTIONS clause to specify the worksheet name you want rather than relying on SAS’s automatic naming.\"}]","SESUG Paper 132-2024 - Creating and Customizing High-Impact Excel Workbooks from SAS with ODS EXCEL | PDF",[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/7bc033b8967183dfb73bd72285395f2a.webp",983,1272,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/09dd73e4cda573c9048cd4205216ccc3.webp",982,1270,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/ccda744df6ee409dc0fb9969b823877f.webp",981,1269,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/b5d0d6e553798f0d369a4e56d74288d8.webp",980,1268,{"list":162,"token":11},[163,169,176,182,189,195,202,208,214,220],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":123,"category_name":29,"create_tm":168},670638,"Excel Fundamentals - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988696945/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232959&Signature=mt2bJinwkBri1ULUTuJ02JjlvCw%3D","excel-fundamentals-read-online-free",1793570536,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":29,"create_tm":175},289123,"Excel Shortcuts Cheat Sheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229902981705/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232959&Signature=2MZzJBwfGdvUOfvFWKU37S3%2FJW0%3D","excel-shortcuts-cheat-sheet",33,1789634595,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":101,"category_name":29,"create_tm":181},670627,"xl() - Excel file I/O class","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988345218/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232959&Signature=5UnK0W6XT6DRYwffAaeszBHafpc%3D","xl-excel-file-io-class",1793570389,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":187,"category_name":29,"create_tm":188},488683,"Excel Basics for Account Reconciliation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927086112/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232959&Signature=3mVE%2BX7cCFGdE7IML04f9GnTsW0%3D","excel-basics-for-account-reconciliation",17,1790815981,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":117,"category_name":29,"create_tm":194},289130,"Microsoft Excel 2013 Manuals - Introduction - Getting Started","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229902981763/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232959&Signature=VVSrjSrc%2BIpIQrCoJVd7d%2F%2F8Ep0%3D","microsoft-excel-2013-manuals-introduction-getting-started",1789634605,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":200,"category_name":29,"create_tm":201},389802,"Chapter 23 - Customizing the Kaplan-Meier Survival Plot","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917132954/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232959&Signature=8Y5WwP0xo%2Bmw%2FRGlcokocRlFwh4%3D","chapter-23-customizing-the-kaplan-meier-survival-plot",12,1790327707,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":33,"category_name":29,"create_tm":207},693583,"An Introduction to SQL in SAS®","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005517124/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232959&Signature=GOeQcvLe0WzvriEPu20o9lZctwE%3D","an-introduction-to-sql-in-sas",1794290693,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":105,"category_name":29,"create_tm":213},688572,"Excel XP Shortcuts, Tips & Tricks - Tips & Tricks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000659844/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232959&Signature=GZUqmat7cAOEu4zpqoEIXqR7rzM%3D","excel-xp-shortcuts-tips-tricks-tips-tricks",1794089774,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":123,"category_name":29,"create_tm":219},670623,"Working with Multiple Worksheets within a Workbook - Rename, Copy/Move, Reference, Insert/Delete, Hide/Unhide, and Color Sheet Tabs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988344933/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232959&Signature=klA1NwWX5o3ZAoYmyB4smp8wLBs%3D","working-with-multiple-worksheets-within-a-workbook-rename-copymove-reference-insertdelete-hideunhide-and-color-sheet-tabs",1793570337,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":26,"category_name":29,"create_tm":225},760349,"QuickBooks Online Tips & Tricks - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044497565/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232959&Signature=S3kxREIo0fNJi2nyX8mulkQva1I%3D","quickbooks-online-tips-tricks-guide",1795899738]