<?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: Shorten length of variable/count observations per participant in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Shorten-length-of-variable-count-observations-per-participant/m-p/76137#M22096</link>
    <description>1) What do you mean that this doesn't work? I got a clean $8 char for MTOTAL in the A table.&lt;BR /&gt;
&lt;BR /&gt;
2) Depends on how you want the output, and what time consuming means.&lt;BR /&gt;
One way is to use SQL, with COUNT(), GROUP BY and HAVING to filter out visits with less than 32 observations.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
    <pubDate>Thu, 22 Apr 2010 07:43:56 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2010-04-22T07:43:56Z</dc:date>
    <item>
      <title>Shorten length of variable/count observations per participant</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Shorten-length-of-variable-count-observations-per-participant/m-p/76136#M22095</link>
      <description>I have three data sets. Each one of them is very lengthy! So I need help in finding shortcuts on how to process the data sets.&lt;BR /&gt;
&lt;BR /&gt;
1) I noticed that the length of some variables is unreasonably long so how do I shorten the length of those variables? I tried doing this, but it didn't work for me:&lt;BR /&gt;
DATA A;&lt;BR /&gt;
LENGTH MTOTAL $ 8;&lt;BR /&gt;
SET TOT.TOTAL1;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
2) Each data set have countless participants that made visits. Each participant is supposed to have 32 observations per visit. How do I make sure there are exactly 32 observations per participant at each visit? I did PROC REPORT for each data set and tried counting 32 observations for each participant but that proved to be time consuming. What's the shortcut to do this?</description>
      <pubDate>Thu, 22 Apr 2010 01:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Shorten-length-of-variable-count-observations-per-participant/m-p/76136#M22095</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-22T01:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Shorten length of variable/count observations per participant</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Shorten-length-of-variable-count-observations-per-participant/m-p/76137#M22096</link>
      <description>1) What do you mean that this doesn't work? I got a clean $8 char for MTOTAL in the A table.&lt;BR /&gt;
&lt;BR /&gt;
2) Depends on how you want the output, and what time consuming means.&lt;BR /&gt;
One way is to use SQL, with COUNT(), GROUP BY and HAVING to filter out visits with less than 32 observations.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Thu, 22 Apr 2010 07:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Shorten-length-of-variable-count-observations-per-participant/m-p/76137#M22096</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2010-04-22T07:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shorten length of variable/count observations per participant</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Shorten-length-of-variable-count-observations-per-participant/m-p/76138#M22097</link>
      <description>I tried proq sql count(). it worked. thanks!!</description>
      <pubDate>Thu, 22 Apr 2010 15:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Shorten-length-of-variable-count-observations-per-participant/m-p/76138#M22097</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-22T15:44:13Z</dc:date>
    </item>
  </channel>
</rss>

