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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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