<?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 transpose by and get one record per subject in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-by-and-get-one-record-per-subject/m-p/780057#M248503</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to obtain single record per subject?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried below code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data = have;
by param;
var aval;
id trta;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Its giving me an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error: ID value "T1" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: ID value "T1" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: ID value "T2" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: ID value "T1" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: ID value "T2" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: ID value "T2" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: All BY groups were bad.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 22:26:38 GMT</pubDate>
    <dc:creator>RAVI2000</dc:creator>
    <dc:date>2021-11-12T22:26:38Z</dc:date>
    <item>
      <title>How to transpose by and get one record per subject</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-by-and-get-one-record-per-subject/m-p/780057#M248503</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to obtain single record per subject?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried below code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data = have;
by param;
var aval;
id trta;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Its giving me an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error: ID value "T1" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: ID value "T1" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: ID value "T2" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: ID value "T1" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: ID value "T2" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: ID value "T2" occurs twice in the same by group.&lt;/P&gt;
&lt;P&gt;Error: All BY groups were bad.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 22:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-by-and-get-one-record-per-subject/m-p/780057#M248503</guid>
      <dc:creator>RAVI2000</dc:creator>
      <dc:date>2021-11-12T22:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to transpose by tmax t1 and tmax t2 and get one record per subject</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-by-and-get-one-record-per-subject/m-p/780060#M248504</link>
      <description>&lt;P&gt;Use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;by subjid;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Nov 2021 21:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-by-and-get-one-record-per-subject/m-p/780060#M248504</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-12T21:49:34Z</dc:date>
    </item>
  </channel>
</rss>

