<?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 SAS enterprise guide 7.1: Stored process PDF output display in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-enterprise-guide-7-1-Stored-process-PDF-output-display/m-p/692671#M37336</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two different projects both can run correctly under HTML,&amp;nbsp; but when _odsdest had values defined as PDF and Word, somehow one can have right Word and PDF file generated and another was only with messy code displayed. I appreciate any help on how to fix the bad one. I compared all SAS macro variables and looked they are the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Limin Shu&lt;/P&gt;
&lt;P&gt;%macro print;&lt;/P&gt;
&lt;P&gt;%if %upcase(&amp;amp;_odsdest) eq PDF %then %do; &lt;BR /&gt;%let rc = %sysfunc(stpsrv_header(Content-type,application/vnd.pdf));&lt;BR /&gt;%let rc = %sysfunc(stpsrv_header(Content-disposition,attachment%str(;) filename=mypdf.pdf));&lt;BR /&gt;%let _odsdest=PDF;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %upcase(&amp;amp;_odsdest) eq HTML %then %do;&lt;BR /&gt;%let _odsdest=html;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %upcase(&amp;amp;_odsdest) eq HTML2WORD %then %do;&lt;BR /&gt;%let rc = %sysfunc(stpsrv_header(Content-type,application/msword));&lt;BR /&gt;%let rc = %sysfunc(stpsrv_header(Content-disposition,attachment%str(;) filename=report.doc));&lt;BR /&gt;%let _odsdest=RTF;&lt;BR /&gt;%end;&lt;/P&gt;
&lt;P&gt;%STPBEGIN;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;%Super_2pt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;%Plotout;&lt;/P&gt;
&lt;P&gt;%STPEND;&lt;/P&gt;
&lt;P&gt;%done: &lt;BR /&gt;%mend print; &lt;BR /&gt;%PRINT;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2020 18:59:15 GMT</pubDate>
    <dc:creator>herbman</dc:creator>
    <dc:date>2020-10-19T18:59:15Z</dc:date>
    <item>
      <title>SAS enterprise guide 7.1: Stored process PDF output display</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-enterprise-guide-7-1-Stored-process-PDF-output-display/m-p/692671#M37336</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two different projects both can run correctly under HTML,&amp;nbsp; but when _odsdest had values defined as PDF and Word, somehow one can have right Word and PDF file generated and another was only with messy code displayed. I appreciate any help on how to fix the bad one. I compared all SAS macro variables and looked they are the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Limin Shu&lt;/P&gt;
&lt;P&gt;%macro print;&lt;/P&gt;
&lt;P&gt;%if %upcase(&amp;amp;_odsdest) eq PDF %then %do; &lt;BR /&gt;%let rc = %sysfunc(stpsrv_header(Content-type,application/vnd.pdf));&lt;BR /&gt;%let rc = %sysfunc(stpsrv_header(Content-disposition,attachment%str(;) filename=mypdf.pdf));&lt;BR /&gt;%let _odsdest=PDF;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %upcase(&amp;amp;_odsdest) eq HTML %then %do;&lt;BR /&gt;%let _odsdest=html;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %upcase(&amp;amp;_odsdest) eq HTML2WORD %then %do;&lt;BR /&gt;%let rc = %sysfunc(stpsrv_header(Content-type,application/msword));&lt;BR /&gt;%let rc = %sysfunc(stpsrv_header(Content-disposition,attachment%str(;) filename=report.doc));&lt;BR /&gt;%let _odsdest=RTF;&lt;BR /&gt;%end;&lt;/P&gt;
&lt;P&gt;%STPBEGIN;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;%Super_2pt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;%Plotout;&lt;/P&gt;
&lt;P&gt;%STPEND;&lt;/P&gt;
&lt;P&gt;%done: &lt;BR /&gt;%mend print; &lt;BR /&gt;%PRINT;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 18:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-enterprise-guide-7-1-Stored-process-PDF-output-display/m-p/692671#M37336</guid>
      <dc:creator>herbman</dc:creator>
      <dc:date>2020-10-19T18:59:15Z</dc:date>
    </item>
  </channel>
</rss>

