<?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 How to put the header and the no_count in the same row? in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-put-the-header-and-the-no-count-in-the-same-row/m-p/900716#M1493</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ericykc_0-1698680805433.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89248i0FA370B266BB85FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ericykc_0-1698680805433.png" alt="ericykc_0-1698680805433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this is the output, and i want to put the final count and the hhid in the same row. May anyone teach me? Thank a lot.&lt;/P&gt;&lt;P&gt;Here my code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Member;&lt;BR /&gt;infile '~/MS3251/Raw Data/Surref.txt' dlm=',';&lt;BR /&gt;input dummy_var : $15. @;&lt;BR /&gt;if substr(dummy_var,1,1) ^in (0:9) then do;&lt;BR /&gt;input @1 hhid : $15. hhtype $;&lt;BR /&gt;no_count = 0;&lt;BR /&gt;retain dummy_var;&lt;BR /&gt;end;&lt;BR /&gt;else do;&lt;BR /&gt;no_count + 1;&lt;BR /&gt;if no_count &amp;gt; 0 then do;&lt;BR /&gt;input @1 birthdate : date11. householder_ind $ gender : $6. martial_status : $8. education employment_status $ income ;&lt;BR /&gt;if gender='Male' then no_males+1;&lt;BR /&gt;mem = no_count;&lt;BR /&gt;keep hhid hhtype mem no_count birthdate no_males;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2023 15:48:01 GMT</pubDate>
    <dc:creator>ericykc</dc:creator>
    <dc:date>2023-10-30T15:48:01Z</dc:date>
    <item>
      <title>How to put the header and the no_count in the same row?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-put-the-header-and-the-no-count-in-the-same-row/m-p/900716#M1493</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ericykc_0-1698680805433.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89248i0FA370B266BB85FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ericykc_0-1698680805433.png" alt="ericykc_0-1698680805433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this is the output, and i want to put the final count and the hhid in the same row. May anyone teach me? Thank a lot.&lt;/P&gt;&lt;P&gt;Here my code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Member;&lt;BR /&gt;infile '~/MS3251/Raw Data/Surref.txt' dlm=',';&lt;BR /&gt;input dummy_var : $15. @;&lt;BR /&gt;if substr(dummy_var,1,1) ^in (0:9) then do;&lt;BR /&gt;input @1 hhid : $15. hhtype $;&lt;BR /&gt;no_count = 0;&lt;BR /&gt;retain dummy_var;&lt;BR /&gt;end;&lt;BR /&gt;else do;&lt;BR /&gt;no_count + 1;&lt;BR /&gt;if no_count &amp;gt; 0 then do;&lt;BR /&gt;input @1 birthdate : date11. householder_ind $ gender : $6. martial_status : $8. education employment_status $ income ;&lt;BR /&gt;if gender='Male' then no_males+1;&lt;BR /&gt;mem = no_count;&lt;BR /&gt;keep hhid hhtype mem no_count birthdate no_males;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 15:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-put-the-header-and-the-no-count-in-the-same-row/m-p/900716#M1493</guid>
      <dc:creator>ericykc</dc:creator>
      <dc:date>2023-10-30T15:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to put the header and the no_count in the same row?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-put-the-header-and-the-no-count-in-the-same-row/m-p/900733#M1495</link>
      <description>&lt;P&gt;Data and what you expect the result to look like.&lt;/P&gt;
&lt;P&gt;Put where? in a data set? A report? What sort of report?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 16:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-put-the-header-and-the-no-count-in-the-same-row/m-p/900733#M1495</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-30T16:15:00Z</dc:date>
    </item>
  </channel>
</rss>

