I have a large dataset with 3 variables to comprise a date: Q2_Today_date_month, Q2_1_Today_date_day, Q2_2_Today_date_year. The values for the month and day are showing up correctly, but the value for the year appears correct on the SAS output but after the proc export to an Excel workbook, the year changes to a 3-digit value of 120 or 121. The years should be between 2019-2021. In SAS, the year variable is just a regular numeric variable. When I try to format it to a date, it becomes 1960. I know the year 1960 is the default SAS year but I'm confused how numeric values of 2019, 2020, and 2021 are translating to a year of 1960. I'm not sure if the solution is changing the format in Excel or in SAS since it appears correct in SAS but then gets messed up when opening the dataset in Excel. Any guidance is greatly appreciated, thanks!
... View more