<?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: Question in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Create-data-set-w-no-of-contacts-per-patient-month/m-p/747280#M29476</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/385487"&gt;@11427qvolaf&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The dataset &lt;EM&gt;Contacts &lt;/EM&gt;is comprised of several entries for each subject (unique identifier is patient_number).&amp;nbsp; You are asked to create a new dataset containing one row per patient with the number of contacts per month.&amp;nbsp; What sample SAS or SQL code would be used to complete this request.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Look at documentation for Procs Means, Summary, Freq, Report, Tabulate and SQL. All of these can create such a summary. The preferred choice might come with additional requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or tasks to COUNT.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 06:12:55 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-06-11T06:12:55Z</dc:date>
    <item>
      <title>Create data set w/ no of  contacts per patient/month</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-data-set-w-no-of-contacts-per-patient-month/m-p/747250#M29468</link>
      <description>&lt;P&gt;The dataset &lt;EM&gt;Contacts &lt;/EM&gt;is comprised of several entries for each subject (unique identifier is patient_number).&amp;nbsp; You are asked to create a new dataset containing one row per patient with the number of contacts per month.&amp;nbsp; What sample SAS or SQL code would be used to complete this request.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 08:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-data-set-w-no-of-contacts-per-patient-month/m-p/747250#M29468</guid>
      <dc:creator>11427qvolaf</dc:creator>
      <dc:date>2021-06-11T08:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-data-set-w-no-of-contacts-per-patient-month/m-p/747266#M29473</link>
      <description>&lt;P&gt;Is it possible to provide actual data or sample data that reflects the actual situation?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 04:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-data-set-w-no-of-contacts-per-patient-month/m-p/747266#M29473</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-06-11T04:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-data-set-w-no-of-contacts-per-patient-month/m-p/747280#M29476</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/385487"&gt;@11427qvolaf&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The dataset &lt;EM&gt;Contacts &lt;/EM&gt;is comprised of several entries for each subject (unique identifier is patient_number).&amp;nbsp; You are asked to create a new dataset containing one row per patient with the number of contacts per month.&amp;nbsp; What sample SAS or SQL code would be used to complete this request.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Look at documentation for Procs Means, Summary, Freq, Report, Tabulate and SQL. All of these can create such a summary. The preferred choice might come with additional requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or tasks to COUNT.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 06:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-data-set-w-no-of-contacts-per-patient-month/m-p/747280#M29476</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-11T06:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-data-set-w-no-of-contacts-per-patient-month/m-p/747292#M29477</link>
      <description>&lt;P&gt;Not to forget DATA steps with retained variables or a&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do until (last.id);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;loop for&amp;nbsp; counting.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 08:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-data-set-w-no-of-contacts-per-patient-month/m-p/747292#M29477</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-11T08:18:36Z</dc:date>
    </item>
  </channel>
</rss>

