BookmarkSubscribeRSS Feed
Spacetime
Obsidian | Level 7

I am doing some extensive printing of tables out to Excel using the ExcelXP tagset.  One thing that happens, when a numeric is blank, it will print a . out to my table.  Also, when a character is blank, it will print a " " (so an actual space) out to my table.  My users asked me to make these simply be blank (no . and no " ").  Is there an option to set that will get these to print out that way?

Thanks.

2 REPLIES 2
Haikuo
Onyx | Level 15

Not tested for Excel output, but works for SAS display:

Try this:

Options missing='';

Haikuo

Spacetime
Obsidian | Level 7

Thank you, this did work for my numeric!  They no longer print a . to Excel.  For some reason my character are still printing the blank space to Excel though.  Now I am wondering whether this missing = option only applies to the numeric, and whether there is a similar option for the character.

It seems strange it would act this way for the missing character.

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
  • 460 views
  • 3 likes
  • 2 in conversation