<?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 Create a date in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-date/m-p/462982#M14402</link>
    <description>&lt;P&gt;Hello SAS users&lt;/P&gt;&lt;P&gt;I have the attached kind of data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a new variable, "date" which is a combination of the year and the number corresponding to the month (like this, 200810 to represent&amp;nbsp; Oct 2010)&lt;/P&gt;&lt;P&gt;please assist me.&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 12:29:54 GMT</pubDate>
    <dc:creator>ZosTa</dc:creator>
    <dc:date>2018-05-17T12:29:54Z</dc:date>
    <item>
      <title>Create a date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-date/m-p/462982#M14402</link>
      <description>&lt;P&gt;Hello SAS users&lt;/P&gt;&lt;P&gt;I have the attached kind of data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a new variable, "date" which is a combination of the year and the number corresponding to the month (like this, 200810 to represent&amp;nbsp; Oct 2010)&lt;/P&gt;&lt;P&gt;please assist me.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 12:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-date/m-p/462982#M14402</guid>
      <dc:creator>ZosTa</dc:creator>
      <dc:date>2018-05-17T12:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create a date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-date/m-p/462983#M14403</link>
      <description>&lt;P&gt;See my footnotes for how to post data. Excel files are mostly useless for this (unless your problem lies in importing them).&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 12:32:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-date/m-p/462983#M14403</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-17T12:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-date/m-p/462987#M14404</link>
      <description>&lt;P&gt;A date variable&amp;nbsp;&lt;STRONG&gt;always&lt;/STRONG&gt; has the three components = day, month, year.&amp;nbsp; If you do not have one then you need to default one in.&amp;nbsp; You can use ISO dates, which are character:&lt;/P&gt;
&lt;PRE&gt;iso_date=catx('-',put(year,4.),put(month,z2.));
&lt;/PRE&gt;
&lt;P&gt;For a numeric, you can have a default, then format it to display differently:&lt;/P&gt;
&lt;PRE&gt;want=mdy(monthvar,1,yearvar);
format want monyy7.;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 May 2018 12:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-date/m-p/462987#M14404</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-17T12:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a date</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-date/m-p/462989#M14405</link>
      <description>&lt;PRE&gt;
If your variable is date type ,just add a format.

format your-variable  yymmn6.;


&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 May 2018 12:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-date/m-p/462989#M14405</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-05-17T12:40:34Z</dc:date>
    </item>
  </channel>
</rss>

