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.)
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.