Hi All,
I want to create a date column (Date_recored) in my output dataset (have) and assign all observations as 01JAN2015 which is a date value.
The following code that I wrote create column which is $9., but I want the column as Date9.
Can someone help please.
Data want;set have;Date_recored ='01JAN2015';run;
Marginally faster to eliminate the assignment statement ... other than that you're just missing a letter:
retain Date_recored "01Jan2015"d;
format date_recored date9.;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Submit your idea!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.