Data work.my_data_file; Result_1 = TODAY(); Result_2 = PUT(Result_1, Date9.); Result_3 = DAY(Today()); Run; |
What's happening in the script above?
Variable | Input | Output | Description |
---|---|---|---|
Result_1 | Today() | 223377 | SAS current date in the system format |
Result_2 | Put(223377, date9.) | 07APR2021 | Re-Formatted Date |
Result_3 | Day(Today()); | 7 | The day of the month returned as an Integer |
See also; PUT Function
See also; TODAY Function
Kevin Regan
Have an article, idea, found a typo, want to contribute? Shoot me an email
Here
Below are links to some Udemy Data Science Courses. I've been using Udemy for a number of years now, and I've found their courses super helpful, maybe you will also.