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!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 644 views
  • 1 like
  • 2 in conversation