<?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: Reg:Date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Date/m-p/17016#M3189</link>
    <description>Maybe you can code like ,Not tested.&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data temp;&lt;BR /&gt;
 set sashelp.vtable(where=(libname='WORK') keep=memname nobs);&lt;BR /&gt;
 if memname eq: 'DAILY';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
options obs=1;&lt;BR /&gt;
data want;&lt;BR /&gt;
 set daily1 - daily200 indsname=dsn;&lt;BR /&gt;
 memname=scan(dsn,2,'.');&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data want;&lt;BR /&gt;
 merge want temp;&lt;BR /&gt;
 by  memname;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
    <pubDate>Tue, 21 Jun 2011 04:01:58 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-06-21T04:01:58Z</dc:date>
    <item>
      <title>Reg:Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Date/m-p/17013#M3186</link>
      <description>Hi i am having 200 datasets with name like daily1--daily200 ,in each dataset there will be one date by name ins_date ,now i want to create a new dataset with all the dataset name and the ins_date and counts of obs in that datasets ,i want one row for each dataset like having datasetname,ins_date and count,the ins_date is the same for each entire dataset for ex:for dataset daily1 has ins_date is 01/01/2011 there will be no other date for it.&lt;BR /&gt;
&lt;BR /&gt;
ex&lt;BR /&gt;
&lt;BR /&gt;
         Dset_name         Ins_Date            count&lt;BR /&gt;
         daily1                    01/01/2011         135&lt;BR /&gt;
        daily2                     02/01/2011          231&lt;BR /&gt;
....&lt;BR /&gt;
&lt;BR /&gt;
like that</description>
      <pubDate>Mon, 20 Jun 2011 07:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Date/m-p/17013#M3186</guid>
      <dc:creator>sas_</dc:creator>
      <dc:date>2011-06-20T07:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Date/m-p/17014#M3187</link>
      <description>I think the easiest way could be collecting all data in one file and then running Proc Freq&lt;BR /&gt;
&lt;BR /&gt;
%macro collect;&lt;BR /&gt;
&lt;BR /&gt;
*add data set name in case you dont have it in data;&lt;BR /&gt;
&lt;BR /&gt;
%do i=1 %to 200;&lt;BR /&gt;
data daily&amp;amp;i.b;&lt;BR /&gt;
     set daily&amp;amp;i;&lt;BR /&gt;
  format dset_name $10.;&lt;BR /&gt;
  dset_name="daily&amp;amp;i";&lt;BR /&gt;
run;&lt;BR /&gt;
%end;&lt;BR /&gt;
&lt;BR /&gt;
data total;&lt;BR /&gt;
set %do j=1 %to 200;&lt;BR /&gt;
    daily&amp;amp;j.b (keep=dset_name ins_date)&lt;BR /&gt;
	%end;;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%mend;&lt;BR /&gt;
%collect;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=total noprint ;&lt;BR /&gt;
tables dset_name*ins_date/out=freq_table (drop=percent) ;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 20 Jun 2011 08:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Date/m-p/17014#M3187</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2011-06-20T08:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Date/m-p/17015#M3188</link>
      <description>Thqs</description>
      <pubDate>Mon, 20 Jun 2011 11:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Date/m-p/17015#M3188</guid>
      <dc:creator>sas_</dc:creator>
      <dc:date>2011-06-20T11:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Date/m-p/17016#M3189</link>
      <description>Maybe you can code like ,Not tested.&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data temp;&lt;BR /&gt;
 set sashelp.vtable(where=(libname='WORK') keep=memname nobs);&lt;BR /&gt;
 if memname eq: 'DAILY';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
options obs=1;&lt;BR /&gt;
data want;&lt;BR /&gt;
 set daily1 - daily200 indsname=dsn;&lt;BR /&gt;
 memname=scan(dsn,2,'.');&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data want;&lt;BR /&gt;
 merge want temp;&lt;BR /&gt;
 by  memname;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Tue, 21 Jun 2011 04:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Date/m-p/17016#M3189</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-06-21T04:01:58Z</dc:date>
    </item>
  </channel>
</rss>

