<?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 apply labels while transposing in proc report by using across option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809417#M319202</link>
    <description>&lt;P&gt;data rawdata ;&lt;/P&gt;
&lt;P&gt;input id $ test $ result ;&lt;/P&gt;
&lt;P&gt;cards;&lt;/P&gt;
&lt;P&gt;101 bp 120&lt;/P&gt;
&lt;P&gt;101 wbc 230&lt;/P&gt;
&lt;P&gt;101 rbc 234&lt;/P&gt;
&lt;P&gt;102 bp 120&lt;/P&gt;
&lt;P&gt;102 wbc 230&lt;/P&gt;
&lt;P&gt;102 rbc 234&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;Note: we need to transpose the data in proc report only&lt;/P&gt;
&lt;P&gt;ods rtf file="path" ;&lt;/P&gt;
&lt;P&gt;proc report data=rawdata ;&lt;/P&gt;
&lt;P&gt;column id test result ;&lt;/P&gt;
&lt;P&gt;define test/across ;&lt;/P&gt;
&lt;P&gt;define id/order ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ods rtf close ;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output should be like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Analysis Variables&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;----------------------------------&lt;BR /&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wbc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rbc&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;101&amp;nbsp; &amp;nbsp; 120&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 230&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;234&lt;/P&gt;
&lt;P&gt;102&amp;nbsp; &amp;nbsp; 120&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 230&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;234&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my question is how to apply extra label for all&amp;nbsp; test varibles "&lt;STRONG&gt;Analysis Variables"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;while transposing&amp;nbsp;&lt;BR /&gt;Note: We should do in proc report only (don't use proc tranpose)&lt;/P&gt;</description>
    <pubDate>Sat, 23 Apr 2022 06:15:30 GMT</pubDate>
    <dc:creator>thanikondharish</dc:creator>
    <dc:date>2022-04-23T06:15:30Z</dc:date>
    <item>
      <title>how to apply labels while transposing in proc report by using across option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809417#M319202</link>
      <description>&lt;P&gt;data rawdata ;&lt;/P&gt;
&lt;P&gt;input id $ test $ result ;&lt;/P&gt;
&lt;P&gt;cards;&lt;/P&gt;
&lt;P&gt;101 bp 120&lt;/P&gt;
&lt;P&gt;101 wbc 230&lt;/P&gt;
&lt;P&gt;101 rbc 234&lt;/P&gt;
&lt;P&gt;102 bp 120&lt;/P&gt;
&lt;P&gt;102 wbc 230&lt;/P&gt;
&lt;P&gt;102 rbc 234&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;Note: we need to transpose the data in proc report only&lt;/P&gt;
&lt;P&gt;ods rtf file="path" ;&lt;/P&gt;
&lt;P&gt;proc report data=rawdata ;&lt;/P&gt;
&lt;P&gt;column id test result ;&lt;/P&gt;
&lt;P&gt;define test/across ;&lt;/P&gt;
&lt;P&gt;define id/order ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ods rtf close ;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output should be like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Analysis Variables&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;----------------------------------&lt;BR /&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wbc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rbc&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;101&amp;nbsp; &amp;nbsp; 120&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 230&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;234&lt;/P&gt;
&lt;P&gt;102&amp;nbsp; &amp;nbsp; 120&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 230&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;234&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my question is how to apply extra label for all&amp;nbsp; test varibles "&lt;STRONG&gt;Analysis Variables"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;while transposing&amp;nbsp;&lt;BR /&gt;Note: We should do in proc report only (don't use proc tranpose)&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 06:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809417#M319202</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2022-04-23T06:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply labels while transposing in proc report by using across option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809429#M319213</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define test/across "Analysis Variables";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Apr 2022 09:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809429#M319213</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-23T09:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply labels while transposing in proc report by using across option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809430#M319214</link>
      <description>Below label we need to get one underline</description>
      <pubDate>Sat, 23 Apr 2022 09:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809430#M319214</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2022-04-23T09:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply labels while transposing in proc report by using across option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809431#M319215</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Creating-Spanning-header-Underline-in-proc-report-rtf/td-p/792253" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Creating-Spanning-header-Underline-in-proc-report-rtf/td-p/792253&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 10:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809431#M319215</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-23T10:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply labels while transposing in proc report by using across option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809433#M319217</link>
      <description>&lt;PRE&gt;data rawdata ;
input id $ test $ result ;
cards;
101 bp 120
101 wbc 230
101 rbc 234
102 bp 120
102 wbc 230
102 rbc 234
;
run;





ods rtf file="c:\temp\temp.rtf" style=journal bodytitle;
ods escapechar = '^';
proc report data=rawdata split='*'  nowd;
column id result,test ;
define test/across "^R/RTF'\brdrb\brdrs 'Analysis Variables";
define result/analysis ' ';
define id/group ;
run;
ods rtf close ; &lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Apr 2022 10:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809433#M319217</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-23T10:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply labels while transposing in proc report by using across option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809448#M319222</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; As an alternative, this is also possible with a style override instead of RTF control strings. This means the technique would work in other destinations, not just RTF:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1650728339543.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70758i82BC46F0EE601941/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1650728339543.png" alt="Cynthia_sas_0-1650728339543.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 15:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809448#M319222</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-04-23T15:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply labels while transposing in proc report by using across option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809619#M319273</link>
      <description>&lt;P&gt;how to apply label for only 2 columns like :&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Analysis Variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----------------------------&lt;/P&gt;
&lt;P&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rbc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rbc&lt;/P&gt;
&lt;P&gt;101&amp;nbsp; &amp;nbsp; 120&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 230&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 340&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 05:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809619#M319273</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2022-04-25T05:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply labels while transposing in proc report by using across option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809642#M319289</link>
      <description>Then , You should use  proc tranpose .</description>
      <pubDate>Mon, 25 Apr 2022 10:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-apply-labels-while-transposing-in-proc-report-by-using/m-p/809642#M319289</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-25T10:25:46Z</dc:date>
    </item>
  </channel>
</rss>

