<?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 Create the Same Count for Multiple Columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-the-Same-Count-for-Multiple-Columns/m-p/676001#M203758</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this data that I want to transpose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data looks like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Jake&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sophomore&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Abigail&lt;/P&gt;&lt;P&gt;Senior&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Ronny&lt;/P&gt;&lt;P&gt;Freshman&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to create a count where it will display a unique identifier for each group of info like this&lt;/P&gt;&lt;P&gt;Name 1&lt;/P&gt;&lt;P&gt;Jake 1&lt;/P&gt;&lt;P&gt;Sophomore 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name 2&lt;/P&gt;&lt;P&gt;Abigail 2&lt;/P&gt;&lt;P&gt;Senior 2&lt;/P&gt;&lt;P&gt;Name 3&lt;/P&gt;&lt;P&gt;Ronny 3&lt;/P&gt;&lt;P&gt;Freshman 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only seem to create a count that starts over when the name row appears, hence it goes 1,2,3 instead of 1,1,1 for each group of data. Any help would be much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 20:58:35 GMT</pubDate>
    <dc:creator>skatethejake</dc:creator>
    <dc:date>2020-08-11T20:58:35Z</dc:date>
    <item>
      <title>Create the Same Count for Multiple Columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-the-Same-Count-for-Multiple-Columns/m-p/676001#M203758</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this data that I want to transpose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data looks like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Jake&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sophomore&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Abigail&lt;/P&gt;&lt;P&gt;Senior&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Ronny&lt;/P&gt;&lt;P&gt;Freshman&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to create a count where it will display a unique identifier for each group of info like this&lt;/P&gt;&lt;P&gt;Name 1&lt;/P&gt;&lt;P&gt;Jake 1&lt;/P&gt;&lt;P&gt;Sophomore 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name 2&lt;/P&gt;&lt;P&gt;Abigail 2&lt;/P&gt;&lt;P&gt;Senior 2&lt;/P&gt;&lt;P&gt;Name 3&lt;/P&gt;&lt;P&gt;Ronny 3&lt;/P&gt;&lt;P&gt;Freshman 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only seem to create a count that starts over when the name row appears, hence it goes 1,2,3 instead of 1,1,1 for each group of data. Any help would be much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 20:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-the-Same-Count-for-Multiple-Columns/m-p/676001#M203758</guid>
      <dc:creator>skatethejake</dc:creator>
      <dc:date>2020-08-11T20:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create the Same Count for Multiple Columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-the-Same-Count-for-Multiple-Columns/m-p/676002#M203759</link>
      <description>&lt;P&gt;Why do you want to transpose this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    if string='Name' then count+1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Aug 2020 21:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-the-Same-Count-for-Multiple-Columns/m-p/676002#M203759</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-11T21:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create the Same Count for Multiple Columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-the-Same-Count-for-Multiple-Columns/m-p/676004#M203761</link>
      <description>I'm an idiot lol, thank you so much. I really appreciate this.</description>
      <pubDate>Tue, 11 Aug 2020 21:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-the-Same-Count-for-Multiple-Columns/m-p/676004#M203761</guid>
      <dc:creator>skatethejake</dc:creator>
      <dc:date>2020-08-11T21:11:33Z</dc:date>
    </item>
  </channel>
</rss>

