BookmarkSubscribeRSS Feed
Harry
Obsidian | Level 7
When PROC PRINTing to tagsets.excelXP, the column labels take up rows 1-n depending on how the column headings are split.

I've read through the tagset options and don't see anything that allow me to confine the column headings to row 1 in the file. Is it possible?

TIA
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Do you have an example of the code you're using or can you duplicate the behavior by using SASHELP.CLASS???? If your labels are too long, they might wrap over to a second row. I am just having a hard time visualizing what you mean by "the column labels take up rows 1-n" depending on the how the headings are split.

When I use the program below, all my column headings are ONLY in Row 1.

cynthia
[pre]
ods tagsets.excelxp file='c:\temp\splithead.xls' style=sasweb;

proc print data=sashelp.class split='/';
var name age height;
label name = 'The/Name'
Age = 'The/Age'
Height= 'The/Height';
run;

ods _all_ close;
[/pre]
Harry
Obsidian | Level 7
Thanks Cynthia. Found my problem. The _odsdest assignment was inside a macro, hence not global, hence not available to %stpbegin, hence HTML destination and not tagsets.excelXP as I assumed it was. Mea culpa. ;-(

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
  • 808 views
  • 0 likes
  • 2 in conversation