BookmarkSubscribeRSS Feed
frisco
Calcite | Level 5
Hi, we have a request to modify a report (currently written using PROC PRINT) to have columns printed on the far left and far right of the page with blank spaces in between. Is there a way to accomplish this using templates? Currently using 9.1.3.
2 REPLIES 2
Robert_Bardos
Fluorite | Level 6
Crude workaround:

Referring to the subject of your post (which doesn't mention templates): use whatever variable you want and set the column's foreground and background to the same color.
Since you put the word blank in quotes this perfectly matches your definition 😉
ChrisNZ
Tourmaline | Level 20
Agree with Rob, something like
[pre]
data _V/view=_V;
retain DUMMY ' ';
set SASHELP.CLASS;
run;
ods html style=seaside;
proc print data=_V noobs;
var NAME ;
var DUMMY /style=[background=white foreground=white bordercolor=white cellwidth=900px];
var SEX /style=[just=center bordercolor=#3872AC];
run;
ods html close;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1378 views
  • 0 likes
  • 3 in conversation