<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proc report to SAS HTML in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286812#M16451</link>
    <description>&lt;P&gt;This is not proc report, this is part of a data step that creates text output. In this case, it is used to create MIME/HTML/XML code "manually", without using SAS ODS or other helpers.&lt;/P&gt;
&lt;P&gt;Since important parts of the code are missing (the start of the macro definition, for instance, and parts of the data step), it is not possible to thoroughly help you.&lt;/P&gt;
&lt;P&gt;One thing that stands out is a run; statement right in between, followed immediately by another put; sequence. This can't work, as you need a new DATA statement after the step boundary caused by the run;&lt;/P&gt;
&lt;P&gt;To further understand the code, one would also need the dataset that is used as base for the data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2016 10:42:47 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-07-25T10:42:47Z</dc:date>
    <item>
      <title>Proc report to SAS HTML</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286782#M16444</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can any one tell me how to write SAS HTML code for proc report for genrating ODS output&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rajasekhar.B&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 06:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286782#M16444</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2016-07-25T06:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report to SAS HTML</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286787#M16445</link>
      <description>&lt;P&gt;You don't write HTML code.&lt;/P&gt;
&lt;P&gt;You use &lt;A href="http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/viewer.htm#a002175885.htm" target="_blank"&gt;ODS HTML&lt;/A&gt; (and the proper options) and then simply run your proc report. Then you use ODS HTML CLOSE to close the HTML destination.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 07:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286787#M16445</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-07-25T07:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report to SAS HTML</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286790#M16446</link>
      <description>&lt;P&gt;If you need sample code please see here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/sas/faq/sas2pdf.htm" target="_blank"&gt;http://www.ats.ucla.edu/stat/sas/faq/sas2pdf.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 07:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286790#M16446</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-25T07:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report to SAS HTML</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286798#M16447</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to debug below code , can any one help me how to understand below inforamtion&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if _n_=1 then do;&lt;BR /&gt; put "MIME-Version: 1.0";&lt;BR /&gt; put "Content-Type: multipart/related; boundary=""----=_NextPart_01CC720C.7373BA80""";&lt;BR /&gt; put ;&lt;BR /&gt; put "------=_NextPart_01CC720C.7373BA80";&lt;BR /&gt; put "Content-Location: file:///C:/main-document.htm";&lt;BR /&gt; put "Content-Transfer-Encoding: quoted-printable";&lt;BR /&gt; put "Content-Type: text/html; charset=""us-ascii""";&lt;BR /&gt; put ;&lt;BR /&gt; put "&amp;lt;html xmlns:v=3D""urn:schemas-microsoft-com:vml""";&lt;BR /&gt; put "xmlns:o=3D""urn:schemas-microsoft-com:office:office""";&lt;BR /&gt; put "xmlns:w=3D""urn:schemas-microsoft-com:office:word""";&lt;BR /&gt; put "xmlns:m=3D""&lt;A href="http://schemas.microsoft.com/office/2004/12/omml" target="_blank"&gt;http://schemas.microsoft.com/office/2004/12/omml&lt;/A&gt;""";&lt;BR /&gt; put "xmlns=3D""&lt;A href="http://www.w3.org/TR/REC-html40" target="_blank"&gt;http://www.w3.org/TR/REC-html40&lt;/A&gt;""&amp;gt;";&lt;BR /&gt; put ;&lt;BR /&gt; put '&amp;lt;head&amp;gt;';&lt;/P&gt;
&lt;P&gt;/* document metadata */&lt;BR /&gt; put '&amp;lt;!--[if gte mso 9]&amp;gt;';&lt;BR /&gt; put ' &amp;lt;xml&amp;gt;';&lt;BR /&gt; put " &amp;lt;o:DocumentProperties&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:Subject&amp;gt;&amp;lt;/o:Subject&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:Author&amp;gt;&amp;amp;sysuserid&amp;lt;/o:Author&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:LastAuthor&amp;gt;&amp;amp;sysuserid&amp;lt;/o:LastAuthor&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:Created&amp;gt;%sysfunc(date(),yymmdd10.)T%sysfunc(time(),time8.)Z&amp;lt;/o:Created&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:LastSaved&amp;gt;%sysfunc(date(),yymmdd10.)T%sysfunc(time(),time8.)Z&amp;lt;/o:LastSaved&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:Category&amp;gt;clinical / statistical analysis&amp;lt;/o:Category&amp;gt;";&lt;BR /&gt; put " &amp;lt;/o:DocumentProperties&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:CustomDocumentProperties&amp;gt;";&lt;BR /&gt; put " &amp;lt;/o:CustomDocumentProperties&amp;gt;";&lt;BR /&gt; put " &amp;lt;w:WordDocument&amp;gt;";&lt;BR /&gt; put " &amp;lt;w:SpellingState&amp;gt;Clean&amp;lt;/w:SpellingState&amp;gt;";&lt;BR /&gt; put " &amp;lt;w:GrammarState&amp;gt;Clean&amp;lt;/w:GrammarState&amp;gt;";&lt;BR /&gt; put " &amp;lt;w:View&amp;gt;Print&amp;lt;/w:View&amp;gt;";&lt;BR /&gt; put " &amp;lt;/w:WordDocument&amp;gt;";&lt;BR /&gt; put ' &amp;lt;/xml&amp;gt;';&lt;BR /&gt; put '&amp;lt;![endif]--&amp;gt;';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put '&amp;lt;![endif]--&amp;gt;';&lt;BR /&gt; put '&amp;lt;/head&amp;gt;';&lt;BR /&gt; put '&amp;lt;body&amp;gt;';&lt;BR /&gt; put " &amp;lt;div class=3DWordSection1&amp;gt;";&lt;BR /&gt; %if %qupcase(&amp;amp;type)=NARRATIVE %then %do;&lt;BR /&gt; put " &amp;lt;h1&amp;gt;Table of Narratives&amp;lt;/h1&amp;gt;";&lt;BR /&gt; %end;&lt;BR /&gt; %if %qupcase(&amp;amp;type)=PROFILE %then %do;&lt;BR /&gt; put " &amp;lt;h1&amp;gt;Table of Subject Profiles&amp;lt;/h1&amp;gt;";&lt;BR /&gt; %end;&lt;BR /&gt; %if %qupcase(&amp;amp;type)=LISTING %then %do;&lt;BR /&gt; put " &amp;lt;h1&amp;gt;Table of Subject Data Listings&amp;lt;/h1&amp;gt;";&lt;BR /&gt; %end;&lt;BR /&gt; end;&lt;BR /&gt; if _n_=1 then do;&lt;BR /&gt; put '&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&amp;lt;table class=3DTOC width=3D"' "%sysevalf(%sysfunc(min(12,%sysevalf(84/&amp;amp;_selections)))*&amp;amp;_selections+16) " '%"&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; if first.subjid then do;&lt;BR /&gt; if missing(subjid) then do;&lt;BR /&gt; put "&amp;lt;thead&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th class=3DTOC width=3D""16%""&amp;gt;Narrative Subject Identifier&amp;lt;br&amp;gt;n=3D&amp;amp;_allNarratives&amp;lt;/th&amp;gt;";&lt;BR /&gt; end;&lt;BR /&gt; else do;&lt;BR /&gt; put "&amp;lt;tr&amp;gt;&amp;lt;td class=3DTOC&amp;gt;" '&amp;lt;a href=3D"#' usubjid +(-1) '"&amp;gt;' subjid +(-1) '&amp;lt;/a&amp;gt;' "&amp;lt;/td&amp;gt;";&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt; if missing(subjid) then do;&lt;BR /&gt; put "&amp;lt;th class=3DTOC width=3D""%sysfunc(min(12,%sysevalf(84/&amp;amp;_selections)))%""&amp;gt;" _text '&amp;lt;br&amp;gt;n=3D' _cntNarratives '&amp;lt;/th&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; else do;&lt;BR /&gt; if _nrQualifies&lt;BR /&gt; then put "&amp;lt;td class=3DTOC&amp;gt;X&amp;lt;/td&amp;gt;";&lt;BR /&gt; else put '&amp;lt;td class=3DTOC&amp;gt;&amp;amp;nbsp;&amp;lt;/td&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; if last.subjid then do;&lt;BR /&gt; put '&amp;lt;/tr&amp;gt;';&lt;BR /&gt; if missing(usubjid) then put '&amp;lt;/thead&amp;gt;&amp;lt;tbody&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; if eof then do;&lt;BR /&gt; put '&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;';&lt;BR /&gt; put "&amp;lt;br clear=3Dall style=3D'mso-special-character:line-break;page-break-before:always'&amp;gt;";&lt;BR /&gt; %if %upcase(&amp;amp;document) ne ALL %then %do;&lt;BR /&gt; put ' &amp;lt;/div&amp;gt;';&lt;BR /&gt; put ' &amp;lt;/body&amp;gt;';&lt;BR /&gt; put '&amp;lt;/html&amp;gt;';&lt;BR /&gt; put ;&lt;BR /&gt; put "------=_NextPart_01CC720C.7373BA80";&lt;BR /&gt; put "Content-Location: file:///C:/main-document-files/header.htm";&lt;BR /&gt; put "Content-Transfer-Encoding: quoted-printable";&lt;BR /&gt; put "Content-Type: text/html; charset=""us-ascii""";&lt;BR /&gt; put ;&lt;BR /&gt; put "&amp;lt;html xmlns:v=3D""urn:schemas-microsoft-com:vml""";&lt;BR /&gt; put "xmlns:o=3D""urn:schemas-microsoft-com:office:office""";&lt;BR /&gt; put "xmlns:w=3D""urn:schemas-microsoft-com:office:word""";&lt;BR /&gt; put "xmlns:m=3D""&lt;A href="http://schemas.microsoft.com/office/2004/12/omml" target="_blank"&gt;http://schemas.microsoft.com/office/2004/12/omml&lt;/A&gt;""";&lt;BR /&gt; put "xmlns=3D""&lt;A href="http://www.w3.org/TR/REC-html40" target="_blank"&gt;http://www.w3.org/TR/REC-html40&lt;/A&gt;""&amp;gt;";&lt;BR /&gt; put "&amp;lt;body lang=3DEN-US&amp;gt;";&lt;BR /&gt; put "&amp;lt;div style=3D'mso-element:header' id=3Dh1&amp;gt;";&lt;BR /&gt; put "&amp;lt;p class=3DMsoHeader style=3D""text-align:right""&amp;gt;";&lt;BR /&gt; put "&amp;lt;span style=3D'mso-field-code:"" STYLEREF \0022Heading 1\0022 \\* =";&lt;BR /&gt; put "MERGEFORMAT ""'&amp;gt;&amp;lt;/span&amp;gt;";&lt;BR /&gt; put "&amp;lt;/p&amp;gt;";&lt;BR /&gt; put "&amp;lt;/div&amp;gt;";&lt;BR /&gt; put "&amp;lt;div style=3D'mso-element:footer' id=3Df1&amp;gt;";&lt;BR /&gt; put "&amp;lt;p style=3d'mso-border-top-alt:solid windowtext .25pt;'&amp;gt;" &amp;amp;footnote "&amp;lt;/p&amp;gt;";&lt;BR /&gt; put "&amp;lt;p class=3DMsoHeader&amp;gt;Page &amp;lt;!--[if supportFields]&amp;gt;&amp;lt;span style=3D'mso-element=";&lt;BR /&gt; put ':field-begin''&amp;gt;&amp;lt;/span&amp;gt;PAGE&amp;amp;nbsp;\* MERGEFORMAT &amp;lt;span style=3D''mso-element:field-end''&amp;gt;';&lt;BR /&gt; put "&amp;lt;/span&amp;gt;";&lt;BR /&gt; put "of &amp;lt;!--[if supportFields]&amp;gt;&amp;lt;span style=3D'mso-element=";&lt;BR /&gt; put ':field-begin''&amp;gt;&amp;lt;/span&amp;gt;NUMPAGES&amp;amp;nbsp;\# &amp;amp;quot;0&amp;amp;quot;&amp;amp;nbsp; \* MERGEFORMAT &amp;lt;span style=3D''mso-element:field-end''&amp;gt;';&lt;BR /&gt; put '&amp;lt;/span&amp;gt;&amp;amp;nbsp;&amp;amp;#9632;&amp;amp;nbsp;' "Creation Date %sysfunc(datetime(),datetime.)" '&amp;amp;nbsp&amp;amp;#9632;&amp;amp;nbsp;';&lt;BR /&gt; put "Program: &amp;amp;_SASFILEPATH_";&lt;BR /&gt; put "&amp;lt;/p&amp;gt;";&lt;BR /&gt; put "&amp;lt;/div&amp;gt;";&lt;BR /&gt; put "&amp;lt;/body&amp;gt;";&lt;BR /&gt; put "&amp;lt;/html&amp;gt;";&lt;BR /&gt; put;&lt;BR /&gt; put "------=_NextPart_01CC720C.7373BA80--";&lt;BR /&gt; %end;&lt;BR /&gt; end;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put "MIME-Version: 1.0";&lt;BR /&gt; put "Content-Type: multipart/related; boundary=""----=_NextPart_01CC720C.7373BA80""";&lt;BR /&gt; put ;&lt;BR /&gt; put "------=_NextPart_01CC720C.7373BA80";&lt;BR /&gt; put "Content-Location: file:///C:/main-document.htm";&lt;BR /&gt; put "Content-Transfer-Encoding: quoted-printable";&lt;BR /&gt; put "Content-Type: text/html; charset=""us-ascii""";&lt;BR /&gt; put ;&lt;BR /&gt; put "&amp;lt;html xmlns:v=3D""urn:schemas-microsoft-com:vml""";&lt;BR /&gt; put "xmlns:o=3D""urn:schemas-microsoft-com:office:office""";&lt;BR /&gt; put "xmlns:w=3D""urn:schemas-microsoft-com:office:word""";&lt;BR /&gt; put "xmlns:m=3D""&lt;A href="http://schemas.microsoft.com/office/2004/12/omml" target="_blank"&gt;http://schemas.microsoft.com/office/2004/12/omml&lt;/A&gt;""";&lt;BR /&gt; put "xmlns=3D""&lt;A href="http://www.w3.org/TR/REC-html40" target="_blank"&gt;http://www.w3.org/TR/REC-html40&lt;/A&gt;""&amp;gt;";&lt;BR /&gt; put ;&lt;BR /&gt; put '&amp;lt;head&amp;gt;';&lt;/P&gt;
&lt;P&gt;/* document metadata */&lt;BR /&gt; put '&amp;lt;!--[if gte mso 9]&amp;gt;';&lt;BR /&gt; put ' &amp;lt;xml&amp;gt;';&lt;BR /&gt; put " &amp;lt;o:DocumentProperties&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:Subject&amp;gt;&amp;lt;/o:Subject&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:Author&amp;gt;&amp;amp;sysuserid&amp;lt;/o:Author&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:LastAuthor&amp;gt;&amp;amp;sysuserid&amp;lt;/o:LastAuthor&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:Created&amp;gt;%sysfunc(date(),yymmdd10.)T%sysfunc(time(),time8.)Z&amp;lt;/o:Created&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:LastSaved&amp;gt;%sysfunc(date(),yymmdd10.)T%sysfunc(time(),time8.)Z&amp;lt;/o:LastSaved&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:Category&amp;gt;clinical / statistical analysis&amp;lt;/o:Category&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:Company&amp;gt;Tibotec BVBA&amp;lt;/o:Company&amp;gt;";&lt;BR /&gt; put " &amp;lt;/o:DocumentProperties&amp;gt;";&lt;BR /&gt; put " &amp;lt;o:CustomDocumentProperties&amp;gt;";&lt;BR /&gt; put " &amp;lt;/o:CustomDocumentProperties&amp;gt;";&lt;BR /&gt; put " &amp;lt;w:WordDocument&amp;gt;";&lt;BR /&gt; put " &amp;lt;w:SpellingState&amp;gt;Clean&amp;lt;/w:SpellingState&amp;gt;";&lt;BR /&gt; put " &amp;lt;w:GrammarState&amp;gt;Clean&amp;lt;/w:GrammarState&amp;gt;";&lt;BR /&gt; put " &amp;lt;w:View&amp;gt;Print&amp;lt;/w:View&amp;gt;";&lt;BR /&gt; put " &amp;lt;/w:WordDocument&amp;gt;";&lt;BR /&gt; put ' &amp;lt;/xml&amp;gt;';&lt;BR /&gt; put '&amp;lt;![endif]--&amp;gt;';&lt;/P&gt;
&lt;P&gt;/* css stylesheet */&lt;BR /&gt; %nrstyle;&lt;BR /&gt; put '&amp;lt;![endif]--&amp;gt;';&lt;BR /&gt; put '&amp;lt;/head&amp;gt;';&lt;BR /&gt; put '&amp;lt;body&amp;gt;';&lt;BR /&gt; put " &amp;lt;div class=3DWordSection1&amp;gt;";&lt;BR /&gt; end;&lt;BR /&gt; %end;&lt;BR /&gt; if first.usubjid then do;&lt;BR /&gt; _display + 1;&lt;BR /&gt; put "&amp;lt;h1 style=3D""margin-left:81pt;text-indent: -81pt;""&amp;gt;";&lt;BR /&gt; %if %qupcase(&amp;amp;type)=NARRATIVE %then %do;&lt;BR /&gt; put 'Narrative Display';&lt;BR /&gt; %end;&lt;BR /&gt; %if %qupcase(&amp;amp;type)=PROFILE %then %do;&lt;BR /&gt; put 'Patient Profile';&lt;BR /&gt; %end;&lt;BR /&gt; %if %qupcase(&amp;amp;type)=LISTING %then %do;&lt;BR /&gt; put 'Patient Listing';&lt;BR /&gt; %end;&lt;/P&gt;
&lt;P&gt;put '&amp;lt;span style=3D''mso-field-code:"SEQ Table \\* ARABIC"''&amp;gt;' _display +(-1) ':&amp;amp;nbsp;&amp;lt;/span&amp;gt;';&lt;BR /&gt; put '&amp;lt;a name=3D"' usubjid +(-1) '"&amp;gt;Subject ' usubjid +(-1) @;&lt;BR /&gt; put '&amp;lt;/a&amp;gt;&amp;lt;/h1&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; if _module ne 'COMMENTS' then do;&lt;BR /&gt; select(_type);&lt;BR /&gt; when('SECTION HEADER') do;&lt;BR /&gt; put ' &amp;lt;h2&amp;gt;&amp;amp;#9632;&amp;amp;nbsp;';&lt;BR /&gt; put _text +(-1) @;&lt;BR /&gt; if _comments then do;&lt;BR /&gt; put '&amp;lt;a href=3D"#' _commentId +(-1) '"&amp;gt;&amp;lt;sup&amp;gt; Comment ' _commentNo +(-1) '&amp;lt;/sup&amp;gt;&amp;lt;/a&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; put '&amp;lt;/h2&amp;gt;';&lt;BR /&gt; _newSection=1;&lt;BR /&gt; end;&lt;BR /&gt; when('SELECTION')&lt;BR /&gt; do;&lt;BR /&gt; %if %qupcase(&amp;amp;type)=NARRATIVE %then %do;&lt;BR /&gt; if first.usubjid then do;&lt;BR /&gt; put ' &amp;lt;h2&amp;gt;&amp;amp;#9632;&amp;amp;nbsp;';&lt;BR /&gt; put 'REASON FOR NARRATIVE SELECTION';&lt;BR /&gt; put '&amp;lt;/h2&amp;gt;';&lt;BR /&gt; put ' &amp;lt;p class=3Dselection&amp;gt;';&lt;BR /&gt; _newSection = 0;&lt;BR /&gt; end;&lt;BR /&gt; put _text;&lt;BR /&gt; if last.usubjid then do;&lt;BR /&gt; put ' &amp;lt;/p&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; else put '&amp;lt;/p&amp;gt;&amp;lt;p class=3Dselection&amp;gt;';&lt;BR /&gt; %end;&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;when('NO DATA REPORTED') do;&lt;BR /&gt; put ' &amp;lt;p class=3Dselection&amp;gt;';&lt;BR /&gt; put _text +(-1) '&amp;lt;/p&amp;gt;';&lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;when('LIST LABEL') do;&lt;BR /&gt; if _newSection then do;&lt;BR /&gt; if _columns=1 then do;&lt;BR /&gt; put ' &amp;lt;p class=3Dlist&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; else do;&lt;BR /&gt; put '&amp;lt;table width=3D"100 %"&amp;gt;&amp;lt;tr&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; _newSection = 0;&lt;BR /&gt; end;&lt;BR /&gt; if _columns&amp;gt;1 then do;&lt;BR /&gt; if first._column then do;&lt;BR /&gt; put '&amp;lt;td style=3D"padding-right:6 pt"&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt; put '&amp;lt;span class=3DlistLabel&amp;gt;' _text +(-1) ':&amp;lt;/span&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; when('LIST DATA') do;&lt;BR /&gt; if _columns eq 1 then do;&lt;BR /&gt; if _newSection then do;&lt;BR /&gt; put ' &amp;lt;p class=3Dlist&amp;gt;';&lt;BR /&gt; _newSection = 0;&lt;BR /&gt; end;&lt;BR /&gt; if _text eq '&amp;lt;br&amp;gt;' then do;&lt;BR /&gt; put '&amp;lt;br&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; else do;&lt;BR /&gt; put '&amp;lt;span class=3DlistData&amp;gt;' _text +(-1) '&amp;lt;/span&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; ';&lt;BR /&gt; end;&lt;BR /&gt; if last._dsno then put ' &amp;lt;/p&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; else do;&lt;BR /&gt; if _newSection then do;&lt;BR /&gt; put ' &amp;lt;table width=3D"100 %"&amp;gt;&amp;lt;tr&amp;gt;';&lt;BR /&gt; _newSection = 0;&lt;BR /&gt; end;&lt;BR /&gt; if first._column then do;&lt;BR /&gt; put '&amp;lt;td style=3D"padding-right:6pt"&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; put '&amp;lt;span class=3DlistData&amp;gt;' _text +(-1) '&amp;lt;/span&amp;gt;';&lt;BR /&gt; if last._column then put ' &amp;lt;/td&amp;gt;';&lt;BR /&gt; if last._dsno then put ' &amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt; when('TABLE HEADER') do;&lt;BR /&gt; if first._lineno then do;&lt;BR /&gt; if _lineno=1 then put ' &amp;lt;table&amp;gt;&amp;lt;thead&amp;gt;';&lt;BR /&gt; put ' &amp;lt;tr class=3Dtrhead&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; if not last._lineno then do;&lt;BR /&gt; put ' &amp;lt;th class=3DfirstTH style=3D"text-align:'@;&lt;BR /&gt; end;&lt;BR /&gt; else do;&lt;BR /&gt; put ' &amp;lt;th class=3DlastTH style=3D"text-align:'@;&lt;BR /&gt; end;&lt;BR /&gt; if _vtype='C' then put 'left"&amp;gt;';else put 'right"&amp;gt;';&lt;BR /&gt; put '&amp;lt;p class=3Dindented&amp;gt;';&lt;BR /&gt; put _text +(-1);&lt;BR /&gt; put '&amp;lt;/p&amp;gt;';&lt;BR /&gt; put '&amp;lt;/th&amp;gt;';&lt;BR /&gt; if last._lineno then put ' &amp;lt;/tr&amp;gt;&amp;lt;/thead&amp;gt;&amp;lt;tbody&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; when('TABLE DATA') do;&lt;BR /&gt; if first._lineno then do;&lt;BR /&gt; put ' &amp;lt;tr&amp;gt;';&lt;BR /&gt; if _comments then do;&lt;BR /&gt; _text=trim(_text)||'&amp;lt;a href=3D"#'||trim(_commentId)||'"&amp;gt;&amp;lt;sup&amp;gt; Comment&amp;amp;nbsp;'||strip(vvalue(_commentNo))||'&amp;lt;/sup&amp;gt;&amp;lt;/a&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt; if not last._lineno then do;&lt;BR /&gt; put ' &amp;lt;td class=3DfirstTD style=3D"text-align:';&lt;BR /&gt; end;&lt;BR /&gt; else do;&lt;BR /&gt; put ' &amp;lt;td class=3DlastTD style=3D"text-align:';&lt;BR /&gt; end;&lt;BR /&gt; if _vtype='C' then put 'left"&amp;gt;';else put 'right"&amp;gt;';&lt;BR /&gt; put "&amp;lt;p class=3Dindented&amp;gt;";&lt;BR /&gt; put _text +(-1);&lt;BR /&gt; put "&amp;lt;/p&amp;gt;";&lt;BR /&gt; put '&amp;lt;/td&amp;gt;';&lt;BR /&gt; if last._lineno then do;&lt;BR /&gt; put ' &amp;lt;/tr&amp;gt;';&lt;BR /&gt; if last._dsno then put ' &amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt; if last._dsno and _footnote ne ' ' then do;&lt;BR /&gt; put '&amp;lt;p style=3D"margin-left:12pt;margin-top:4pt;font-size:9pt"&amp;gt;&amp;lt;i&amp;gt;' _footnote '&amp;lt;/i&amp;gt;&amp;lt;/p&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt; else do;&lt;BR /&gt; if first._module then do;&lt;BR /&gt; put ' &amp;lt;h2&amp;gt;&amp;amp;#9632;&amp;amp;nbsp;Comments&amp;lt;/h2&amp;gt;';&lt;BR /&gt; put ' &amp;lt;table&amp;gt;&amp;lt;thead&amp;gt;&amp;lt;tr class=3Dtrhead&amp;gt;';&lt;BR /&gt; put ' &amp;lt;th class=3DfirstTH style=3D"text-align:right"&amp;gt;&amp;lt;p class=3Dthpl&amp;gt;Comment #&amp;lt;/p&amp;gt;&amp;lt;/th&amp;gt;';&lt;BR /&gt; put ' &amp;lt;th class=3DlastTH style=3D"text-align:left"&amp;gt;&amp;lt;p class=3Dthpl&amp;gt;Comment&amp;lt;/p&amp;gt;&amp;lt;/th&amp;gt;';&lt;BR /&gt; put ' &amp;lt;/tr&amp;gt;&amp;lt;/thead&amp;gt;&amp;lt;tbody&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; put ' &amp;lt;tr&amp;gt;';&lt;BR /&gt; _dcommentno + 1;&lt;BR /&gt; put ' &amp;lt;td class3D=firstTH style3D="text-align:right"&amp;gt;&amp;lt;a name=3D"' _commentId +(-1) '"&amp;gt;&amp;lt;/a&amp;gt;' _commentno '&amp;lt;/td&amp;gt;';&lt;BR /&gt; put ' &amp;lt;td class=3DlastTH style=3D"text-align:left"&amp;gt;' comments '&amp;lt;/td&amp;gt;';&lt;BR /&gt; put ' &amp;lt;/tr&amp;gt;';&lt;BR /&gt; if last._module then do;&lt;BR /&gt; put '&amp;lt;/tbody&amp;gt;';&lt;BR /&gt; put '&amp;lt;/table&amp;gt;';&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt; if last.usubjid then do;&lt;BR /&gt; %if %qupcase(&amp;amp;type)=NARRATIVE %then %do;&lt;BR /&gt; put ' &amp;lt;h2&amp;gt;&amp;amp;#9632;&amp;amp;nbsp;';&lt;BR /&gt; put 'NARRATIVE TEXT&amp;lt;/h2&amp;gt;';&lt;BR /&gt; put ' &amp;lt;p class=3Dselection&amp;gt;To be completed&amp;lt;/p&amp;gt;';&lt;BR /&gt; %end;&lt;BR /&gt; if not last._outfile then put " &amp;lt;br clear=3Dall style=3D'mso-special-character:line-break;page-break-before:always'&amp;gt;";&lt;BR /&gt; end;&lt;BR /&gt; if last._outfile then do;&lt;BR /&gt; put ' &amp;lt;/div&amp;gt;';&lt;BR /&gt; put ' &amp;lt;/body&amp;gt;';&lt;BR /&gt; put '&amp;lt;/html&amp;gt;';&lt;BR /&gt; put ;&lt;BR /&gt; put "------=_NextPart_01CC720C.7373BA80";&lt;BR /&gt; put "Content-Location: file:///C:/main-document-files/header.htm";&lt;BR /&gt; put "Content-Transfer-Encoding: quoted-printable";&lt;BR /&gt; put "Content-Type: text/html; charset=""us-ascii""";&lt;BR /&gt; put ;&lt;BR /&gt; put "&amp;lt;html xmlns:v=3D""urn:schemas-microsoft-com:vml""";&lt;BR /&gt; put "xmlns:o=3D""urn:schemas-microsoft-com:office:office""";&lt;BR /&gt; put "xmlns:w=3D""urn:schemas-microsoft-com:office:word""";&lt;BR /&gt; put "xmlns:m=3D""&lt;A href="http://schemas.microsoft.com/office/2004/12/omml" target="_blank"&gt;http://schemas.microsoft.com/office/2004/12/omml&lt;/A&gt;""";&lt;BR /&gt; put "xmlns=3D""&lt;A href="http://www.w3.org/TR/REC-html40" target="_blank"&gt;http://www.w3.org/TR/REC-html40&lt;/A&gt;""&amp;gt;";&lt;BR /&gt; put "&amp;lt;body lang=3DEN-US&amp;gt;";&lt;BR /&gt; put "&amp;lt;div style=3D'mso-element:header' id=3Dh1&amp;gt;";&lt;BR /&gt; put "&amp;lt;p class=3DMsoHeader style=3D""text-align:right""&amp;gt;";&lt;BR /&gt; put "&amp;lt;span style=3D'mso-field-code:"" STYLEREF \0022Heading 1\0022 \\* =";&lt;BR /&gt; put "MERGEFORMAT ""'&amp;gt;&amp;lt;/span&amp;gt;";&lt;BR /&gt; put "&amp;lt;/p&amp;gt;";&lt;BR /&gt; put "&amp;lt;/div&amp;gt;";&lt;BR /&gt; put "&amp;lt;div style=3D'mso-element:footer' id=3Df1&amp;gt;";&lt;BR /&gt; put "&amp;lt;p style=3d'mso-border-top-alt:solid windowtext .25pt;'&amp;gt;" &amp;amp;footnote "&amp;lt;/p&amp;gt;";&lt;BR /&gt; put "&amp;lt;p class=3DMsoHeader&amp;gt;Page &amp;lt;!--[if supportFields]&amp;gt;&amp;lt;span style=3D'mso-element=";&lt;BR /&gt; put ':field-begin''&amp;gt;&amp;lt;/span&amp;gt;PAGE&amp;amp;nbsp;\* MERGEFORMAT &amp;lt;span style=3D''mso-element:field-end''&amp;gt;';&lt;BR /&gt; put "&amp;lt;/span&amp;gt;";&lt;BR /&gt; put "of &amp;lt;!--[if supportFields]&amp;gt;&amp;lt;span style=3D'mso-element=";&lt;BR /&gt; put ':field-begin''&amp;gt;&amp;lt;/span&amp;gt;NUMPAGES&amp;amp;nbsp;\# &amp;amp;quot;0&amp;amp;quot;&amp;amp;nbsp; \* MERGEFORMAT &amp;lt;span style=3D''mso-element:field-end''&amp;gt;';&lt;BR /&gt; put '&amp;lt;/span&amp;gt;&amp;amp;nbsp;&amp;amp;#9632;&amp;amp;nbsp;' "Creation Date %sysfunc(datetime(),datetime.)" '&amp;amp;nbsp&amp;amp;#9632;&amp;amp;nbsp;';&lt;BR /&gt; put "Program: &amp;amp;_SASFILEPATH_";&lt;BR /&gt; put "&amp;lt;/p&amp;gt;";&lt;BR /&gt; put "&amp;lt;/div&amp;gt;";&lt;BR /&gt; put "&amp;lt;/body&amp;gt;";&lt;BR /&gt; put "&amp;lt;/html&amp;gt;";&lt;BR /&gt; put;&lt;BR /&gt; put "------=_NextPart_01CC720C.7373BA80--";&lt;BR /&gt; end;&lt;BR /&gt; run;&lt;BR /&gt; %end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rajasekhar Reddy&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 08:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286798#M16447</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2016-07-25T08:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report to SAS HTML</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286812#M16451</link>
      <description>&lt;P&gt;This is not proc report, this is part of a data step that creates text output. In this case, it is used to create MIME/HTML/XML code "manually", without using SAS ODS or other helpers.&lt;/P&gt;
&lt;P&gt;Since important parts of the code are missing (the start of the macro definition, for instance, and parts of the data step), it is not possible to thoroughly help you.&lt;/P&gt;
&lt;P&gt;One thing that stands out is a run; statement right in between, followed immediately by another put; sequence. This can't work, as you need a new DATA statement after the step boundary caused by the run;&lt;/P&gt;
&lt;P&gt;To further understand the code, one would also need the dataset that is used as base for the data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 10:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-SAS-HTML/m-p/286812#M16451</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-07-25T10:42:47Z</dc:date>
    </item>
  </channel>
</rss>

