Date: Fri, 20 Apr 2007 23:27:35 -0700
Reply-To: David L Cassell <davidlcassell@MSN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David L Cassell <davidlcassell@MSN.COM>
Subject: Re: How to use SAS process to collect information and email it
Content-Type: text/plain; format=flowed
>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
>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 firstname.lastname@example.org "email@example.com"
>"firstname.lastname@example.org" "Subject: SAS results" "Contents: SAS results" ""
1) Remember that SasCommunity is a Wiki, so anything in it can be
really, really wrong. Or really, really right. Or none of the above.
2) This isn't working for you because it is using a chunk of freeware
mailcmd . You can find it at just about any large site that carries Windows
freeware. But it's new. It's at version 1.0 which usually means Bug City.
(I wouldn't know - I don't have it installed and tested, and I don't plan
3) The only places with firewalls have IT people who are not going to let
you install version 1.0 freeware on their systems. The place I found the
software didn't even have 1 review of the software, which is not a really
4) I would think that a lot of companies/groups/agencies would specifically
block outputs from tools like this, so you would not be able to send out.
5) SAS can do this without an external program.
David L. Cassell
3115 NW Norwood Pl.
Corvallis OR 97330
Donít quit your job Ė Take Classes Online and Earn your Degree in 1 year.