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.
CFC_SAS_Communities_400x225.jpg
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
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.