BookmarkSubscribeRSS Feed
BillB
Fluorite | Level 6

I'm currently using EG 7.12 (point & click - no programming) and when I run a query and eventually use that for a summary report. The problem I'm having is that a period (.) will display in each cell that does not have data and thus it creates a problem when I convert it to Exce and try to sum or filter that column.

 

Is there a way to adjust options to either show "nothing" or zero when there is no data for a cell)s) in a column/row?

4 REPLIES 4
Loko
Barite | Level 11

Hello,

 

Usually a period is used in SAS to represent missing numeric values.

 

Try options missing=''; and see if it helps.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Well, the problem is with the difference in understanding between SAS and Excel.  SAS represents missing numbers as . to differentiate them from missing character values.  Excel does not.  You have many options here. Setting options missing=''; is one way, though bear in mind it covers your current session only and may cause confusion for other programmers.  You could also change your sum in Excel to be a countif() and count non '.' values.

You could of course also just do a find and replace, or do the summing in SAS, then export the result - rather than using two applications to do one job, or export to Excel as text.  

TomKari
Onyx | Level 15

Which EG task are you using to get your report?

 

BillB
Fluorite | Level 6

Summary Tables Wizard

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1841 views
  • 1 like
  • 4 in conversation