<?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 Using proc report in SAS Store Procedure in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Using-proc-report-in-SAS-Store-Procedure/m-p/478478#M5741</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created&amp;nbsp;a SP with a proc report definition to format the final result, but when I run the SP from SAS Ad-In for Office in Excel, the result is displayed with no format at all,&amp;nbsp;I tried the macro below but it doesn't worked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO setopt;&lt;BR /&gt;%if %upcase (&amp;amp;_odsdest) = RTF %then %do;&lt;BR /&gt;%let _odsstyle=rtf;&lt;BR /&gt;%let _odsstylesheet=;&lt;BR /&gt;%let _odsoptions=bodytitle startpage=no&lt;BR /&gt;nokeepn notoc_data;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %upcase (&amp;amp;_odsdest)= PDF %then %do;&lt;BR /&gt;%let _odsstyle=printer;&lt;BR /&gt;%let _odsstylesheet=;&lt;BR /&gt;%let _odsoptions=bookmarkgen=no compress=9 startpage=no;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %upcase (&amp;amp;_odsdest)= HTML %then %do;&lt;BR /&gt;%let _odsstyle=sasweb;&lt;BR /&gt;%let _odsstylesheet=;&lt;BR /&gt;%let _odsoptions= rs=none;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %upcase (&amp;amp;_odsdest)=TAGSETS.SASREPORT11 %then %do;&lt;BR /&gt;%let _odsstyle=normal;&lt;BR /&gt;%let _odsstylesheet=;&lt;BR /&gt;%let _odsoptions=;&lt;BR /&gt;%end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA=WORK.QUERY_FOR_FACT_CSAC_BK_0000 nowd headskip&lt;BR /&gt;style(header)= [cellheight=.20in font_weight=bold foreground=white background=darkblue]&lt;BR /&gt;style(lines)= [background=cxCDE6F4 cellheight=.10in bordercolor=black]&lt;BR /&gt;style(column)= [background=lightgrey foreground=blue];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jul 2018 20:09:18 GMT</pubDate>
    <dc:creator>rodrichiez</dc:creator>
    <dc:date>2018-07-16T20:09:18Z</dc:date>
    <item>
      <title>Using proc report in SAS Store Procedure</title>
      <link>https://communities.sas.com/t5/Developers/Using-proc-report-in-SAS-Store-Procedure/m-p/478478#M5741</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created&amp;nbsp;a SP with a proc report definition to format the final result, but when I run the SP from SAS Ad-In for Office in Excel, the result is displayed with no format at all,&amp;nbsp;I tried the macro below but it doesn't worked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO setopt;&lt;BR /&gt;%if %upcase (&amp;amp;_odsdest) = RTF %then %do;&lt;BR /&gt;%let _odsstyle=rtf;&lt;BR /&gt;%let _odsstylesheet=;&lt;BR /&gt;%let _odsoptions=bodytitle startpage=no&lt;BR /&gt;nokeepn notoc_data;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %upcase (&amp;amp;_odsdest)= PDF %then %do;&lt;BR /&gt;%let _odsstyle=printer;&lt;BR /&gt;%let _odsstylesheet=;&lt;BR /&gt;%let _odsoptions=bookmarkgen=no compress=9 startpage=no;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %upcase (&amp;amp;_odsdest)= HTML %then %do;&lt;BR /&gt;%let _odsstyle=sasweb;&lt;BR /&gt;%let _odsstylesheet=;&lt;BR /&gt;%let _odsoptions= rs=none;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if %upcase (&amp;amp;_odsdest)=TAGSETS.SASREPORT11 %then %do;&lt;BR /&gt;%let _odsstyle=normal;&lt;BR /&gt;%let _odsstylesheet=;&lt;BR /&gt;%let _odsoptions=;&lt;BR /&gt;%end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA=WORK.QUERY_FOR_FACT_CSAC_BK_0000 nowd headskip&lt;BR /&gt;style(header)= [cellheight=.20in font_weight=bold foreground=white background=darkblue]&lt;BR /&gt;style(lines)= [background=cxCDE6F4 cellheight=.10in bordercolor=black]&lt;BR /&gt;style(column)= [background=lightgrey foreground=blue];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 20:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-proc-report-in-SAS-Store-Procedure/m-p/478478#M5741</guid>
      <dc:creator>rodrichiez</dc:creator>
      <dc:date>2018-07-16T20:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc report in SAS Store Procedure</title>
      <link>https://communities.sas.com/t5/Developers/Using-proc-report-in-SAS-Store-Procedure/m-p/478488#M5742</link>
      <description>&lt;P&gt;is there a particular variable that doesn't appear formatted? don't you need some define statements? there you can specify the format&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 20:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-proc-report-in-SAS-Store-Procedure/m-p/478488#M5742</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-07-16T20:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc report in SAS Store Procedure</title>
      <link>https://communities.sas.com/t5/Developers/Using-proc-report-in-SAS-Store-Procedure/m-p/478646#M5743</link>
      <description>&lt;P&gt;None of the variable appear formatted, I put define statements and even so when I run the SP from the SAS Add In in Excel the result is unformatted.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 13:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-proc-report-in-SAS-Store-Procedure/m-p/478646#M5743</guid>
      <dc:creator>rodrichiez</dc:creator>
      <dc:date>2018-07-17T13:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc report in SAS Store Procedure</title>
      <link>https://communities.sas.com/t5/Developers/Using-proc-report-in-SAS-Store-Procedure/m-p/480523#M5744</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;In SAS Add-In Properties, click on Results tab and select HTML as Format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-proc-report-in-SAS-Store-Procedure/m-p/480523#M5744</guid>
      <dc:creator>rodrichiez</dc:creator>
      <dc:date>2018-07-23T16:22:05Z</dc:date>
    </item>
  </channel>
</rss>

