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.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.