<?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: &amp;quot;Transpose&amp;quot; data - EG 4.1 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-Transpose-quot-data-EG-4-1/m-p/41164#M4903</link>
    <description>Hello Magnus,&lt;BR /&gt;
&lt;BR /&gt;
This is a solution:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data r(rename=(t=Comment));&lt;BR /&gt;
  retain Claim t;&lt;BR /&gt;
  length t $500;&lt;BR /&gt;
  set i;&lt;BR /&gt;
  if First.Claim then t="";&lt;BR /&gt;
  t=CATX(' ',t,Comment);  &lt;BR /&gt;
  if Last.Claim then output;&lt;BR /&gt;
  by Claim;&lt;BR /&gt;
  keep t Claim;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
    <pubDate>Wed, 30 Mar 2011 19:52:58 GMT</pubDate>
    <dc:creator>SPR</dc:creator>
    <dc:date>2011-03-30T19:52:58Z</dc:date>
    <item>
      <title>"Transpose" data - EG 4.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-Transpose-quot-data-EG-4-1/m-p/41163#M4902</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have a table that contains claims with claim text. A claim appears multiple times (row) but the claim text per row is different. Some claims may have 2 rows while other have 4 or more. The table looks like this:&lt;BR /&gt;
&lt;BR /&gt;
Claim Comment&lt;BR /&gt;
123    text text text text&lt;BR /&gt;
123    xxxxxx xx xxxx xxxxxx&lt;BR /&gt;
456   gggggg gggggggg gggg&lt;BR /&gt;
456   gggkkkkgg kkkkg kkkkllk&lt;BR /&gt;
456   yyyy yyyyyy xxxx yxyxyx&lt;BR /&gt;
456   uuu hhaha hyeee eyyeyye&lt;BR /&gt;
&lt;BR /&gt;
What i want the outcome to be is&lt;BR /&gt;
Claim Comment&lt;BR /&gt;
123      text text text text xxxxxx xx xxxx xxxxxx&lt;BR /&gt;
456      ggggg gggggggg gggg  gggkkkkgg kkkkg kkkkllk  yyyy yyyyyy xxxx yxyxyx uuu hhaha hyeee eyyeyye&lt;BR /&gt;
&lt;BR /&gt;
I hope this makes sense. It would be preferable if the comments were in one cell, but if they are their own, it is ok too (as long as they are on the same row).&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Wed, 30 Mar 2011 19:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-Transpose-quot-data-EG-4-1/m-p/41163#M4902</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-30T19:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: "Transpose" data - EG 4.1</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-Transpose-quot-data-EG-4-1/m-p/41164#M4903</link>
      <description>Hello Magnus,&lt;BR /&gt;
&lt;BR /&gt;
This is a solution:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data r(rename=(t=Comment));&lt;BR /&gt;
  retain Claim t;&lt;BR /&gt;
  length t $500;&lt;BR /&gt;
  set i;&lt;BR /&gt;
  if First.Claim then t="";&lt;BR /&gt;
  t=CATX(' ',t,Comment);  &lt;BR /&gt;
  if Last.Claim then output;&lt;BR /&gt;
  by Claim;&lt;BR /&gt;
  keep t Claim;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Wed, 30 Mar 2011 19:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/quot-Transpose-quot-data-EG-4-1/m-p/41164#M4903</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-03-30T19:52:58Z</dc:date>
    </item>
  </channel>
</rss>

