<?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: trying to get data into 1 row in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87401#M24944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace "set" with "merge".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2013 21:33:44 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2013-07-23T21:33:44Z</dc:date>
    <item>
      <title>trying to get data into 1 row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87396#M24939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 3 tables that I merged and it creates 3 separate rows because of various column titles, but I want it to create 1 row per strata. I attached what it looks like when I do the merge. I want it all on 1 row by the strata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 20:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87396#M24939</guid>
      <dc:creator>tmcrouse</dc:creator>
      <dc:date>2013-07-23T20:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: trying to get data into 1 row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87397#M24940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is example_table_date exactly like how your data is in SAS? Why do you post under different names?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 21:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87397#M24940</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-07-23T21:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: trying to get data into 1 row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87398#M24941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you merge them? show your code please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 21:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87398#M24941</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-07-23T21:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: trying to get data into 1 row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87399#M24942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Yes it is. Because I am on my work computer right now and that is how they set up my desktop for the log in. The other is another log in from when I had another job but my current company will not let me use that. I have tried to log in on my home computer with this log in, but it is blocked. I guess employer related.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 21:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87399#M24942</guid>
      <dc:creator>tmcrouse</dc:creator>
      <dc:date>2013-07-23T21:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: trying to get data into 1 row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87400#M24943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; pos_aggregates;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; pos_tinofc pos_tinop pos_tinip;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; strata;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;1 table has the info for office, 1 table has the info for outpatient, 1 table has info for inpatient. I need to report on all the data but I am trying to figure out how to get it in 1 row for it all. I tried creating a table and appending. Did same thing as above code. Tried joins but it dropped records.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 21:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87400#M24943</guid>
      <dc:creator>tmcrouse</dc:creator>
      <dc:date>2013-07-23T21:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: trying to get data into 1 row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87401#M24944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace "set" with "merge".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 21:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87401#M24944</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-07-23T21:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: trying to get data into 1 row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87402#M24945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SET statement INTERLEAVES observations, so the resulting data set has N1 (n records in pos_tinofc) + N2 (pos_tinop) + N3 (pos_tinip) records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if the only variable in common in the 3 data sets is STRATA, then the MERGE statement will work (I assume as data set has no more than one record per stratum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; merge pos_tinofc pos_tinop pos_tinip;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; by strata;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your 3 data sets have other variables in common, then let us know.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 21:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87402#M24945</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2013-07-23T21:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: trying to get data into 1 row</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87403#M24946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wish they would have the option in SAS forum to give correct answer to more than 1 person. I am an idiot. You know I knew this and for some reason I was just having one of those days. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 21:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/trying-to-get-data-into-1-row/m-p/87403#M24946</guid>
      <dc:creator>tmcrouse</dc:creator>
      <dc:date>2013-07-23T21:42:14Z</dc:date>
    </item>
  </channel>
</rss>

