[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-681945-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-681945-en":130,"doc-similar-681945":160},{"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","html-for-the-sas-programmer-paper-181-25-how-to-create-html-output-from-sas","HTML for the SAS Programmer - Paper 181-25 - How to create HTML output from SAS","","HTML output is increasingly delivered via the Internet, making basic HTML knowledge valuable for improving how SAS results appear in web pages. This paper presents practical HTML coding techniques tailored to SAS programmers, including how standard SAS output is converted into HTML and how to enhance SAS-generated HTML using embedded HTML features in SAS code. Examples support SAS version 6 and versions 7-8 using corresponding mechanisms.",{"@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/html-for-the-sas-programmer-paper-181-25-how-to-create-html-output-from-sas/681945/",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/html-for-the-sas-programmer-paper-181-25-how-to-create-html-output-from-sas/681945.png","ImageObject",300,407,{"name":42,"@type":43},"The weather in my hometown","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-06",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 is the main purpose of this paper?","Question",{"text":62,"@type":63},"To introduce simple HTML coding techniques that help SAS programmers convert SAS output into more presentable HTML for the web.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How can SAS output be published on the web?",{"text":67,"@type":63},"By converting standard SAS output into HTML files so web browsers can render the results using HTML markup such as tags and structured elements.",{"name":69,"@type":60,"acceptedAnswer":70},"Which SAS versions are supported by the examples?",{"text":71,"@type":63},"The examples can be produced using either SAS version 6 or versions 7-8.","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},681945,1793957213,{"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":110,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":79,"read_time":117,"preview_page_count":33,"preview_urls":143},1374408744247,"https://ap-avatar.wpscdn.com/avatar/14001251d37d565ec6f?x-image-process=image/resize,m_fixed,w_180,h_180&k=1790672120290115972","Internet, Intranets, and The Web  \nPaper 181-25  \nHTML for the SAS􀀁 Programmer  \nLauren Haworth  \nIschemia Research & Education Foundation  \nSan Francisco  \n􀀁 ABSTRACT  \nWith more and more output being delivered via the Internet, a little knowledge of HTML can goa long way toward improving the appearance of your output. This paper introduces some simple HTML coding techniques that are useful for SAS programmers. The paper will show how your SAS output is converted into HTML, and demonstrate HTML tricks that you can use in your SAS code to dress up your SAS HTML output. All of the examples can be produced using either SAS version 6 or versions 7-8.  \n􀀁 INTRODUCTION: HOW TO CREATE HTML OUTPUT FROM SAS  \nThere are several ways you can move your SAS output to the web. If you are going to be doing alot of web publishing, you may want to investigate the SAS/InterNet􀀁 product. However, if you just want to publish the occasional table, report, or printout on the web, you can do this with SAS/BASE􀀁 .  \nTo put your output on the web, you need to convert standard SAS output into HTML files. HTML stands for HyperText Markup Language, and it is the common language understood by web browsers like Netscape and Internet Explorer.  \nTo create HTML-formatted output using SAS version 6, you can download HTML formatting tools from the SAS web site. These include a macro that will format output from any procedure to HTML and a specialized macro that will convert a PROC TABULATE table to an HTML table. There is also a macro that lets you display a SAS dataset on the web. These are all free products.  \nTo create HTML-formatted output using SAS versions 7-8, all you have to do is use the new Output Delivery System and specify HTML asthe output format.  \nBefore getting into the details of syntax for creating HTML output under either version 6 or versions 7-8, let’s look at an actual HTML file to see how it works.  \n􀀁 WHAT YOUR OUTPUT LOOKS LIKE ON THE WEB  \nWhen you create an HTML file from your SAS output, the usual SAS output format of text and numbers separated by spaces is “marked up”with HTML“tags.” These tags tell Internet browsers how to display your output. They identify headers and footers, specify fonts and type sizes, reference images, and point to other locations on the web (hyperlinks) .  \nFor example, the following PROC PRINT output …  \n\n| XYZ Co .\u003Cbr>Market Salary Survey |  |\n| --- | --- |\n| Skill\u003Cbr>SAS Programming HTML Coding SAS + HTML | Average Salary $55,444 $38,450 $64,389 |\n| Based on a completely unscientific survey of job postings on [headhunter.net](headhunter.net) and [dice.com](dice.com) |  |\n\n... would look like this on the web ...  \n…and would contain the HTML code shown in  \nFigure 1.  \nInternet, Intranets, and The Web  \nFIGURE 1: HTML CODE  \n\u003CHTML>  \n\u003CHTML> \u003C/HTML> surrounds all code, and identifies it to the browser as HTML code.  \n\u003CHEAD>\u003CTITLE>My \u003C/HEAD>  \n\u003CBODY>  \nSAS Output\u003C/TITLE>  \n\u003CHEAD> \u003C/HEAD> surrounds your header. In this section, you will find general information that applies to the entire file. The \u003CTITLE> \u003C/TITLE> tags identify the text to display in the browser’s title bar when the page is viewed.  \n\u003CBODY> \u003C/BODY> tags enclose the “guts” of your HTML output. All of the content that will be displayed on the page is contained between these two tags.  \n\u003CPRE>\u003CH3>XYZ Co . Market Salary Survey \u003C/H3>\u003C/PRE>  \n\u003CPRE> \u003C/PRE> enclose a lines of text that you want to have displayed exactly as is, including any spacesand line breaks. \u003CH3> \u003C/H3> enclose lines that you want formatted as a level 3 header. This gives them a larger and bolder font than the rest ofthe body text.  \n\u003CP> ~~ ~~  \n\u003CP> \u003C/P> marks a break between paragraphs. It puts a large break between the lines above and below. If you don’t want such a large break, use the \u003CBR> tag  \n\u003CTABLE BORDER=1>  \n\u003CTABLE> \u003C/TABLE> enclose the code for a table. BORDER=1 controls the width of the borders around and within the table.  \n\u003CB>  \nThe \u003CB> \u003C/B> tags call for a bold ty","cbCaipOZW9MXMNUH","https://ap.wps.com/l/cbCaipOZW9MXMNUH","pdf",298723,"English","# Introduction: How to create HTML output from SAS\n## What your output looks like on the web\n## Creating HTML output using SAS version 6\n## Creating HTML-formatted output using SAS versions 7-8","[{\"question\":\"What is the main purpose of this paper?\",\"answer\":\"To introduce simple HTML coding techniques that help SAS programmers convert SAS output into more presentable HTML for the web.\"},{\"question\":\"How can SAS output be published on the web?\",\"answer\":\"By converting standard SAS output into HTML files so web browsers can render the results using HTML markup such as tags and structured elements.\"},{\"question\":\"Which SAS versions are supported by the examples?\",\"answer\":\"The examples can be produced using either SAS version 6 or versions 7-8.\"}]","HTML for the SAS Programmer - Paper 181-25 - How to create HTML output from SAS | PDF",[144,148,152,156],{"page_no":22,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/97cc042b71dec58c65ff62239a7b0468.webp",983,1272,{"page_no":26,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/abd6100d850a5aa299fcb805c8bb6db8.webp",982,1270,{"page_no":30,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c21a4a70f52ab1cea674d83f8400d762.webp",981,1269,{"page_no":33,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/99e72028e70d11e7413962a8d4886b06.webp",980,1268,{"list":161,"token":11},[162,169,175,180,186,192,199,205,211,218],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":167,"category_name":29,"create_tm":168},290696,"The Little SAS Book - Fifth Edition - Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903739494/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=f7k55uf713rzz9xR23F3Cdz4pT4%3D","the-little-sas-book-fifth-edition-contents",15,1789642381,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":33,"category_name":29,"create_tm":174},721276,"Author File Upload Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024428918/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=yCTBa1r6%2BaglPHa81Wb2fpWotts%3D","author-file-upload-guide",1795043147,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":177,"view_count":30,"category_name":29,"create_tm":179},732844,"complete-html-tags-list-with-examples-free-pdf1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031779762/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=lcQ60zXqCT%2BdJhOlVC7%2Fo%2Bci1KU%3D",1795382433,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":96,"category_name":29,"create_tm":185},689119,"UNIT-1 - Introduction to Internet and Web - Fundamentals of HTML","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001516701/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=618EJuJ%2F1XUudi1zhFAoPfJNFzY%3D","unit-1-introduction-to-internet-and-web-fundamentals-of-html",1794097031,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":33,"category_name":29,"create_tm":191},701085,"MultiMarkdown User’s Guide - Version 6 - Revised 2023-05-25","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012049333/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=LzzrkPW5GOpQNmvhrCOiCW2QPzk%3D","multimarkdown-users-guide-version-6-revised-2023-05-25",1794523295,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":29,"create_tm":198},346435,"Conversion Settings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910941011/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=tUIcttufejGwbfoMdiHjFizu2JQ%3D","conversion-settings",16,1790061451,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":101,"category_name":29,"create_tm":204},688180,"Coding with Minecraft - Unit 7 - 4 Lessons","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001269384/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=7X5WNTnEbtxQRbHd33UuM33eOdE%3D","coding-with-minecraft-unit-7-4-lessons",1794086589,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":30,"category_name":29,"create_tm":210},733752,"Panel & PLC - Appendix A: Panel & PLC Error Code Tables","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031428644/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=tR9UGfPaIryzX6nryk57L2KjZcg%3D","panel-plc-appendix-a-panel-plc-error-code-tables",1795387314,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":29,"create_tm":217},5128,"Coding","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696343468/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=D5Hm9zDAqGxjDilBCAWbRiEZDps%3D","coding",59,1776309249,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":30,"category_name":29,"create_tm":223},683096,"SAS 9.4 Universal Printing - About This Book - Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000020911/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=Ni17GQfaSqI9%2Bbihm6%2BFUhgvowk%3D","sas-94-universal-printing-about-this-book-contents",1793995967]