<?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: finding unique id per visit da in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/finding-unique-id-per-visit-da/m-p/592189#M169766</link>
    <description>&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input IncidentID VISDATE:mmddyy10.;
cards;
1  7/3/2017
2  7/3/2017
3  7/5/2017
4  7/5/2017
5  7/5/2017
6  7/7/2017
6  7/5/2017
7  7/5/2017
8  7/5/2017
8  7/7/2017
9  7/5/2017
10 7/6/2017
11 7/6/2017
12 7/6/2017
12 7/17/2017
13 7/6/2017
14 7/7/2017
15 7/12/2017
;

proc sort data=have nodupkey;
by IncidentID VISDATE;
run;

proc freq data=have;
table IncidentID/out=want;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 15:07:05 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2019-09-27T15:07:05Z</dc:date>
    <item>
      <title>finding unique id per visit da</title>
      <link>https://communities.sas.com/t5/SAS-Programming/finding-unique-id-per-visit-da/m-p/592187#M169764</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I have a data set like this.&amp;nbsp; I want to know mean number of visit per patient.&amp;nbsp; Same Incidentid and different visdate means same patient visiting clinic more than one time on different dates.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to code for the result i want?&lt;/P&gt;&lt;PRE&gt;IncidentID	VISDATE
1	7/3/2017
2	7/3/2017
3	7/5/2017
4	7/5/2017
5	7/5/2017
6	7/7/2017
6	7/5/2017
7	7/5/2017
8	7/5/2017
8	7/7/2017
9	7/5/2017
10	7/6/2017
11	7/6/2017
12	7/6/2017
12	7/17/2017
13	7/6/2017
14	7/7/2017
15	7/12/2017&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 14:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/finding-unique-id-per-visit-da/m-p/592187#M169764</guid>
      <dc:creator>Dhana18</dc:creator>
      <dc:date>2019-09-27T14:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: finding unique id per visit da</title>
      <link>https://communities.sas.com/t5/SAS-Programming/finding-unique-id-per-visit-da/m-p/592189#M169766</link>
      <description>&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input IncidentID VISDATE:mmddyy10.;
cards;
1  7/3/2017
2  7/3/2017
3  7/5/2017
4  7/5/2017
5  7/5/2017
6  7/7/2017
6  7/5/2017
7  7/5/2017
8  7/5/2017
8  7/7/2017
9  7/5/2017
10 7/6/2017
11 7/6/2017
12 7/6/2017
12 7/17/2017
13 7/6/2017
14 7/7/2017
15 7/12/2017
;

proc sort data=have nodupkey;
by IncidentID VISDATE;
run;

proc freq data=have;
table IncidentID/out=want;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 15:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/finding-unique-id-per-visit-da/m-p/592189#M169766</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-09-27T15:07:05Z</dc:date>
    </item>
  </channel>
</rss>

