BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
buechler66
Barite | Level 11

One of my Proc Summary groupings includes a SAS Date variable named PAY_DATA_MONTH.  So when I sum up to that SAS Date Level then the cell shows a . because there is no value.  Is there a way to recode these missing values . to just appear as empty white space instead?  (see the attached pic)  If not in the Proc Summary itself than in following data step?

 

I'd appreciate any insights. Thanks in advance.

 

PROC SUMMARY DATA=&SITE._HCR_PD;
     CLASS AREA HCRID PAY_DATA_MONTH ACTIVITY_DESCRIPTION;
	 TYPES () AREA*HCRID AREA*HCRID*PAY_DATA_MONTH AREA*HCRID*PAY_DATA_MONTH*ACTIVITY_DESCRIPTION;
     VAR PAY_AMOUNT RATE UNITS;
     OUTPUT OUT=&SITE._SUMS_ SUM=;
RUN;
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
I'd handle that in whatever reporting step you're doing. If you're piping the summary output to a doc file, do it via PROC TABULATE/REPORT instead is likely the first suggestion I'd make.

If it's just the . bothering you in the data set, change the option.

option missing = '';

View solution in original post

2 REPLIES 2
Reeza
Super User
I'd handle that in whatever reporting step you're doing. If you're piping the summary output to a doc file, do it via PROC TABULATE/REPORT instead is likely the first suggestion I'd make.

If it's just the . bothering you in the data set, change the option.

option missing = '';
buechler66
Barite | Level 11
Yes, it was just the . that was bothering me. option missing = ''; did the trick! Thanks so much for the help!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 1206 views
  • 1 like
  • 2 in conversation