<?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 Transforming a SAS data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transforming-a-SAS-data-set/m-p/28249#M5202</link>
    <description>I need to convert a SAS-data set with two sort keys to a new set where key 1 define rows and key 2 define columns in the new set as exemplified below (as can be done with the pivot function in Excel)&lt;BR /&gt;
&lt;BR /&gt;
Input:&lt;BR /&gt;
Key1   Key2   Data&lt;BR /&gt;
T1       AA       23&lt;BR /&gt;
T2       AA       24&lt;BR /&gt;
T3       AA       21&lt;BR /&gt;
T1       BB       19&lt;BR /&gt;
T2       BB       25&lt;BR /&gt;
T1       CC       43&lt;BR /&gt;
T3       CC       43&lt;BR /&gt;
&lt;BR /&gt;
needed output:&lt;BR /&gt;
&lt;BR /&gt;
Key1    AA      BB       CC&lt;BR /&gt;
T1         23       19       43&lt;BR /&gt;
T2         24       25	&lt;BR /&gt;
T3         21                 43</description>
    <pubDate>Thu, 04 Nov 2010 10:59:12 GMT</pubDate>
    <dc:creator>StaffanK</dc:creator>
    <dc:date>2010-11-04T10:59:12Z</dc:date>
    <item>
      <title>Transforming a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transforming-a-SAS-data-set/m-p/28249#M5202</link>
      <description>I need to convert a SAS-data set with two sort keys to a new set where key 1 define rows and key 2 define columns in the new set as exemplified below (as can be done with the pivot function in Excel)&lt;BR /&gt;
&lt;BR /&gt;
Input:&lt;BR /&gt;
Key1   Key2   Data&lt;BR /&gt;
T1       AA       23&lt;BR /&gt;
T2       AA       24&lt;BR /&gt;
T3       AA       21&lt;BR /&gt;
T1       BB       19&lt;BR /&gt;
T2       BB       25&lt;BR /&gt;
T1       CC       43&lt;BR /&gt;
T3       CC       43&lt;BR /&gt;
&lt;BR /&gt;
needed output:&lt;BR /&gt;
&lt;BR /&gt;
Key1    AA      BB       CC&lt;BR /&gt;
T1         23       19       43&lt;BR /&gt;
T2         24       25	&lt;BR /&gt;
T3         21                 43</description>
      <pubDate>Thu, 04 Nov 2010 10:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transforming-a-SAS-data-set/m-p/28249#M5202</guid>
      <dc:creator>StaffanK</dc:creator>
      <dc:date>2010-11-04T10:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transforming-a-SAS-data-set/m-p/28250#M5203</link>
      <description>Check PROC TRANSPOSE in the SAS DOC.  Also, there are SAS support website technical / conference material on the topic.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
proc transpose site:sas.com</description>
      <pubDate>Thu, 04 Nov 2010 11:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transforming-a-SAS-data-set/m-p/28250#M5203</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-11-04T11:08:32Z</dc:date>
    </item>
  </channel>
</rss>

