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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 25286 views
  • 5 likes
  • 2 in conversation