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;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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