<?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: transpose in one step instead two in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/transpose-in-one-step-instead-two/m-p/68400#M14836</link>
    <description>Can you provide some sample data (in the form of a data step), as well as the final file you wish to achieve?&lt;BR /&gt;
&lt;BR /&gt;
Art</description>
    <pubDate>Mon, 23 May 2011 21:20:07 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-05-23T21:20:07Z</dc:date>
    <item>
      <title>transpose in one step instead two</title>
      <link>https://communities.sas.com/t5/SAS-Programming/transpose-in-one-step-instead-two/m-p/68399#M14835</link>
      <description>Can this be done  in one transpose data step?&lt;BR /&gt;
proc sql;&lt;BR /&gt;
      create table access_v1 as&lt;BR /&gt;
	    select Sales_Group,Product,sum(Sales_CY_Mth) as sls_cy_mth, sum(_2010) as S_2010, sum(_2011) as s_2011&lt;BR /&gt;
		from acess.acess1&lt;BR /&gt;
		group by Sales_Group,Product,Customer_Segment;&lt;BR /&gt;
&lt;BR /&gt;
	quit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 PROC TRANSPOSE DATA=access_v1 OUT=access_v2(drop=_name_) suffix=_acess2010;&lt;BR /&gt;
   BY Sales_Group ;&lt;BR /&gt;
   ID Product ;&lt;BR /&gt;
   VAR S_2010;&lt;BR /&gt;
   &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 PROC TRANSPOSE DATA=access_v1 OUT=access_v3(drop=_name_) suffix=_acess2011;&lt;BR /&gt;
   BY Sales_Group ;&lt;BR /&gt;
   ID Product ;&lt;BR /&gt;
   VAR S_2011;&lt;BR /&gt;
   &lt;BR /&gt;
run;</description>
      <pubDate>Mon, 23 May 2011 18:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/transpose-in-one-step-instead-two/m-p/68399#M14835</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2011-05-23T18:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: transpose in one step instead two</title>
      <link>https://communities.sas.com/t5/SAS-Programming/transpose-in-one-step-instead-two/m-p/68400#M14836</link>
      <description>Can you provide some sample data (in the form of a data step), as well as the final file you wish to achieve?&lt;BR /&gt;
&lt;BR /&gt;
Art</description>
      <pubDate>Mon, 23 May 2011 21:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/transpose-in-one-step-instead-two/m-p/68400#M14836</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-05-23T21:20:07Z</dc:date>
    </item>
  </channel>
</rss>

