<?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 date to Excel General format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-date-to-Excel-General-format/m-p/485966#M287153</link>
    <description>&lt;P&gt;I have the following date in my SAS program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;201707&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp;YYMMN6. format, (numeric data).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to export it into Excel in the same configuration 201707, but as a general format, as in ... not a date, just a number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how to approach this?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2018 21:29:01 GMT</pubDate>
    <dc:creator>debw16</dc:creator>
    <dc:date>2018-08-10T21:29:01Z</dc:date>
    <item>
      <title>SAS date to Excel General format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-date-to-Excel-General-format/m-p/485966#M287153</link>
      <description>&lt;P&gt;I have the following date in my SAS program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;201707&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp;YYMMN6. format, (numeric data).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to export it into Excel in the same configuration 201707, but as a general format, as in ... not a date, just a number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how to approach this?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 21:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-date-to-Excel-General-format/m-p/485966#M287153</guid>
      <dc:creator>debw16</dc:creator>
      <dc:date>2018-08-10T21:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS date to Excel General format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-date-to-Excel-General-format/m-p/485984#M287154</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221002"&gt;@debw16&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have the following date in my SAS program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;201707&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In&amp;nbsp;YYMMN6. format, (numeric data).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to export it into Excel in the same configuration 201707, but as a general format, as in ... not a date, just a number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas on how to approach this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;Use ODS EXCEL with TAGATTR.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Page 7 here:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings16/SAS5642-2016.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings16/SAS5642-2016.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option is is to create a text variable and that will look correct, but a user would have to convert it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 23:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-date-to-Excel-General-format/m-p/485984#M287154</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-10T23:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS date to Excel General format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-date-to-Excel-General-format/m-p/486097#M287155</link>
      <description>&lt;P&gt;Thanks Reeza, I'll check this out soon and see if I can find something that works.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Aug 2018 22:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-date-to-Excel-General-format/m-p/486097#M287155</guid>
      <dc:creator>debw16</dc:creator>
      <dc:date>2018-08-11T22:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS date to Excel General format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-date-to-Excel-General-format/m-p/490549#M287156</link>
      <description>&lt;P&gt;I solved this by simply changing the format to 8. using the FORMAT command in a&amp;nbsp; DATA step.&amp;nbsp; Ultimately, though, I used PROC IMPORT to import the Excel file and that made the date easier to work with.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 16:28:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-date-to-Excel-General-format/m-p/490549#M287156</guid>
      <dc:creator>debw16</dc:creator>
      <dc:date>2018-08-28T16:28:32Z</dc:date>
    </item>
  </channel>
</rss>

