So, you need to clarify your question. What have you done to enact your requirements?
" need to create several excel per variable" - what does this mean? To create files which can be opened in Excel, you could use ods tagsets.excelxp, libname Excel, ods excel, proc export, put to CSV etc.
You say you need one archive, presuming this is a ZIP file, then you need access to your Operating Sstem. You then call the exe file from your compressions software, e.g: x 'c:\zip\winzip.exe "..." "outputfile.zip"';
wher the elipses are the locatin of the output files to compress. You could also use ods document if you have SAS 9.4.
Emails can be sent in datastep: http://www2.sas.com/proceedings/forum2008/038-2008.pdf
Simply put though, we are here to answer questions, not do the work in its entirety. Have a go and come back if you have any troubles.
... View more