In reply to Victor.

Hi Victor,

You can exclude processing invalid values by conditionally executing your INPUT() statement. Here is an example:

data HAVE;
length chardate $8;
chardate = ''; output;
chardate = 'N_A'; output;
chardate = '20201002'; output;
chardate = '20201213'; output;
run;

data NEW;
set HAVE;
if chardate not in ('', 'N_A') then numdate = input(chardate,yymmdd8.);
format numdate date9.;
run;

In this case, numeric values corresponding to invalid character date values will be missing, and no message "NOTE: Invalid argument to function INPUT" will be generated.