I understand that the date is given in a char type variable, in a format of ddmmyy10.;
While converting the date into num type you ususlly use the ddmmyy10. informat, or any other informat.
You can code: num_date = input(char_date, <informat>, ??);
in case of date error you will get missing value.
check the num_date is it missing or not.
Converting the dataset to a data step and posting the resulting code here in the proper way (see my footnotes for both of these steps) will remove any ambiguity about your data and let us use it for testing. Additionally, post an example for how your datset should look like after processing.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.