<?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 How to output data as a single record in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-output-data-as-a-single-record/m-p/54649#M11582</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
We are getting data of a particular person details in segments and I want to combine all info pertaining to single record.&lt;BR /&gt;
&lt;BR /&gt;
For $example, data is like this: (delimited by pipe)&lt;BR /&gt;
&lt;BR /&gt;
abc|tom^j^smith|23^elms street^manchester^MA|xxxxxx|yyyyyy&lt;BR /&gt;
def|E|2|PPO|Male&lt;BR /&gt;
ghi|blah1|blah2|blah3 &lt;BR /&gt;
&lt;BR /&gt;
So I want to combine all data into a single record, which is coming in segments. abc, def, ghi are repeating in the file and have many records. How to do this in sas?&lt;BR /&gt;
&lt;BR /&gt;
thanks,</description>
    <pubDate>Thu, 16 Oct 2008 10:33:26 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-10-16T10:33:26Z</dc:date>
    <item>
      <title>How to output data as a single record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-output-data-as-a-single-record/m-p/54649#M11582</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
We are getting data of a particular person details in segments and I want to combine all info pertaining to single record.&lt;BR /&gt;
&lt;BR /&gt;
For $example, data is like this: (delimited by pipe)&lt;BR /&gt;
&lt;BR /&gt;
abc|tom^j^smith|23^elms street^manchester^MA|xxxxxx|yyyyyy&lt;BR /&gt;
def|E|2|PPO|Male&lt;BR /&gt;
ghi|blah1|blah2|blah3 &lt;BR /&gt;
&lt;BR /&gt;
So I want to combine all data into a single record, which is coming in segments. abc, def, ghi are repeating in the file and have many records. How to do this in sas?&lt;BR /&gt;
&lt;BR /&gt;
thanks,</description>
      <pubDate>Thu, 16 Oct 2008 10:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-output-data-as-a-single-record/m-p/54649#M11582</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-16T10:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to output data as a single record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-output-data-as-a-single-record/m-p/54650#M11583</link>
      <description>Is the result a text file or a SAS dataset?&lt;BR /&gt;
&lt;BR /&gt;
For a text file:&lt;BR /&gt;
Have a look at the meaning of @ and @@ for the input and put statement.&lt;BR /&gt;
&lt;BR /&gt;
For a dataset:&lt;BR /&gt;
Have a look at 'Proc Transpose' or at the OUTPUT statement.&lt;BR /&gt;
&lt;BR /&gt;
To denormalise a table is often not a good idea - avoid it if you don't have very good reasons for it.&lt;BR /&gt;
&lt;BR /&gt;
Cheers, Patrick</description>
      <pubDate>Thu, 16 Oct 2008 10:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-output-data-as-a-single-record/m-p/54650#M11583</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-10-16T10:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to output data as a single record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-output-data-as-a-single-record/m-p/54651#M11584</link>
      <description>Try this&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
length a1-a14 $20;&lt;BR /&gt;
infile datalines dlm='|';&lt;BR /&gt;
input a1-a14 :$20.;&lt;BR /&gt;
datalines;&lt;BR /&gt;
abc|tom^j^smith|23^elms street^manchester^MA|xxxxxx|yyyyyy&lt;BR /&gt;
def|E|2|PPO|Male&lt;BR /&gt;
ghi|blah1|blah2|blah3&lt;BR /&gt;
abc|tom^j^smith|23^elms street^manchester^MA|xxxxxx|yyyyyy&lt;BR /&gt;
def|E|2|PPO|Male&lt;BR /&gt;
ghi|blah1|blah2|blah3&lt;BR /&gt;
abc|tom^j^smith|23^elms street^manchester^MA|xxxxxx|yyyyyy&lt;BR /&gt;
def|E|2|PPO|Male&lt;BR /&gt;
ghi|blah1|blah2|blah3&lt;BR /&gt;
abc|tom^j^smith|23^elms street^manchester^MA|xxxxxx|yyyyyy&lt;BR /&gt;
def|E|2|PPO|Male&lt;BR /&gt;
ghi|blah1|blah2|blah3&lt;BR /&gt;
;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 20 Oct 2008 12:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-output-data-as-a-single-record/m-p/54651#M11584</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2008-10-20T12:03:38Z</dc:date>
    </item>
  </channel>
</rss>

