BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have the following title in my proc report. The font and color etc works fine but it starts in column 2. Why is it skipping over column 1?


title1 " title test";


this is my ods statement:
ods markup file="c:\test.xls" tagset=tagsets.test
stylesheet='c:\temp.css' headtext="" ;
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
From what I can see, your HTML TD tag terminates and there is a blank character before the character data you have in your title. Move the start of your title to be right up against the ">" character if you have an issue with an imbedded blank.

Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
I edited the code to remove project information. It doesn't have a blank. Let me try again. Here is the title:

title1 " UNC Test Title";
deleted_user
Not applicable
My post strips out some of the code. I can't post the font defintions, color= size= for some reason.
Cynthia_sas
SAS Super FREQ
Hi:
It looks to me as though:
1) you are using a custom tagset template
2) you are using a custom HTML tagset template (because of the mso-number-format syntax)
3) you are calling the file .XLS because you want Excel to launch and render the file.

When you use ODS to create a file for Excel to open, you are generally using one of these 3 methods:
1) ODS CSV (or a modified tagset template based on ODS CSV) -- file type created is ASCII text comma separated value file that Excel can open and render.
2) ODS HTML (or a modified tagset template based on ODS HTML, ODS MSOFFICE2K, ODS HTML3, ODS CHTML or any of the other HTML-based templates) -- file type created is ASCII text HTML file that Excel can open and render
3) ODS TAGSETS.EXCELXP (or a modified tagset template based on ODS TAGSETS.EXCELXP) -- file created is an ASCII Spreadsheet Markup Language XML file that Excel can open and render

Since your code snippet refers to tagset=test, it is unclear which one of these 3 tagset templates you used as the parent for your custom tagset template. However, keep in mind that mso-number-format will ONLY work with HTML-based output from ODS -- not with CSV or ExcelXP output.

It is very tricky to post code with < or > to the forum. And, besides, someone really needs to look at your PROC TEMPLATE code and your entire program to see what might be happening in your tagset template definition. If you wrote your template to have a mix of XML and HTML, you might not get the results you want when Excel opens the file.

This is the kind of question that is best directed to Tech Support, as they can look at -ALL- your code and help you find some resolution.

To open a track with Tech Supprt, go to:
http://support.sas.com/ctx/supportform/createForm

cynthia

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
  • 4 replies
  • 814 views
  • 0 likes
  • 3 in conversation