Hi,
I have one dataset and I need to create several excel per variable.
Example
Dataset:
Name Code Date of Birth Country
John 18 10/10/1998 USA
John 20 01/11/2000 USA
Mike 22 10/10/2001 USA
I need to create one archive per name. And if it is possible, I need to compact the archive with password and send an e-mail.
Can you guys help me?
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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.