<?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 do this question? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899742#M40066</link>
    <description>&lt;P&gt;Is your desired output a SAS data set or a .txt file?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 10:06:59 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2023-10-24T10:06:59Z</dc:date>
    <item>
      <title>How to do this question?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899740#M40065</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-10-24 175621.png" style="width: 396px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89048iD98CAADE2052B626/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-10-24 175621.png" alt="Screenshot 2023-10-24 175621.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; &lt;SPAN class=""&gt;data file&lt;/SPAN&gt; &lt;SPAN class=""&gt;Exe2_&lt;/SPAN&gt;&lt;SPAN class=""&gt;Data&lt;/SPAN&gt;&lt;SPAN class=""&gt;11.&lt;/SPAN&gt;&lt;SPAN class=""&gt;txt&lt;/SPAN&gt;&lt;SPAN class=""&gt;, the field indicates&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;contains a street address and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;a person who lives at that address, age and gender. Create a SAS data set that contains one&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;observation for each person who lives at a specific address. The finished SAS data set&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;looks&lt;/SPAN&gt; &lt;SPAN class=""&gt;like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Exe2_Data11.txt&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;30 Daguilar St&lt;BR /&gt;Mary Chan,21,F&lt;BR /&gt;David Chan,25,M&lt;BR /&gt;Man Chan,2,M&lt;BR /&gt;15 Fuk Hi St&lt;BR /&gt;William Leung,30,M&lt;BR /&gt;20 San Fat St&lt;BR /&gt;Walter Ma,25,M&lt;BR /&gt;John Ma,50,M&lt;BR /&gt;78 Stanley St&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 10:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899740#M40065</guid>
      <dc:creator>Melody1027</dc:creator>
      <dc:date>2023-10-24T10:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this question?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899742#M40066</link>
      <description>&lt;P&gt;Is your desired output a SAS data set or a .txt file?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 10:06:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899742#M40066</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2023-10-24T10:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this question?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899744#M40067</link>
      <description>&lt;P&gt;This is in essence the same question as posted here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question-if-we-don-t-know-the-number-of-member-if/m-p/899712#M40064" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question-if-we-don-t-know-the-number-of-member-if/m-p/899712#M40064&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 10:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899744#M40067</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-24T10:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this question?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899745#M40068</link>
      <description>SAS data set</description>
      <pubDate>Tue, 24 Oct 2023 10:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899745#M40068</guid>
      <dc:creator>Melody1027</dc:creator>
      <dc:date>2023-10-24T10:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this question?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899757#M40070</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
infile "path_to_your_file" dlm="," dsd truncover;
length
  address $100
  name $50
  age 8
  gender $1
;
retain address;
input @;
if countw(_infile_,",") &amp;gt; 1
then do;
  input name age gender;
  output;
end;
else input address $100.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Oct 2023 11:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-do-this-question/m-p/899757#M40070</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-24T11:01:50Z</dc:date>
    </item>
  </channel>
</rss>

