<?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 Coding Question in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Coding-Question/m-p/52341#M5581</link>
    <description>Hi All!!&lt;BR /&gt;
&lt;BR /&gt;
I'm presently taking a listing of ID(account) numbers , then appending emails to this listing via db links etc.&lt;BR /&gt;
&lt;BR /&gt;
The return I get back lists out each email individually, hence many lines with the same account #&lt;BR /&gt;
&lt;BR /&gt;
ie: my list was originally say 2,600 records.&lt;BR /&gt;
&lt;BR /&gt;
Now its 34,000&lt;BR /&gt;
&lt;BR /&gt;
Is there a way I can then code to collapse the accounts to a single line and just list out the numerous emails on the same line.&lt;BR /&gt;
&lt;BR /&gt;
Output will be a csv.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Many Thanks!</description>
    <pubDate>Wed, 08 Jul 2009 18:06:50 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-07-08T18:06:50Z</dc:date>
    <item>
      <title>Coding Question</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Coding-Question/m-p/52341#M5581</link>
      <description>Hi All!!&lt;BR /&gt;
&lt;BR /&gt;
I'm presently taking a listing of ID(account) numbers , then appending emails to this listing via db links etc.&lt;BR /&gt;
&lt;BR /&gt;
The return I get back lists out each email individually, hence many lines with the same account #&lt;BR /&gt;
&lt;BR /&gt;
ie: my list was originally say 2,600 records.&lt;BR /&gt;
&lt;BR /&gt;
Now its 34,000&lt;BR /&gt;
&lt;BR /&gt;
Is there a way I can then code to collapse the accounts to a single line and just list out the numerous emails on the same line.&lt;BR /&gt;
&lt;BR /&gt;
Output will be a csv.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Many Thanks!</description>
      <pubDate>Wed, 08 Jul 2009 18:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Coding-Question/m-p/52341#M5581</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-08T18:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Coding Question</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Coding-Question/m-p/52342#M5582</link>
      <description>Hi:&lt;BR /&gt;
  Basically, if you have data like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
 ID          Email&lt;BR /&gt;
110    Joyce@school.edu&lt;BR /&gt;
110    Thomas@school.edu&lt;BR /&gt;
120    James@school.edu&lt;BR /&gt;
120    Jane@school.edu&lt;BR /&gt;
120    John@school.edu&lt;BR /&gt;
120    Louise@school.edu&lt;BR /&gt;
120    Robert@school.edu&lt;BR /&gt;
130    Alice@school.edu&lt;BR /&gt;
130    Barbara@school.edu&lt;BR /&gt;
130    Jeffrey@school.edu&lt;BR /&gt;
140    Alfred@school.edu&lt;BR /&gt;
140    Carol@school.edu&lt;BR /&gt;
140    Henry@school.edu&lt;BR /&gt;
140    Judy@school.edu&lt;BR /&gt;
150    Janet@school.edu&lt;BR /&gt;
150    Mary@school.edu&lt;BR /&gt;
150    Ronald@school.edu&lt;BR /&gt;
150    William@school.edu&lt;BR /&gt;
160    Philip@school.edu&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                   &lt;BR /&gt;
and you want to turn it into something like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
 ID           em1                  em2                   em3                   em4                   em5&lt;BR /&gt;
110    Joyce@school.edu     Thomas@school.edu&lt;BR /&gt;
120    James@school.edu     Jane@school.edu       John@school.edu       Louise@school.edu     Robert@school.edu&lt;BR /&gt;
130    Alice@school.edu     Barbara@school.edu    Jeffrey@school.edu&lt;BR /&gt;
140    Alfred@school.edu    Carol@school.edu      Henry@school.edu      Judy@school.edu&lt;BR /&gt;
150    Janet@school.edu     Mary@school.edu       Ronald@school.edu     William@school.edu&lt;BR /&gt;
160    Philip@school.edu&lt;BR /&gt;
                                                                                               &lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                                        &lt;BR /&gt;
You will want to restructure or transpose your data. Under the Tasks by Category, I believe the name of the task in EG is just TRANSPOSE. Using the above data as an example, ID would be the Group By variable and email would be the variable to transpose. On the Options pane, EM would be the value for the prefix (in order to get EM1-EM5 as the column names).&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 08 Jul 2009 21:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Coding-Question/m-p/52342#M5582</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-07-08T21:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Coding Question</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Coding-Question/m-p/52343#M5583</link>
      <description>Hi Cynthia!!&lt;BR /&gt;
&lt;BR /&gt;
Thank you sooooo much, worked like a charm!!&lt;BR /&gt;
&lt;BR /&gt;
Regards!</description>
      <pubDate>Thu, 09 Jul 2009 14:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Coding-Question/m-p/52343#M5583</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-09T14:22:07Z</dc:date>
    </item>
  </channel>
</rss>

