How are you controlling the name of the output file?
You can create two macro variables that hold the date and time in the respective formats and then use them in the name.
file_name = "name&date._&time";
%let cdate=%sysfunc(today(), ddmmyyn8.);
%put &cdate.;
*this isnt correct format, you need to find the one that doesnt have colons;
%let ctime=%sysfunc(time(), time4.));
%put &ctime.;