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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.