<?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 Counter Variable assistance in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Counter-Variable-assistance/m-p/560215#M10439</link>
    <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS and I need some assistance.&amp;nbsp; I have to&amp;nbsp;create a counter variable to count the number of observations in the dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;status&amp;nbsp; Cause of Death&amp;nbsp; &amp;nbsp; sex&lt;/P&gt;&lt;P&gt;dead&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;other&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;female&lt;/P&gt;&lt;P&gt;dead&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; female&lt;/P&gt;&lt;P&gt;alive&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cancer&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; male&lt;/P&gt;&lt;P&gt;alive&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;other&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;male&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are some of the columns in my dataset.&amp;nbsp; There is 18 columns total maybe I am a bit confused on what a counter variable is please provide some assistance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this example... am I headed the right way??&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set help;&lt;BR /&gt;by id;&lt;BR /&gt;if first.id then seq=0;&lt;BR /&gt;seq+1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 16:24:35 GMT</pubDate>
    <dc:creator>lisa2002</dc:creator>
    <dc:date>2019-05-20T16:24:35Z</dc:date>
    <item>
      <title>Counter Variable assistance</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Counter-Variable-assistance/m-p/560215#M10439</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS and I need some assistance.&amp;nbsp; I have to&amp;nbsp;create a counter variable to count the number of observations in the dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;status&amp;nbsp; Cause of Death&amp;nbsp; &amp;nbsp; sex&lt;/P&gt;&lt;P&gt;dead&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;other&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;female&lt;/P&gt;&lt;P&gt;dead&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; female&lt;/P&gt;&lt;P&gt;alive&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cancer&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; male&lt;/P&gt;&lt;P&gt;alive&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;other&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;male&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are some of the columns in my dataset.&amp;nbsp; There is 18 columns total maybe I am a bit confused on what a counter variable is please provide some assistance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this example... am I headed the right way??&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set help;&lt;BR /&gt;by id;&lt;BR /&gt;if first.id then seq=0;&lt;BR /&gt;seq+1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 16:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Counter-Variable-assistance/m-p/560215#M10439</guid>
      <dc:creator>lisa2002</dc:creator>
      <dc:date>2019-05-20T16:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Counter Variable assistance</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Counter-Variable-assistance/m-p/560219#M10441</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/274150"&gt;@lisa2002&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to SAS and I need some assistance.&amp;nbsp; I have to&amp;nbsp;create a counter variable to count the number of observations in the dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;status&amp;nbsp; Cause of Death&amp;nbsp; &amp;nbsp; sex&lt;/P&gt;
&lt;P&gt;dead&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;other&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;female&lt;/P&gt;
&lt;P&gt;dead&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; female&lt;/P&gt;
&lt;P&gt;alive&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cancer&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; male&lt;/P&gt;
&lt;P&gt;alive&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;other&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;male&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are some of the columns in my dataset.&amp;nbsp; There is 18 columns total maybe I am a bit confused on what a counter variable is please provide some assistance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found this example... am I headed the right way??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It depends on what you want.&lt;/P&gt;
&lt;P&gt;Number of observations total in the data set?&lt;/P&gt;
&lt;P&gt;Or of specific values in the data set?&lt;/P&gt;
&lt;P&gt;Do you need a data set (something processed by another program or steps) or a report (people read these)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc contents will report on the total number of observations in the data set.&lt;/P&gt;
&lt;P&gt;Proc freq will count number of observations with each value and number missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show a small example of the data at start and what the result should be?&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 16:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Counter-Variable-assistance/m-p/560219#M10441</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-20T16:42:24Z</dc:date>
    </item>
  </channel>
</rss>

