<?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 stuck at the first hurdle in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stuck-at-the-first-hurdle/m-p/29241#M4033</link>
    <description>Hi everyone&lt;BR /&gt;
&lt;BR /&gt;
I am new to SAS and EG although I have a lot of statistics experience I have just seemed to accidentally avoid this software so far&lt;BR /&gt;
&lt;BR /&gt;
anyway I have done the tutorial and have SAS for dummies and the little book of SAS ...&lt;BR /&gt;
&lt;BR /&gt;
but I am stumped at my first hurdle&lt;BR /&gt;
&lt;BR /&gt;
the data I have is in rows of transactions not per customer...&lt;BR /&gt;
&lt;BR /&gt;
so the first column is customer reference number and each customer typically has 3-6 rows showing each transaction.&lt;BR /&gt;
&lt;BR /&gt;
(some have just 1 and some have as many as 20)&lt;BR /&gt;
&lt;BR /&gt;
I want to create just one row per customer&lt;BR /&gt;
&lt;BR /&gt;
there are columns after customer number recording some information&lt;BR /&gt;
&lt;BR /&gt;
lets call them a, b, c, d, e and f&lt;BR /&gt;
&lt;BR /&gt;
they have numbers but some of the numbers are not amounts they are area codes or other forms of classification (so I don't want to sum them)&lt;BR /&gt;
&lt;BR /&gt;
what I want in my new data set is a number of columns:&lt;BR /&gt;
&lt;BR /&gt;
i.e &lt;BR /&gt;
&lt;BR /&gt;
policy number, a, b, c, d, e, f, a1, b1, c1, d1, e1, f1,  a2, b2, c2, d2, e2, f2,........ a20, b20, c20, d20, e20, f20&lt;BR /&gt;
&lt;BR /&gt;
I know this is an ETL task but I cannot get my data in any other format.&lt;BR /&gt;
&lt;BR /&gt;
Is there a relatively easy way to do this?&lt;BR /&gt;
&lt;BR /&gt;
I would know how to do it in Excel but I have a couple of million lines of data.&lt;BR /&gt;
&lt;BR /&gt;
any help would be hugely appreciated&lt;BR /&gt;
&lt;BR /&gt;
many thanks in advance&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
each customer ends up having</description>
    <pubDate>Fri, 05 Nov 2010 09:05:28 GMT</pubDate>
    <dc:creator>PauliF</dc:creator>
    <dc:date>2010-11-05T09:05:28Z</dc:date>
    <item>
      <title>stuck at the first hurdle</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stuck-at-the-first-hurdle/m-p/29241#M4033</link>
      <description>Hi everyone&lt;BR /&gt;
&lt;BR /&gt;
I am new to SAS and EG although I have a lot of statistics experience I have just seemed to accidentally avoid this software so far&lt;BR /&gt;
&lt;BR /&gt;
anyway I have done the tutorial and have SAS for dummies and the little book of SAS ...&lt;BR /&gt;
&lt;BR /&gt;
but I am stumped at my first hurdle&lt;BR /&gt;
&lt;BR /&gt;
the data I have is in rows of transactions not per customer...&lt;BR /&gt;
&lt;BR /&gt;
so the first column is customer reference number and each customer typically has 3-6 rows showing each transaction.&lt;BR /&gt;
&lt;BR /&gt;
(some have just 1 and some have as many as 20)&lt;BR /&gt;
&lt;BR /&gt;
I want to create just one row per customer&lt;BR /&gt;
&lt;BR /&gt;
there are columns after customer number recording some information&lt;BR /&gt;
&lt;BR /&gt;
lets call them a, b, c, d, e and f&lt;BR /&gt;
&lt;BR /&gt;
they have numbers but some of the numbers are not amounts they are area codes or other forms of classification (so I don't want to sum them)&lt;BR /&gt;
&lt;BR /&gt;
what I want in my new data set is a number of columns:&lt;BR /&gt;
&lt;BR /&gt;
i.e &lt;BR /&gt;
&lt;BR /&gt;
policy number, a, b, c, d, e, f, a1, b1, c1, d1, e1, f1,  a2, b2, c2, d2, e2, f2,........ a20, b20, c20, d20, e20, f20&lt;BR /&gt;
&lt;BR /&gt;
I know this is an ETL task but I cannot get my data in any other format.&lt;BR /&gt;
&lt;BR /&gt;
Is there a relatively easy way to do this?&lt;BR /&gt;
&lt;BR /&gt;
I would know how to do it in Excel but I have a couple of million lines of data.&lt;BR /&gt;
&lt;BR /&gt;
any help would be hugely appreciated&lt;BR /&gt;
&lt;BR /&gt;
many thanks in advance&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
each customer ends up having</description>
      <pubDate>Fri, 05 Nov 2010 09:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stuck-at-the-first-hurdle/m-p/29241#M4033</guid>
      <dc:creator>PauliF</dc:creator>
      <dc:date>2010-11-05T09:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: stuck at the first hurdle</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stuck-at-the-first-hurdle/m-p/29242#M4034</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Based on your comments, I would recommend you to use a transpose step for each variable. By doing a simple transpose for each ID and variable, you can receive a row for each customer and an array for each column of variable. After creating these files, you can then merge them together to form a single file.&lt;BR /&gt;
&lt;BR /&gt;
However, the best possible approach is actually to use a simple data step with retain statement and by statements to generate this data.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Murphy</description>
      <pubDate>Fri, 05 Nov 2010 12:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stuck-at-the-first-hurdle/m-p/29242#M4034</guid>
      <dc:creator>goladin</dc:creator>
      <dc:date>2010-11-05T12:10:30Z</dc:date>
    </item>
  </channel>
</rss>

