<?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: Bring data from second obs of client into first obs so all data is in one row in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510042#M137211</link>
    <description>&lt;P&gt;Sorry, what do you mean by this&amp;nbsp;&lt;SPAN&gt;So lets look at what&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235864" target="_blank"&gt;kt_080517&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;has where??&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am not catching your suggestion&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Nov 2018 19:49:00 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-11-02T19:49:00Z</dc:date>
    <item>
      <title>Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/509980#M137188</link>
      <description>&lt;P&gt;This is my dataset:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Client&lt;/TD&gt;&lt;TD&gt;Gender&lt;/TD&gt;&lt;TD&gt;Test_ID&lt;/TD&gt;&lt;TD&gt;Test_Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;5/1/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&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lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;TD&gt;789&lt;/TD&gt;&lt;TD&gt;548&lt;/TD&gt;&lt;TD&gt;1/1/2017&lt;/TD&gt;&lt;TD&gt;6/1/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;TD&gt;121&lt;/TD&gt;&lt;TD&gt;540&lt;/TD&gt;&lt;TD&gt;8/1/2016&lt;/TD&gt;&lt;TD&gt;2/1/2017&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is a transpose? Any help would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 18:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/509980#M137188</guid>
      <dc:creator>kt_080517</dc:creator>
      <dc:date>2018-11-02T18:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/509982#M137190</link>
      <description>&lt;P&gt;Does each client level always only contain two observations?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 17:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/509982#M137190</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-11-02T17:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/509983#M137191</link>
      <description>&lt;P&gt;Yes, PROC TRANSPOSE is the tool.&amp;nbsp; I did a simple google search&lt;/P&gt;
&lt;P&gt;transpose site:sas.com&lt;/P&gt;
&lt;P&gt;and the first hit had an example of what you are looking for&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings09/060-2009.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings09/060-2009.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 17:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/509983#M137191</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2018-11-02T17:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/509986#M137193</link>
      <description>&lt;P&gt;in my current dataset, yes - there are only 2 observations per client. But, I may expand that to multiple obs per client (not exceeding 25 obs)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 17:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/509986#M137193</guid>
      <dc:creator>kt_080517</dc:creator>
      <dc:date>2018-11-02T17:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/509999#M137195</link>
      <description>&lt;P&gt;May&amp;nbsp;require a double transpose and the transpose will likely convert the dates to character&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are OK with this, I can try&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 18:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/509999#M137195</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-02T18:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510022#M137204</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Client $	Gender $ test_id $	Test_Date :mmddyy10.;
format test_date mmddyy10.;
cards;
A	F	123	5/1/2015
A	F	567	11/1/2015
B	M	789	1/1/2017
B	M	548	6/1/2017
C	M	121	8/1/2016
C	M	540	2/1/2017
;
data want;
do _n_=1 by 1 until(last.client);
set have;
by Client ;
array j(*)$ test_id1-test_id2 ;
array k(*) Test_Date1-Test_Date2;
if _n_=1 then call missing(of j(*),of  k(*));
j(_n_)=test_id;
k(_n_)=Test_Date;
end;
format test_Date: mmddyy10.;
drop test_id test_date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Nov 2018 19:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510022#M137204</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-02T19:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510037#M137208</link>
      <description>&lt;P&gt;So lets look at what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235864"&gt;@kt_080517&lt;/a&gt; has where they may have multipole test for a client how would they make test_id2 and test_date2 dynamic so they would not have to edit the program and replace the test_id2 with test_id3?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Client $	Gender $ test_id $	Test_Date :mmddyy10.;
format test_date mmddyy10.;
cards;
A	F	123	5/1/2015
A	F	124	5/4/2015
A	F	567	11/1/2015
B	M	789	1/1/2017
B	M	790	2/21/2017
B	M	548	6/1/2017
C	M	121	8/1/2016
C	M	540	2/1/2017
;
data want;
do _n_=1 by 1 until(last.client);
set have;
by Client ;
array j(*)$ test_id1-test_id3 ;
array k(*) Test_Date1-Test_Date3;
if _n_=1 then call missing(of j(*),of  k(*));
j(_n_)=test_id;
k(_n_)=Test_Date;
end;
format test_Date: mmddyy10.;
drop test_id test_date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Nov 2018 19:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510037#M137208</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-11-02T19:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510042#M137211</link>
      <description>&lt;P&gt;Sorry, what do you mean by this&amp;nbsp;&lt;SPAN&gt;So lets look at what&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235864" target="_blank"&gt;kt_080517&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;has where??&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am not catching your suggestion&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 19:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510042#M137211</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-02T19:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510047#M137213</link>
      <description>&lt;P&gt;Can Proc SQL be used here? to bring a value from obs other than the first into a column of its own so all data is in one row?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 20:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510047#M137213</guid>
      <dc:creator>kt_080517</dc:creator>
      <dc:date>2018-11-02T20:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510056#M137215</link>
      <description>&lt;P&gt;why sql?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sql can help in getting the array subscript(number of elements)&amp;nbsp; as a macro to make the code i shared dynamic. however, for transpose either data-step or proc transpose is best&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this should handle multiple id requirement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Client $	Gender $ test_id $	Test_Date :mmddyy10.;
format test_date mmddyy10.;
cards;
A	F	123	5/1/2015
A	F	567	11/1/2015
B	M	789	1/1/2017
B	M	548	6/1/2017
C	M	121	8/1/2016
C	M	540	2/1/2017
;

proc sql;
select max(cnt) into : m trimmed 
from (select count(client) as cnt from have group by client);
quit;


data want;
do _n_=1 by 1 until(last.client);
set have(rename=(test_id=_test_id Test_Date=_Test_Date));
by Client ;
array test_id(&amp;amp;m)$ ;
array Test_Date(&amp;amp;m);
if _n_=1 then call missing(of test_id(*),of  Test_Date(*));
test_id(_n_)=_test_id;
Test_Date(_n_)=_Test_Date;
end;
format test_Date: mmddyy10.;
drop _:;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Nov 2018 20:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510056#M137215</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-02T20:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510068#M137223</link>
      <description>Looks like you want one row per client &lt;BR /&gt;That works well with a data step using BY statement (by client)&lt;BR /&gt;Collect test dates and test_ID in the easiest way, as an array. &lt;BR /&gt;Suppose there are no more than 10 tests for each client.&lt;BR /&gt;Data client_tests ;&lt;BR /&gt;Do test_n = 1 by 1 until( last.client) ;&lt;BR /&gt;   Set your_dataset end= finished ;&lt;BR /&gt;   By client;&lt;BR /&gt; Array testDate(10) ;&lt;BR /&gt; Array testID(10) $10 ;&lt;BR /&gt;IF TEST_N &amp;gt; dim( testdate) then do ;&lt;BR /&gt;   Err_ct +1 ;&lt;BR /&gt;   If err_ct =1  then&lt;BR /&gt;      Put "Error: need to widen the array" / _all_ ; &lt;BR /&gt;    Continue ;&lt;BR /&gt;   testDate( test_n ) = test_date ;&lt;BR /&gt;   TestID( test_n ) = test_id ;&lt;BR /&gt;End ;&lt;BR /&gt;If finished and err_ct &amp;gt;1 then &lt;BR /&gt;      Put 'WARNING: found ' err_ct ' inputs outside array.' ;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;You might not need as many as 10.&lt;BR /&gt;You could collect the max number of tests for a client within the data step.&lt;BR /&gt;As the test dates and IDs are stored in array variables testDate1 to testDate10  and testID1 to testID10 you could drop the vars test_date and test_id, along with ER_CT. &lt;BR /&gt;On each output row the variable test_n indicates 1 more than the number of tests for each client.&lt;BR /&gt;I have assumed that taking the sex value from the last client row provides correct results.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Nov 2018 21:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510068#M137223</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2018-11-02T21:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510079#M137233</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235864"&gt;@kt_080517&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This is my dataset:&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;Client&lt;/TD&gt;
&lt;TD&gt;Gender&lt;/TD&gt;
&lt;TD&gt;Test_ID&lt;/TD&gt;
&lt;TD&gt;Test_Date&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;F&lt;/TD&gt;
&lt;TD&gt;123&lt;/TD&gt;
&lt;TD&gt;5/1/2015&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;F&lt;/TD&gt;
&lt;TD&gt;567&lt;/TD&gt;
&lt;TD&gt;11/1/2015&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B&lt;/TD&gt;
&lt;TD&gt;M&lt;/TD&gt;
&lt;TD&gt;789&lt;/TD&gt;
&lt;TD&gt;1/1/2017&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B&lt;/TD&gt;
&lt;TD&gt;M&lt;/TD&gt;
&lt;TD&gt;548&lt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&gt;
&lt;TD&gt;540&lt;/TD&gt;
&lt;TD&gt;8/1/2016&lt;/TD&gt;
&lt;TD&gt;2/1/2017&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this is a transpose? Any help would be great!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Another of these combine rows question and I just spent yet&amp;nbsp;another couple of hours or so undoing data provided in that format so it can actually be used...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Repeat after me: I &lt;STRONG&gt;hate&lt;/STRONG&gt; spreadsheets. &lt;img id="manfrustrated" class="emoticon emoticon-manfrustrated" src="https://communities.sas.com/i/smilies/16x16_man-frustrated.png" alt="Man Frustrated" title="Man Frustrated" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 22:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510079#M137233</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-02T22:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data from second obs of client into first obs so all data is in one row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510137#M137262</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Client $	Gender $ test_id $	Test_Date :mmddyy10.;
format test_date mmddyy10.;
cards;
A	F	123	5/1/2015
A	F	567	11/1/2015
B	M	789	1/1/2017
B	M	548	6/1/2017
C	M	121	8/1/2016
C	M	540	2/1/2017
;

proc summary data=have nway;
class  Client ;
output out=want idgroup(out[2] ( Gender  test_id Test_Date)=);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Nov 2018 11:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bring-data-from-second-obs-of-client-into-first-obs-so-all-data/m-p/510137#M137262</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-11-03T11:31:35Z</dc:date>
    </item>
  </channel>
</rss>

