Both files conbtain incorrect formats for SAS dates. So I wouldn't show you have to convert from one incorrect format to a different incorrect format. But I will show you how to convert both files so they hold valid SAS dates.
For the first file, converting from character "dates":
data new_file_1;
set file1;
correct_dob1 = input(dob1 mmddyy10.);
correct_dob2 = input(dob2, mmddyy10.);
drop dob1 dob2;
format correct_dob1 correct_dob2 mmddyy10.; run;
For the second file, converting from numeric "dates":
data correct_file2;
set file2;
correct_dob1 = input(put(dob1, z8.), yymmdd8.);
correct_dob2 = input(put(dob2, z8.), yymmdd8.);
drop dob1 dob2;
format correct_dob1 correct_dob2 mmddyy10.;
run;
There's a ton of information within the SAS documentation about how to store SAS dates. Here's a starting point: https://documentation.sas.com/doc/en/lrcon/9.4/p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm
... View more