<?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 Insert year into date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Insert-year-into-date/m-p/56262#M15723</link>
    <description>i have a date in my data which is only day and month (eg. 25/03)&lt;BR /&gt;
when doing an infile, it imports as a text value.&lt;BR /&gt;
i am trying to add a year to this value, but with no joy. &lt;BR /&gt;
i am trying to use the following:&lt;BR /&gt;
&lt;BR /&gt;
data may_3010;&lt;BR /&gt;
set may_3010;&lt;BR /&gt;
format year $4.;&lt;BR /&gt;
format newdate date9.;&lt;BR /&gt;
year= '2010';&lt;BR /&gt;
newdate= input(Prom_D_1||year,mmddyy10.);&lt;BR /&gt;
run;</description>
    <pubDate>Wed, 28 Jul 2010 06:51:57 GMT</pubDate>
    <dc:creator>Jackie_Stanbank</dc:creator>
    <dc:date>2010-07-28T06:51:57Z</dc:date>
    <item>
      <title>Insert year into date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Insert-year-into-date/m-p/56262#M15723</link>
      <description>i have a date in my data which is only day and month (eg. 25/03)&lt;BR /&gt;
when doing an infile, it imports as a text value.&lt;BR /&gt;
i am trying to add a year to this value, but with no joy. &lt;BR /&gt;
i am trying to use the following:&lt;BR /&gt;
&lt;BR /&gt;
data may_3010;&lt;BR /&gt;
set may_3010;&lt;BR /&gt;
format year $4.;&lt;BR /&gt;
format newdate date9.;&lt;BR /&gt;
year= '2010';&lt;BR /&gt;
newdate= input(Prom_D_1||year,mmddyy10.);&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 28 Jul 2010 06:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Insert-year-into-date/m-p/56262#M15723</guid>
      <dc:creator>Jackie_Stanbank</dc:creator>
      <dc:date>2010-07-28T06:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Insert year into date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Insert-year-into-date/m-p/56263#M15724</link>
      <description>You need to add a / between your text-date and the year and you should use the informat ddmmyy10.:&lt;BR /&gt;
[pre]data work.may_3010;&lt;BR /&gt;
	set work.may_3010;&lt;BR /&gt;
	length newdate 8;&lt;BR /&gt;
	format newdate date9.;&lt;BR /&gt;
&lt;BR /&gt;
	newdate = input(cats(Prom_D_1, '/2010'), ddmmyy10.);&lt;BR /&gt;
run;[/pre]</description>
      <pubDate>Wed, 28 Jul 2010 07:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Insert-year-into-date/m-p/56263#M15724</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2010-07-28T07:08:04Z</dc:date>
    </item>
  </channel>
</rss>

