Hello Guys being Friday morning just playing around this piece of Code, by
kuhasu's I do not know where I going wrong ?? when I submitting it a DOS
window pop's up warning( 'c:\send\mailcmd' is not recognized as an internal
or external command,
operable program or batch file.
) , any Ideas where ( by the I am doing on office machine and default mail
is outlook but I did log in to my Gmail account during the time I submitted
Jump to: navigation, search
You can use sas process to collect information and email it through
Sounds like a tallent hacker,isn't it?
Acctually,it's another usage of sas for remoted data process.
Remember: Use it good.
 codes here:
1. creat a dataset.(You can omit it,'cause someone might do it for you:>)
/*Create an dataset*/
proc print data=sendmail;
/*2. Save the output and the log(output can be created,but logs are not
recommanded if you wanna hack something) */
/*Save the output and the log*/
DM OUTPUT 'FILE "c:\send\test.OUT"';
DM LOG 'FILE "c:\send\test.LOG"';
3. Finally,send this output file as attachment to the email address you set
/*Send the output to mailbox*/
call system('c:\send\mailcmd email@example.com "firstname.lastname@example.org"
"email@example.com" "Subject: SAS results" "Contents: SAS results" ""