<?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 get rid of empty box when running Proc Report? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812921#M320754</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the following code I get an empty blue box under the smoking status values. Does anyone know how I can adapt my code to remove this box so "Heavy (16-25)" and the other values are on the same line as status2, sex2 and bpstatus2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data merged;
 set sashelp.heart;
run;

proc report data=Merged split='~' nowd ;
	
	column status status2 sex sex2 bp_status bp_status2 Smoking_Status,(MRW);
	
	define Smoking_Status / Across;
	define status / Group noprint;
	define sex / Group noprint;
	define bp_status / Group noprint;
	define MRW / sum '';

	define status2 / computed;
	define sex2 / computed;
	define bp_status2 / computed;

compute before bp_status;
_status=status;
_sex=sex;
_bp_status=bp_status;
endcomp;

compute status2/character length=40;
status2=_status;
endcomp;
compute sex2/character length=40;
sex2=_sex;
endcomp;
compute bp_status2/character length=40;
bp_status2=_bp_status;
endcomp;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 May 2022 11:51:39 GMT</pubDate>
    <dc:creator>EC27556</dc:creator>
    <dc:date>2022-05-12T11:51:39Z</dc:date>
    <item>
      <title>How to get rid of empty box when running Proc Report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812921#M320754</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the following code I get an empty blue box under the smoking status values. Does anyone know how I can adapt my code to remove this box so "Heavy (16-25)" and the other values are on the same line as status2, sex2 and bpstatus2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data merged;
 set sashelp.heart;
run;

proc report data=Merged split='~' nowd ;
	
	column status status2 sex sex2 bp_status bp_status2 Smoking_Status,(MRW);
	
	define Smoking_Status / Across;
	define status / Group noprint;
	define sex / Group noprint;
	define bp_status / Group noprint;
	define MRW / sum '';

	define status2 / computed;
	define sex2 / computed;
	define bp_status2 / computed;

compute before bp_status;
_status=status;
_sex=sex;
_bp_status=bp_status;
endcomp;

compute status2/character length=40;
status2=_status;
endcomp;
compute sex2/character length=40;
sex2=_sex;
endcomp;
compute bp_status2/character length=40;
bp_status2=_bp_status;
endcomp;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 May 2022 11:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812921#M320754</guid>
      <dc:creator>EC27556</dc:creator>
      <dc:date>2022-05-12T11:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of empty box when running Proc Report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812926#M320756</link>
      <description>&lt;P&gt;Or to use an even simpler example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=Merged split='~' nowd ;
	
	column status sex bp_status Smoking_Status,(MRW);
	
	define Smoking_Status / Across;
	define status / Group;
	define sex / Group;
	define bp_status / Group;
	define MRW / sum '';

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The same holds true here too with the empty box in the results table.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 12:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812926#M320756</guid>
      <dc:creator>EC27556</dc:creator>
      <dc:date>2022-05-12T12:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of empty box when running Proc Report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812932#M320762</link>
      <description>&lt;P&gt;Interesting, the whole table-header looks disgusting. The empty cell is cause by removing the label / variable name in the "define mrw" statement. It looks as if the number of empty cells for the status, sex and bp_status are calculated ignoring that mrw should not have a title.&lt;/P&gt;
&lt;P&gt;Sounds like a task for tech support.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 12:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812932#M320762</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-05-12T12:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of empty box when running Proc Report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812935#M320764</link>
      <description>&lt;P&gt;Change the order of variables in the COLUMN statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;column status status2 sex sex2 bp_status bp_status2 MRW,Smoking_Status;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 May 2022 12:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812935#M320764</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-12T12:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of empty box when running Proc Report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812981#M320784</link>
      <description>&lt;P&gt;I have found it always better to place the "acrossed" variable(s) before the ACROSS variable.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 14:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-empty-box-when-running-Proc-Report/m-p/812981#M320784</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-12T14:17:54Z</dc:date>
    </item>
  </channel>
</rss>

