<?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 table output showing repeat visits with the purpose of each visit in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601942#M174197</link>
    <description>&lt;P&gt;Hi, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/298298"&gt;@nibira&lt;/a&gt;, twice we have now asked for your data in a very specific format, that will allow us to work with it and help your further. Other formats of providing this data are generally less effective for us, so please go to the link provided by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; or myself and follow the instructions there.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 11:50:13 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-11-06T11:50:13Z</dc:date>
    <item>
      <title>How to create a table output showing repeat visits with the purpose of each visit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601680#M174066</link>
      <description>&lt;P&gt;I am trying to tabulate an output in which the first column will show the repeat visits of each patient, the second column will show the date of the visit and then the third column(s) will show the purpose of each visit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; Visit Date &amp;nbsp; &amp;nbsp; &amp;nbsp; Reason 1 &amp;nbsp; &amp;nbsp; Reason 2 &amp;nbsp;&amp;nbsp; Reason 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 08/29/2018 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11/04/2019 &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Teresa &amp;nbsp; &amp;nbsp; &amp;nbsp; 02/12/2017 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Yes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Teresa &amp;nbsp; &amp;nbsp; &amp;nbsp; 06/21/2018 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Yes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Teresa &amp;nbsp; &amp;nbsp; &amp;nbsp; 12/12/2018 &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll greatly appreciate simple SAS codes that are easy to understand. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601680#M174066</guid>
      <dc:creator>nibira</dc:creator>
      <dc:date>2019-11-05T15:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table output showing repeat visits with the purpose of each visit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601681#M174067</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/298298"&gt;@nibira&lt;/a&gt;&amp;nbsp;and welcome to the SAS Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some of us will not download Microsoft Office documents as they are a security risk. Could you please provide the data as described here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601681#M174067</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-05T15:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table output showing repeat visits with the purpose of each visit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601682#M174068</link>
      <description>&lt;P&gt;Do you have a SAS data set to work with?&lt;/P&gt;
&lt;P&gt;I couldn't tell if the spread sheet was supposed to be what you currently have, in which case making a clean SAS data set may be "not simple code", or what you want. If it is what you want then we need to know what you currently have for data.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601682#M174068</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-05T15:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table output showing repeat visits with the purpose of each visit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601685#M174069</link>
      <description>&lt;P&gt;Yes, I have the dataset to work with. The dataset has more than 30 variables. I need to extract the variables (as shown in the example) and consolidate the data.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 15:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601685#M174069</guid>
      <dc:creator>nibira</dc:creator>
      <dc:date>2019-11-05T15:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table output showing repeat visits with the purpose of each visit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601692#M174074</link>
      <description>&lt;P&gt;For those of us who will not or cannot open .xlsx files, can you provide the SAS data set as requested above?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 16:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601692#M174074</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-05T16:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table output showing repeat visits with the purpose of each visit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601799#M174120</link>
      <description>&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may take a bit of trial and error to follow the instructions but the link will generate data step code of your SAS data set.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 20:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601799#M174120</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-05T20:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table output showing repeat visits with the purpose of each visit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601852#M174147</link>
      <description>&lt;P&gt;Thanks for the suggestion. Please find the data sample as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create table sample(var1 varchar(50), var2 float, reason_1____ varchar(20), reason_2___ varchar(23), _reason_3 varchar(24));&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('', ., '', '', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('John', 08/29/2018, '', '', 'Paying for clinic visits');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('', ., '', '', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('John &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;', 11/04/2019, 'Insurance Navigation', '', 'Paying for clinic visits');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('', ., '', '', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('Teresa', 02/12/2017, '', 'Access to medical needs', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('', ., '', '', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('Teresa', 06/21/2018, '', 'Access to medical needs', 'Paying for clinic visits');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('', ., '', '', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('Teresa', 12/12/2018, 'Insurance Navigation', '', '');&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 03:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601852#M174147</guid>
      <dc:creator>nibira</dc:creator>
      <dc:date>2019-11-06T03:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table output showing repeat visits with the purpose of each visit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601942#M174197</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/298298"&gt;@nibira&lt;/a&gt;, twice we have now asked for your data in a very specific format, that will allow us to work with it and help your further. Other formats of providing this data are generally less effective for us, so please go to the link provided by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; or myself and follow the instructions there.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 11:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601942#M174197</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-06T11:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table output showing repeat visits with the purpose of each visit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601977#M174213</link>
      <description>&lt;P&gt;Last time I used the second approach on the link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the log output as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data WORK.SAMPLE;&lt;BR /&gt;infile datalines dsd truncover;&lt;BR /&gt;input VAR1:$50. VAR2:MMDDYY10. Reason_1____:$20. Reason_2___:$23. _Reason_3:$24.;&lt;BR /&gt;format VAR2 MMDDYY10.;&lt;BR /&gt;label VAR1="Name &amp;nbsp; &amp;nbsp; &amp;nbsp;" VAR2="Visit Date &amp;nbsp; &amp;nbsp; &amp;nbsp;" Reason_1____="Reason 1 &amp;nbsp; &amp;nbsp;" Reason_2___="Reason 2 &amp;nbsp;&amp;nbsp;" _Reason_3=" Reason 3";&lt;BR /&gt;datalines;&lt;BR /&gt;John 08/29/2018 Paying for clinic visits&lt;BR /&gt;John &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11/04/2019 Insurance Navigation Paying for clinic visits&lt;BR /&gt;Teresa 02/12/2017 Access to medical needs&lt;BR /&gt;Teresa 06/21/2018 Access to medical needs Paying for clinic visits&lt;BR /&gt;Teresa 12/12/2018 Insurance Navigation&lt;BR /&gt;;;;;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 13:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/601977#M174213</guid>
      <dc:creator>nibira</dc:creator>
      <dc:date>2019-11-06T13:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table output showing repeat visits with the purpose of each visit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/602060#M174268</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/298298"&gt;@nibira&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the suggestion. Please find the data sample as following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create table sample(var1 varchar(50), var2 float, reason_1____ varchar(20), reason_2___ varchar(23), _reason_3 varchar(24));&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('', ., '', '', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('John', 08/29/2018, '', '', 'Paying for clinic visits');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('', ., '', '', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('John &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;', 11/04/2019, 'Insurance Navigation', '', 'Paying for clinic visits');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('', ., '', '', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('Teresa', 02/12/2017, '', 'Access to medical needs', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('', ., '', '', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('Teresa', 06/21/2018, '', 'Access to medical needs', 'Paying for clinic visits');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('', ., '', '', '');&lt;BR /&gt;Insert into sample(var1, var2, reason_1____, reason_2___, _reason_3) Values('Teresa', 12/12/2018, 'Insurance Navigation', '', '');&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is NOT acceptable SAS code. Throws a bunch of&lt;/P&gt;
&lt;PRE&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
              a datetime constant, a missing value, ), +, ',', -, MISSING, NULL, USER.


&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-output-showing-repeat-visits-with-the/m-p/602060#M174268</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-06T16:49:21Z</dc:date>
    </item>
  </channel>
</rss>

