Hi All ,
i was just wondering if we have a sas format for "19 Aug , Mon". i have a date which needs to be converted to this format , do we have a inbuilt sas format which can give me this ? or any other way ?
Thanks
Keds
If that's exactly your format then no, you'll need to "roll your own".
proc format;
picture date_custom_fmt (Default=45)
low - high = '%d %b, %a'
(datatype = date);
run;
data have;
dt='01JUN2014'd;
format dt date_custom_fmt.;
run;
See pages 14+:
Try this.
data have;
dt='01JUN2014'd;
format dt WEEKDATE.;
run;
proc print;
run;
If that's exactly your format then no, you'll need to "roll your own".
proc format;
picture date_custom_fmt (Default=45)
low - high = '%d %b, %a'
(datatype = date);
run;
data have;
dt='01JUN2014'd;
format dt date_custom_fmt.;
run;
See pages 14+:
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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 save with the early bird rate—just $795!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.