Hi,
I'm trying to export a file to excel and then sent am e-mail with a link to the xls file,
the name of the file contains macros for the date and time, but when I add the time macro, the file created is not recognized as an xls file.
the here is the code :
***************************************************
data _null_;
a=time();
dc=put (a,time5.);
dc=substr (dc,1,2)||':'||substr (dc,4,2);
call symput ('data_time',dc);
run;
%put &data_time;
ods tagsets.test options(embedded_titles='Yes')
file="&path\sasoutputs\tayar_untypical&sysdate&data_time..xls"
style=XLSasweb;
title;
ods tagsets.test alias="cards";
proc print data=mydblib.tayar_auth_final noobs label;
var card_number
country_name
run;
ods _all_ close;
filename emailmsg email
to=("sivana@gmail.com")
FROM='The SAS System '
subject=cards';
DATA _NULL_;
FILE emailmsg;
PUT ;
PUT ;
PUT HREF="\\netapp01\users \SasOutputs\tayar_untypical&sysdate&data_time..xls";
run;
filename emailmsg;
**********************************************************
What can I do to solve the problem?
Thanks,
Sivan