<?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: how to create a dataset  from systemdate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21340#M3423</link>
    <description>Thanks a lot ieva and Ksharp for ur kind information</description>
    <pubDate>Thu, 03 Mar 2011 11:25:18 GMT</pubDate>
    <dc:creator>arpit</dc:creator>
    <dc:date>2011-03-03T11:25:18Z</dc:date>
    <item>
      <title>how to create a dataset  from systemdate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21335#M3418</link>
      <description>System date is 03/03/2011&lt;BR /&gt;
&lt;BR /&gt;
I want to create a dataset like A&lt;BR /&gt;
DATE&lt;BR /&gt;
02-03-2011&lt;BR /&gt;
01-03-2011&lt;BR /&gt;
28-02-2011&lt;BR /&gt;
27-02-2011&lt;BR /&gt;
26-02-2011&lt;BR /&gt;
25-02-2011&lt;BR /&gt;
&lt;BR /&gt;
Kindly help me</description>
      <pubDate>Thu, 03 Mar 2011 09:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21335#M3418</guid>
      <dc:creator>arpit</dc:creator>
      <dc:date>2011-03-03T09:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a dataset  from systemdate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21336#M3419</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
Try this:&lt;BR /&gt;
&lt;BR /&gt;
%macro datelist;&lt;BR /&gt;
data date_list (keep=date);&lt;BR /&gt;
sysdate=%sysfunc(date());&lt;BR /&gt;
format date date9.;&lt;BR /&gt;
%do i=1 %to 6;&lt;BR /&gt;
date=sysdate-&amp;amp;i;&lt;BR /&gt;
output;&lt;BR /&gt;
%end;&lt;BR /&gt;
run;&lt;BR /&gt;
%mend;&lt;BR /&gt;
%datelist;</description>
      <pubDate>Thu, 03 Mar 2011 09:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21336#M3419</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2011-03-03T09:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a dataset  from systemdate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21337#M3420</link>
      <description>how to convert it into checracter data type</description>
      <pubDate>Thu, 03 Mar 2011 10:06:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21337#M3420</guid>
      <dc:creator>arpit</dc:creator>
      <dc:date>2011-03-03T10:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a dataset  from systemdate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21338#M3421</link>
      <description>[pre]&lt;BR /&gt;
data A;&lt;BR /&gt;
 do i=1 to 10;&lt;BR /&gt;
  date=today() - i;&lt;BR /&gt;
  output;&lt;BR /&gt;
 end;&lt;BR /&gt;
 format date ddmmyyd10.;&lt;BR /&gt;
 drop i;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Thu, 03 Mar 2011 10:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21338#M3421</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-03T10:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a dataset  from systemdate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21339#M3422</link>
      <description>Usin Ksharp's code which is more simple to get character value:&lt;BR /&gt;
&lt;BR /&gt;
data A; &lt;BR /&gt;
do i=1 to 10;  &lt;BR /&gt;
date=put(put(today() - i, ddmmyyd10.), $10.);  &lt;BR /&gt;
output; &lt;BR /&gt;
end;&lt;BR /&gt;
drop i;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 03 Mar 2011 11:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21339#M3422</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2011-03-03T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a dataset  from systemdate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21340#M3423</link>
      <description>Thanks a lot ieva and Ksharp for ur kind information</description>
      <pubDate>Thu, 03 Mar 2011 11:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-dataset-from-systemdate/m-p/21340#M3423</guid>
      <dc:creator>arpit</dc:creator>
      <dc:date>2011-03-03T11:25:18Z</dc:date>
    </item>
  </channel>
</rss>

