BookmarkSubscribeRSS Feed
tianerhu
Pyrite | Level 9
proc format;
picture Monthfmt
        1-12 = '99'
		other = 'Not a valid month';
run;
proc print  data = certadv.monsal;
format month monthfmt.;
run;

how to know how many 'Not a valid month' are there in the output?

1 REPLY 1
Quentin
Super User
proc freq data = certadv.monsal;
  tables month; 
  format month monthfmt.;
run;
The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.

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
  • 1 reply
  • 349 views
  • 0 likes
  • 2 in conversation