BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
afiqcjohari
Quartz | Level 8
proc sql;
  select month(transdate) from table;
quit;

Above gives me the month in numeric i.e 1 2 3 4 etc

I want to convert these numbers to Jan Feb Mar Apr respectively.

 

Is there any function in proc sql allowing this?

1 ACCEPTED SOLUTION
4 REPLIES 4
afiqcjohari
Quartz | Level 8
proc sql;
select put(month(transdate),monname3.) as mt from table
;quit;
afiqcjohari
Quartz | Level 8
I was about to ask... Thanks Reeza

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
  • 4 replies
  • 25076 views
  • 5 likes
  • 2 in conversation