<?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 Export in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92455#M26319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Please find the code&lt;/P&gt;&lt;P&gt;%macro export(dsname,sheet_Name);&lt;/P&gt;&lt;P&gt;proc export data=&amp;amp;dsname&lt;/P&gt;&lt;P&gt;outfile="location\data.xls"&lt;/P&gt;&lt;P&gt;dbms=excel replace;&lt;/P&gt;&lt;P&gt;sheet=&amp;amp;sheet_Name;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jul 2013 17:13:58 GMT</pubDate>
    <dc:creator>robertrao</dc:creator>
    <dc:date>2013-07-26T17:13:58Z</dc:date>
    <item>
      <title>Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92451#M26315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;While I export I want the datetime to appear as it is in the dataset. But I get only the dates but the formulae bar shows the datatime..&lt;/P&gt;&lt;P&gt;How can I get it inside of the cells??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 17:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92451#M26315</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-07-26T17:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92452#M26316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;You may want to try ods tagsets.excelxp instead of proc export.&lt;/P&gt;&lt;P&gt;So, you could do something like this:&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file = "....\my_file.xls";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc print data = your_data;run;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 17:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92452#M26316</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-07-26T17:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92453#M26317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you provide your&amp;nbsp; export code segment with an example of a cell/formulae cell/dataset record triplet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 17:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92453#M26317</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-07-26T17:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92454#M26318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;If I use tagsets can I also export different datasets to the same Excel sheet??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 17:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92454#M26318</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-07-26T17:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92455#M26319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Please find the code&lt;/P&gt;&lt;P&gt;%macro export(dsname,sheet_Name);&lt;/P&gt;&lt;P&gt;proc export data=&amp;amp;dsname&lt;/P&gt;&lt;P&gt;outfile="location\data.xls"&lt;/P&gt;&lt;P&gt;dbms=excel replace;&lt;/P&gt;&lt;P&gt;sheet=&amp;amp;sheet_Name;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 17:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92455#M26319</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-07-26T17:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92456#M26320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe so, but you need to have something like this:&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp options(sheet_label = "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;amp;sheet_Name&lt;/SPAN&gt;" );&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 17:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92456#M26320</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-07-26T17:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92457#M26321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I had to figure out how to use the options(sheet_label...);&lt;/P&gt;&lt;P&gt;So here is something that could work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro export();&lt;/P&gt;&lt;P&gt;&amp;nbsp; ods tagsets.excelxp file = "&amp;amp;file_path.\my_file.xls" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do i = 1 %to 4;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods tagsets.excelxp options(sheet_label = "sheet_Name_&amp;amp;i" ); ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc print data = &amp;amp;dsname.;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ods _all_ close;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%export();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;So, you first initialize (or whatever the word is) the ODS TAGSETS.EXCELXP file=....&lt;/P&gt;&lt;P&gt;Then you use another ODS TAGSETS.EXCELXP &lt;STRONG&gt;OPTIONS(sheet_label...)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; for each of your export...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Anca.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 17:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/92457#M26321</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-07-26T17:31:34Z</dc:date>
    </item>
  </channel>
</rss>

