<?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: Long to Broad in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632263#M77795</link>
    <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; I got the solution!&amp;nbsp; I think I must have just been making a stupid error with my code and perhaps it was not sorted correctly prior to the transpose procedure.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Mar 2020 17:04:33 GMT</pubDate>
    <dc:creator>anissak1</dc:creator>
    <dc:date>2020-03-15T17:04:33Z</dc:date>
    <item>
      <title>Long to Broad</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632205#M77785</link>
      <description>&lt;P&gt;I am relatively new to SAS.&amp;nbsp; I have transposed from long to broad with indicator variables, but I can't figure out how to transpose with only two columns of data.&amp;nbsp; Seems embarrassingly easy, but nothing seems to work.&amp;nbsp; Any advice?&amp;nbsp; Many thanks. I have two observations for each subject that are not identified by anything other than the value of the variable.&amp;nbsp; Would like a dateset with each of the two values for each subject in a separate column.&amp;nbsp; Thank you!! Anissa&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 00:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632205#M77785</guid>
      <dc:creator>anissak1</dc:creator>
      <dc:date>2020-03-15T00:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Long to Broad</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632208#M77786</link>
      <description>&lt;P&gt;what have you tried?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Care to provide the data in text rather than as an image?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 02:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632208#M77786</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-03-15T02:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Long to Broad</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632227#M77789</link>
      <description>&lt;P&gt;Please post example data in a data step with datalines, and show the code you tried; use the "little running man" for posting code. In case of ERRORs or WARNINGs or any unexpected outcome, post the log with the {i} button.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 07:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632227#M77789</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-15T07:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Long to Broad</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632237#M77790</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/264621"&gt;@anissak1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this code correspond to your need?&lt;/P&gt;
&lt;P&gt;NB: you can avoid the PROC SORT step if the dataset is already sorted by USUBJID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have out=have_sorted;
	by usubjid;
run;

proc transpose data=have_sorted out=want (drop=_:) prefix=ftstresn;
	var ftstresn;
	by usubjid;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 Mar 2020 09:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632237#M77790</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-03-15T09:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Long to Broad</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632262#M77794</link>
      <description>&lt;P&gt;Thank you!!&amp;nbsp; That worked.&amp;nbsp; I have no idea what I did differently with my previous code.&amp;nbsp; But had been coding all day so perhaps it was just a stupid error.&amp;nbsp; I appreciate the guidance!&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 17:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632262#M77794</guid>
      <dc:creator>anissak1</dc:creator>
      <dc:date>2020-03-15T17:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Long to Broad</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632263#M77795</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; I got the solution!&amp;nbsp; I think I must have just been making a stupid error with my code and perhaps it was not sorted correctly prior to the transpose procedure.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 17:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632263#M77795</guid>
      <dc:creator>anissak1</dc:creator>
      <dc:date>2020-03-15T17:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Long to Broad</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632264#M77796</link>
      <description>&lt;P&gt;Thank you for the reply!&amp;nbsp; The code provided by the other user worked.&amp;nbsp; I think it was a matter of my data not being sorted correctly.&amp;nbsp; As you seem to be a super user, do you have ideas on a (paid) tutor I might sign up with for help to work with directly in the next few weeks?&amp;nbsp; I'm working on a clinical dataset for a masters thesis that is pretty complicated and could use some ongoing assistance.&amp;nbsp; Should I post a note for such help on a board perhaps?&amp;nbsp; Thanks for the guidance!&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 17:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Long-to-Broad/m-p/632264#M77796</guid>
      <dc:creator>anissak1</dc:creator>
      <dc:date>2020-03-15T17:07:26Z</dc:date>
    </item>
  </channel>
</rss>

