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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 25026 views
  • 5 likes
  • 2 in conversation