<?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: Date Imported but Exports String in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Imported-but-Exports-String/m-p/400577#M25745</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;t1.'dateB'n - this has nothing to do with it.&amp;nbsp; '...'n refers to a variable using named literals (i.e. doesn't conform to SAS standards).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;20820 - this is the numeric representation of a date.&amp;nbsp; Dates in SAS a numbers of days since a certain date, to display them in a date format, you would need to apply a date format for instance date9.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As for it being read in a character, that doesn't sound right as the date number is there, I assume you should just be able to apply a format to that variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2017 12:57:47 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-10-03T12:57:47Z</dc:date>
    <item>
      <title>Date Imported but Exports String</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Imported-but-Exports-String/m-p/400563#M25744</link>
      <description>&lt;P&gt;I imported an excel file that has two date columns (B,C). I then created a computed column that references two datastes. One, that I imported and another one, dataset B that has&amp;nbsp;a date column of D).If the dateB in dataset A equals&amp;nbsp;a date D in dataset B then I want dateC from dataset A to populate.&amp;nbsp; It does, but it populates as&amp;nbsp;a string (20820) &amp;nbsp;instead of 01MAR2017.&amp;nbsp; If I look at datasetA after importing it shows up as 01MAR2017 and if I look at the dates in datasetB they also show up as 01MAR2017.&amp;nbsp; Why is the computed column going to a string format?&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the computed column when I do the case statement it shows t1.'dateB'n&amp;nbsp; which I assumed was the reason but when I try to type in 't1.'dateB'd it errors.&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 12:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Imported-but-Exports-String/m-p/400563#M25744</guid>
      <dc:creator>mmagnuson</dc:creator>
      <dc:date>2017-10-03T12:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date Imported but Exports String</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Imported-but-Exports-String/m-p/400577#M25745</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;t1.'dateB'n - this has nothing to do with it.&amp;nbsp; '...'n refers to a variable using named literals (i.e. doesn't conform to SAS standards).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;20820 - this is the numeric representation of a date.&amp;nbsp; Dates in SAS a numbers of days since a certain date, to display them in a date format, you would need to apply a date format for instance date9.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As for it being read in a character, that doesn't sound right as the date number is there, I assume you should just be able to apply a format to that variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 12:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Imported-but-Exports-String/m-p/400577#M25745</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-03T12:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date Imported but Exports String</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Imported-but-Exports-String/m-p/400578#M25746</link>
      <description>&lt;P&gt;The format worked. For some reason I picked a different date format and still spit out numbers but when I clicked Date9. it came out in the excel sheet as a date.&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 12:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Imported-but-Exports-String/m-p/400578#M25746</guid>
      <dc:creator>mmagnuson</dc:creator>
      <dc:date>2017-10-03T12:59:55Z</dc:date>
    </item>
  </channel>
</rss>

