If I want a blank column somewhere in a PROC REPORT output, I have created a fake variable (which I named GAP):
proc format;
value gapf .,low-high=' ';
run;
proc report;
columns column1 column2 gap column3 column4 gap column5 column6;
define gap / ' ' style(column)={cellwidth=.03in background=cxe7e7e7 bordertopwidth=0 borderbottomwidth=0}
format=gapf. style(header)={color=cxe7e7e7 bordertopwidth=0 borderbottomwidth=0};
run;
Note, GAP should NOT be a variable in your data set. You can use the fake variable named GAP as many times as you want, you can specify the width, the background color, and other appearance options. Also, although you ask about Excel, this method works for any output destination (PDF, RTF, HTML, etc.)
If I want a blank column somewhere in a PROC REPORT output, I have created a fake variable (which I named GAP):
proc format;
value gapf .,low-high=' ';
run;
proc report;
columns column1 column2 gap column3 column4 gap column5 column6;
define gap / ' ' style(column)={cellwidth=.03in background=cxe7e7e7 bordertopwidth=0 borderbottomwidth=0}
format=gapf. style(header)={color=cxe7e7e7 bordertopwidth=0 borderbottomwidth=0};
run;
Note, GAP should NOT be a variable in your data set. You can use the fake variable named GAP as many times as you want, you can specify the width, the background color, and other appearance options. Also, although you ask about Excel, this method works for any output destination (PDF, RTF, HTML, etc.)
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.