<?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 Problems with PROC Transpose in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-PROC-Transpose/m-p/41861#M10847</link>
    <description>I have data that looks like this:&lt;BR /&gt;
&lt;BR /&gt;
location,label,value&lt;BR /&gt;
1,A,0&lt;BR /&gt;
1,B,1&lt;BR /&gt;
2,A,1&lt;BR /&gt;
2,B,0&lt;BR /&gt;
&lt;BR /&gt;
However, I would like to transpose it to make it look like this:&lt;BR /&gt;
&lt;BR /&gt;
location,A,B&lt;BR /&gt;
1,0,1&lt;BR /&gt;
2,1,0&lt;BR /&gt;
&lt;BR /&gt;
I have tried the following code, which gives me an error:&lt;BR /&gt;
&lt;BR /&gt;
PROC TRANSPOSE data=before out=after let;&lt;BR /&gt;
by location;&lt;BR /&gt;
id label;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Any help would be much appreciated. Thanks!&lt;BR /&gt;
&lt;BR /&gt;
-&lt;BR /&gt;
&lt;BR /&gt;
Nevermind, this code works fine.&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: JeffG

Message was edited by: JeffG</description>
    <pubDate>Thu, 31 Mar 2011 19:25:35 GMT</pubDate>
    <dc:creator>JeffG</dc:creator>
    <dc:date>2011-03-31T19:25:35Z</dc:date>
    <item>
      <title>Problems with PROC Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-PROC-Transpose/m-p/41861#M10847</link>
      <description>I have data that looks like this:&lt;BR /&gt;
&lt;BR /&gt;
location,label,value&lt;BR /&gt;
1,A,0&lt;BR /&gt;
1,B,1&lt;BR /&gt;
2,A,1&lt;BR /&gt;
2,B,0&lt;BR /&gt;
&lt;BR /&gt;
However, I would like to transpose it to make it look like this:&lt;BR /&gt;
&lt;BR /&gt;
location,A,B&lt;BR /&gt;
1,0,1&lt;BR /&gt;
2,1,0&lt;BR /&gt;
&lt;BR /&gt;
I have tried the following code, which gives me an error:&lt;BR /&gt;
&lt;BR /&gt;
PROC TRANSPOSE data=before out=after let;&lt;BR /&gt;
by location;&lt;BR /&gt;
id label;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Any help would be much appreciated. Thanks!&lt;BR /&gt;
&lt;BR /&gt;
-&lt;BR /&gt;
&lt;BR /&gt;
Nevermind, this code works fine.&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: JeffG

Message was edited by: JeffG</description>
      <pubDate>Thu, 31 Mar 2011 19:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problems-with-PROC-Transpose/m-p/41861#M10847</guid>
      <dc:creator>JeffG</dc:creator>
      <dc:date>2011-03-31T19:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with PROC Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problems-with-PROC-Transpose/m-p/41862#M10848</link>
      <description>the codes worked, as per my testing.</description>
      <pubDate>Thu, 31 Mar 2011 20:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problems-with-PROC-Transpose/m-p/41862#M10848</guid>
      <dc:creator>flysnow</dc:creator>
      <dc:date>2011-03-31T20:25:38Z</dc:date>
    </item>
  </channel>
</rss>

