<?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: wide to narrow data? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431657#M106811</link>
    <description>Thanks a lot. Below just worked out.&lt;BR /&gt;proc transpose data=c.temp out=c.temp1;&lt;BR /&gt;by countycode;&lt;BR /&gt;run;</description>
    <pubDate>Mon, 29 Jan 2018 02:05:55 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2018-01-29T02:05:55Z</dc:date>
    <item>
      <title>wide to narrow data?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431655#M106809</link>
      <description>&lt;P&gt;I have a census population by counties and age categories in wide format as shown in the Image 2. Can you please help organize it to a narrow format in Image1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried e.g.,: if agecat1 then agecat=1; else&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp; if agecat2 then agecat=2; else ..&lt;/P&gt;&lt;P&gt;which creates only agecat=1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image 1: data I want:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wanted.png" style="width: 280px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18164i4F9E54B33D922027/image-size/large?v=v2&amp;amp;px=999" role="button" title="wanted.png" alt="wanted.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Image 2: data I have&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="have.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18163i0946517A321A9730/image-size/large?v=v2&amp;amp;px=999" role="button" title="have.png" alt="have.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 01:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431655#M106809</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-29T01:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: wide to narrow data?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431656#M106810</link>
      <description>&lt;P&gt;Cruise, you should be on cruise control with proc transpose with tons of syntax on&amp;nbsp; a google search&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 01:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431656#M106810</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-29T01:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: wide to narrow data?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431657#M106811</link>
      <description>Thanks a lot. Below just worked out.&lt;BR /&gt;proc transpose data=c.temp out=c.temp1;&lt;BR /&gt;by countycode;&lt;BR /&gt;run;</description>
      <pubDate>Mon, 29 Jan 2018 02:05:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431657#M106811</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-29T02:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: wide to narrow data?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431658#M106812</link>
      <description>&lt;P&gt;Well done! That's the spirit. Have a good evening. Mark your own answer as correct and please close the thread. Good job mate!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 02:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431658#M106812</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-29T02:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: wide to narrow data?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431659#M106813</link>
      <description>do you know how to close the thread?</description>
      <pubDate>Mon, 29 Jan 2018 02:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431659#M106813</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-29T02:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: wide to narrow data?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431660#M106814</link>
      <description>&lt;P&gt;Well, you have. Some original posters never mark an answer and the question stays open for ages. I would assume they want more responses, however if it's simple i seriously wonder why they lack the common sense to know that they are not gonna get any more. lol. Marking the answer is closing the thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure somebody may still come to this thread and offer like, "hey, here is an array solution. lol" that's like peanuts alongside my beer seeing such messages &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 02:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431660#M106814</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-29T02:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: wide to narrow data?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431661#M106815</link>
      <description>Gotcha. Have a wonderful evening.</description>
      <pubDate>Mon, 29 Jan 2018 02:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wide-to-narrow-data/m-p/431661#M106815</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-29T02:21:20Z</dc:date>
    </item>
  </channel>
</rss>

