<?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: Help in exploding the data in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Help-in-exploding-the-data/m-p/72051#M1655</link>
    <description>Assign a numeric variable to 1 for each observation, which you will use with transposing your data.  Also, use the ID statement specifying your PROCEDURE variable to take the column/variable name.  &lt;BR /&gt;
&lt;BR /&gt;
Then use a PROC FORMAT to assign 1=YES and OTHER=NO for the numeric variable, applied with a FORMAT statement.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS Procedures Guide: The TRANSPOSE Procedure&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000063661.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000063661.htm&lt;/A&gt;</description>
    <pubDate>Thu, 17 Sep 2009 16:19:31 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-09-17T16:19:31Z</dc:date>
    <item>
      <title>Help in exploding the data</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Help-in-exploding-the-data/m-p/72050#M1654</link>
      <description>hi ,&lt;BR /&gt;
I have a dataset in format below:&lt;BR /&gt;
ID Vi PRocedure&lt;BR /&gt;
1    1     ABC&lt;BR /&gt;
1    1     DEF&lt;BR /&gt;
1    1     FCG &lt;BR /&gt;
1    2     FCG  &lt;BR /&gt;
1    2     KKR &lt;BR /&gt;
&lt;BR /&gt;
when I transpose this using proc transpose prefix=proc; by id vi;var procedure;run;&lt;BR /&gt;
&lt;BR /&gt;
I get &lt;BR /&gt;
&lt;BR /&gt;
ID  Vi   Proc1 Proc2 Proc3&lt;BR /&gt;
1    1    ABC  DEF    FCG&lt;BR /&gt;
1    2    FCG  KKR     .&lt;BR /&gt;
&lt;BR /&gt;
actually what I need is something like this..&lt;BR /&gt;
&lt;BR /&gt;
ID  Vi ABC DEF FCG KKR &lt;BR /&gt;
1    1  yes   yes   yes   no &lt;BR /&gt;
1    2   no      no   yes   yes&lt;BR /&gt;
&lt;BR /&gt;
I'm not sure how to get to here in my final dataset..&lt;BR /&gt;
&lt;BR /&gt;
Appreciate for you help.&lt;BR /&gt;
&lt;BR /&gt;
Eddie</description>
      <pubDate>Thu, 17 Sep 2009 15:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Help-in-exploding-the-data/m-p/72050#M1654</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-17T15:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help in exploding the data</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Help-in-exploding-the-data/m-p/72051#M1655</link>
      <description>Assign a numeric variable to 1 for each observation, which you will use with transposing your data.  Also, use the ID statement specifying your PROCEDURE variable to take the column/variable name.  &lt;BR /&gt;
&lt;BR /&gt;
Then use a PROC FORMAT to assign 1=YES and OTHER=NO for the numeric variable, applied with a FORMAT statement.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS Procedures Guide: The TRANSPOSE Procedure&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000063661.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000063661.htm&lt;/A&gt;</description>
      <pubDate>Thu, 17 Sep 2009 16:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Help-in-exploding-the-data/m-p/72051#M1655</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-17T16:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help in exploding the data</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Help-in-exploding-the-data/m-p/72052#M1656</link>
      <description>Hy Scott,&lt;BR /&gt;
Great..this is working. Actually I was trying out using 2 D( visits * Procedure) arrays and almost lost few hair.. this approach was very simple..&lt;BR /&gt;
&lt;BR /&gt;
Appreciate your quick help...&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Addy</description>
      <pubDate>Thu, 17 Sep 2009 16:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Help-in-exploding-the-data/m-p/72052#M1656</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-17T16:31:54Z</dc:date>
    </item>
  </channel>
</rss>

