<?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: Need help in tranposing clinical data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-in-tranposing-clinical-data/m-p/44505#M11765</link>
    <description>Hi Sukanya ,&lt;BR /&gt;
                       Thank you very much for your support its working fine as per my req. Thanks a lot.</description>
    <pubDate>Fri, 19 Jun 2009 05:05:17 GMT</pubDate>
    <dc:creator>Parashar</dc:creator>
    <dc:date>2009-06-19T05:05:17Z</dc:date>
    <item>
      <title>Need help in tranposing clinical data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-in-tranposing-clinical-data/m-p/44502#M11762</link>
      <description>my raw data is like this&lt;BR /&gt;
id ab bb cb db eb a1 b1 c1 d1 e1 a2 b2 c2 d2 e2 a3 b3 c3 d3 e3&lt;BR /&gt;
1  11 23 43 23 43 12 34 54 23 43 11 23 45 67 65 11 23 45 67 32&lt;BR /&gt;
2  43 54 76 87 45 67 87 54 67 89 76 54 34 67 89 09 76 45 34 56&lt;BR /&gt;
&lt;BR /&gt;
I have to make it like this&lt;BR /&gt;
   base 1wk  2wk 3wk&lt;BR /&gt;
a  11     12    11   11&lt;BR /&gt;
b  23     34    23   23&lt;BR /&gt;
c  43     54    45   45&lt;BR /&gt;
d  23     23    67   67&lt;BR /&gt;
e  43     43    65   32&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Please Help me with this and guid me how to transpose that using proc transpose or array or anything else pls give me coding for that also&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance</description>
      <pubDate>Mon, 15 Jun 2009 06:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-in-tranposing-clinical-data/m-p/44502#M11762</guid>
      <dc:creator>Parashar</dc:creator>
      <dc:date>2009-06-15T06:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in tranposing clinical data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-in-tranposing-clinical-data/m-p/44503#M11763</link>
      <description>Have a look at the online documentation, everything you need is there. &lt;BR /&gt;
&lt;BR /&gt;
Some ideas: use a data-step to read the raw-data. In that data-step use an additional length-statement to define the four variables base and wk1-wk4. Use the output statement to create multiple records for each line read from the raw-data-file. You can shorten your code by using an array, but the problem can be solved without it.</description>
      <pubDate>Mon, 15 Jun 2009 10:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-in-tranposing-clinical-data/m-p/44503#M11763</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2009-06-15T10:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in tranposing clinical data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-in-tranposing-clinical-data/m-p/44504#M11764</link>
      <description>One way of acheive this by using arrays. Hope this will work.&lt;BR /&gt;
&lt;BR /&gt;
 data want(keep=id base wk1 wk2 wk3);&lt;BR /&gt;
    set have;&lt;BR /&gt;
    array base1{5} ab bb cb db eb;&lt;BR /&gt;
    array w1{5} a1 b1 c1 d1 e1;&lt;BR /&gt;
	array w2{5} a2 b2 c2 d2 e2;&lt;BR /&gt;
	array w3{5} a3 b3 c3 d3 e3;&lt;BR /&gt;
    do i=1 to 5;&lt;BR /&gt;
	   base=base1{i};&lt;BR /&gt;
	   wk1=w1{i};&lt;BR /&gt;
	   wk2=w2{i};&lt;BR /&gt;
	   wk3=w3{i};&lt;BR /&gt;
       output;&lt;BR /&gt;
    end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
~ Sukanya E</description>
      <pubDate>Mon, 15 Jun 2009 21:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-in-tranposing-clinical-data/m-p/44504#M11764</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-15T21:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in tranposing clinical data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-in-tranposing-clinical-data/m-p/44505#M11765</link>
      <description>Hi Sukanya ,&lt;BR /&gt;
                       Thank you very much for your support its working fine as per my req. Thanks a lot.</description>
      <pubDate>Fri, 19 Jun 2009 05:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-in-tranposing-clinical-data/m-p/44505#M11765</guid>
      <dc:creator>Parashar</dc:creator>
      <dc:date>2009-06-19T05:05:17Z</dc:date>
    </item>
  </channel>
</rss>

