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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 806 views
  • 0 likes
  • 3 in conversation