Thanks for the log, but the problem is on the line of data BEFORE the one that is being listed. Basically the issue seems to be that it did not find a value of the date on the line before so it is hunting for one on the line it is showing.
If the problem is just that one of the lines is missing a date value you might only need to add an INFILE statement so you can use the TRUNCOVER option to prevent INPUT from going to the next line.
data date;
infile cards truncover;
input Patent_ID Age Date_of_admission;
informat Date_of_admission ddmmyy10.;
format Date_of_admission ddmmyyb10.;
cards;
Or you can just add a single period on the data lines to indicate when one of the three fields is missing.
See the third line of data in this example:
data date;
input Patent_ID Age Date_of_admission;
informat Date_of_admission ddmmyy10.;
format Date_of_admission ddmmyy10.;
cards;
100 56 02/03/1985
200 65 02.03.1986
300 76 .
400 82 02.04.1988
;
... View more