Have
| Randomization Date |
| 2017-07-03 |
| 2017-07-04 |
| 2017-07-26 |
| 2018-06-07 |
| 2018-06-14 |
| 2018-06-17 |
| 2018-06-25 |
| 2018-06-28 |
| 2018-06-29 |
| 2019-07-09 |
Want
| Randomization Date | New Date |
| 2017-07-03 | 2017-07-05 |
| 2017-07-04 | 2017-07-06 |
| 2017-07-26 | 2017-07-28 |
| 2018-06-07 | 2018-06-09 |
| 2018-06-14 | 2018-06-16 |
| 2018-06-17 | 2018-06-19 |
| 2018-06-25 | 2018-06-27 |
| 2018-06-28 | 2018-06-30 |
| 2018-06-29 | 2018-07-01 |
| 2019-07-09 | 2019-07-11 |
new_date=randomization_date+2;
You can format new_date any way you want to make it readable.
Am I correct in understanding that you want to add two days to Randomization_Date?
Could you please tell us if Randomization_Date is a valid SAS date value which is a numeric variable, or is it a character string?
Yes, adding 2 days. and Randomization_Date is a valid SAS numeric date value.
new_date=randomization_date+2;
You can format new_date any way you want to make it readable.
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.