<?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 Date-Format: yyyy in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-Format-yyyy/m-p/801295#M315345</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to import a date-column that contains the year (yyyy). How is it possible, to import this data with a date format instead of this char-format? Thank you for helping me!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
FORMAT                
year $CHAR22.;

input year ;
datalines;
[...]&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Mar 2022 12:09:14 GMT</pubDate>
    <dc:creator>Konkordanz</dc:creator>
    <dc:date>2022-03-10T12:09:14Z</dc:date>
    <item>
      <title>Date-Format: yyyy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Format-yyyy/m-p/801295#M315345</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to import a date-column that contains the year (yyyy). How is it possible, to import this data with a date format instead of this char-format? Thank you for helping me!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
FORMAT                
year $CHAR22.;

input year ;
datalines;
[...]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 12:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Format-yyyy/m-p/801295#M315345</guid>
      <dc:creator>Konkordanz</dc:creator>
      <dc:date>2022-03-10T12:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date-Format: yyyy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Format-yyyy/m-p/801299#M315346</link>
      <description>&lt;P&gt;Just remove the FORMAT statement. SAS will automatically read this as numeric. To make a SAS date value out of it, you have to use the MDY function and decide which day of the year you want to assume.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 12:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Format-yyyy/m-p/801299#M315346</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-10T12:32:42Z</dc:date>
    </item>
  </channel>
</rss>

