<?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: Proc report with nesting and across in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-with-nesting-and-across/m-p/952494#M372249</link>
    <description>&lt;P&gt;You 'd better post the sample data and the desired output. So we can test the code and know what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.heart nowd;
column ("MRDQ Domain Pearson Correlation (P-value)"  ' ' ' '  bp_status ) status,sex,weight;
define bp_status/group '';
define status/across '';
define sex/across '';
define weight/analysis sum '';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1733278861225.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102699iDE88632E5C3B7EA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1733278861225.png" alt="Ksharp_0-1733278861225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2024 02:21:08 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-12-04T02:21:08Z</dc:date>
    <item>
      <title>Proc report with nesting and across</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-with-nesting-and-across/m-p/952491#M372248</link>
      <description>&lt;P&gt;I have the following report code and it runs fine, however, I would like the label over the left most column to be on the same level as the treatment name. With this type of report setup, can it be done?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Hopper_1-1733276157965.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102697iA6509D858C8DA533/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Hopper_1-1733276157965.png" alt="_Hopper_1-1733276157965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data = combine ;&lt;BR /&gt;column ("MRDQ Domain Pearson Correlation (P-value)" variable) trtan,eyeord,&amp;amp;variable dummy;&lt;BR /&gt;where avisitn = &amp;amp;visit and trtan in (&amp;amp;trtan);&lt;BR /&gt;define variable / '' group f = $domain. style(column) ={cellwidth = 1.55in };&lt;BR /&gt;define trtan / '' across order = internal f = trt. style={vjust = bottom};&lt;BR /&gt;define eyeord / '' across order = internal f= eyeord. style={vjust = bottom} ;;&lt;BR /&gt;define &amp;amp;variable / '' style(column) = {cellwidth = 1.25in just = c vjust = top asis = on} ;&lt;BR /&gt;define dummy / '' noprint;&lt;/P&gt;
&lt;P&gt;compute before;&lt;BR /&gt;line "~S={font_size = 8pt}";&lt;BR /&gt;endcomp;&lt;BR /&gt;compute after variable;&lt;BR /&gt;line "~S={font_size = 4pt}";&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 01:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-with-nesting-and-across/m-p/952491#M372248</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2024-12-04T01:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report with nesting and across</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-with-nesting-and-across/m-p/952494#M372249</link>
      <description>&lt;P&gt;You 'd better post the sample data and the desired output. So we can test the code and know what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.heart nowd;
column ("MRDQ Domain Pearson Correlation (P-value)"  ' ' ' '  bp_status ) status,sex,weight;
define bp_status/group '';
define status/across '';
define sex/across '';
define weight/analysis sum '';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1733278861225.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102699iDE88632E5C3B7EA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1733278861225.png" alt="Ksharp_0-1733278861225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 02:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-with-nesting-and-across/m-p/952494#M372249</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-12-04T02:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report with nesting and across</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-with-nesting-and-across/m-p/952495#M372250</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm confused. I don't see Treatment Name on the report. Which column is the treatment name? You are using so many macro variables it's hard to figure out what your data looks like and which variable is which. My guess is that treatment may be TRTAN or it could be &amp;amp;VARIABLE or confusingly, it could be the column listed as VARIABLE? Just not sure and it looks like you've blanked out most of those column headers anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It appears that the leftmost column is just called "VARIABLE" and you've blanked out that header and are using "MRDQ Domain Pearson Correlation (P-value)" as the header over that variable:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1733278845305.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102698iE4ECA6796ED10716/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1733278845305.png" alt="Cynthia_sas_0-1733278845305.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Is "VARIABLE" the treatment name? If so, I don't understand what you mean when you say you want the label on the same level as treatment name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You're also using custom formats and while some of the custom formats help in figuring out whether variables are character or numeric, it's hard to dummy data without any idea of what the data looks like or what your macro variables and formats are doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Can you post some dummy data and a version of the code either without macro variables or with macro variable values supplied and either with or without the code for the formats?&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 02:21:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-with-nesting-and-across/m-p/952495#M372250</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2024-12-04T02:21:55Z</dc:date>
    </item>
  </channel>
</rss>

