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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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