Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to generate the month name from a numeric date value

Task: I have a SAS date and wanted to create a variable with the month name. Here is how to do it...... Use Monnamew. format which is simple and easy.  You need to be using  SAS 9.X versions to make it work. /*Use MONNAMEw. format*/ data month; input date:mmddyy8.; month_name=put(date,monname3.); datalines; 01/15/04 02/29/04 07/04/04 08/18/04 12/31/04;run; proc print;run;

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]



This post first appeared on StudySAS, please read the originial post: here

Share the post

How to generate the month name from a numeric date value

×

Subscribe to Studysas

Get updates delivered right to your inbox!

Thank you for your subscription

×