wdockviewminimize in
the command bar.
wdockviewrestore in
the command bar.
wwindowbar in
the command bar.
wscreentips on the command
bar. For more information about enabling ScreenTips, see View Preferences and WSCREENTIPS Command: Windows .


x 'cd \mydata'; x 'cd g:\sales\june';
x 'a:';
submit in the command bar.
EMAILHOST SMTP
server| (‘server1’ ‘server2’ <...’server-n’>)|
File Type
|
Active Window
|
|---|---|
|
.txt
|
Log
Output
Enhanced Editor
Program Editor
|
|
.bmp
|
Explorer
Graphics
Results
|
|
.htm
|
Results
Viewer window and the output type is HTML
|
|
.rtf
|
Results
Viewer window and the output type is RTF
|
to="John Smith" to=("J.
Callahan" "P. Sledge")cc="John
Smith" cc=("J. Callahan" "P. Sledge")bcc="John
Smith" bcc=("J. Callahan" "P. Sledge")subject=Sales and subject="June
Report" are valid subjects.
attach=opinion.txt
attach=("june2004.txt" "july2004.txt") attach=("home.html"
recfm=v lrecl=372);JBrown. The
following example code shows how to send the file with the DATA step.
filename mymail email "JBrown"
subject="My SASV9.CFG file"
attach="c:\sas\sasV9.cfg";
data _null_;
file mymail;
put 'Jim,';
put 'This is my SAS configuration file.';
put 'I think you might like the';
put 'new options I added.';
run;
filename outbox email "Ron B";
data _null_;
file outbox
/* Overrides value in */
/* filename statement */
to=("Ron B" "Lisa D")
cc=("Margaret Z" "Lenny P")
subject="My SAS output"
attach="c:\sas\results.out"
;
put 'Folks,';
put 'Attached is my output from the SAS';
put 'program I ran last night.';
put 'It worked great!';
run;
filename reports email "Jim";
data _null_;
file reports;
length name dept $ 21;
input name dept;
/* Assign the TO attribute */
put '!EM_TO!' name;
/* Assign the SUBJECT attribute */
put '!EM_SUBJECT! Report for ' dept;
put name ',';
put 'Here is the latest report for ' dept '.';
if dept='marketing' then
put '!EM_ATTACH! c:\mktrept.txt';
else /* ATTACH the appropriate report */
put '!EM_ATTACH! c:\devrept.txt';
/* Send the message. */
put '!EM_SEND!';
/* Clear the message attributes.*/
put '!EM_NEWMSG!';
/* Abort the message before the */
/* RUN statement causes it to */
/* be sent again. */
put '!EM_ABORT!';
datalines;
Susan marketing
Jim marketing
Rita development
Herb development
;
run;
filename outbox email "Ron B" emailsys=VIM
emailpw="mypassword" emailid="myuserid";
data _null_;
file outbox
/* Overrides value in */
/* filename statement */
to=("Ron B" "Lisa D")
cc=("Margaret Z" "Lenny P")
subject="My SAS output"
attach="c:\sas\results.out"
;
put 'Folks,';
put 'Attached is my output from the SAS';
put 'program I ran last night.';
put 'It worked great!';
run;send label).
send:
/* set up a fileref */
rc = filename('mailit','userid','email');
/* if the fileref was successfully set up,
open the file to write to */
if rc = 0 then do;
fid = fopen('mailit','o');
if fid > 0 then do;
/* fput statements are used to
implement writing the mail and
the components such as subject,
who to mail to, etc. */
fputrc1= fput(fid,line1);
rc = fwrite(fid);
fputrc2= fput(fid,'!EM_TO! '||mailto);
rc = fwrite(fid);
fputrc3= fput(fid,'!EM_CC! '||copyto);
rc = fwrite(fid);
fputrc4= fput(fid,'!EM_ATTACH! '||attach);
rc = fwrite(fid);
fputrc5= fput(fid,'!EM_SUBJECT! '||subject);
rc = fwrite(fid);
closerc= fclose(fid);
end;
end;
return;
cancel:
call execcmd('end');
return;filename mymail email from="yourid@email.com"
to=("id1@.emailaddr.com" "id2@emailaddr.com")
subject="Put Subject Here"
content_type="text/plain";
data _null_;
file mymail;
put 'hello world';
run;
quit;filename temp1 email to=("yourid@email.com")
from="wileycoyote@acme.com"
subject="HTML OUTPUT"
content_type="text/html";
ods html body=temp1 style=default;
proc print data=sashelp.class;
run;
ods html close;dlgsave in the
command bar or select Filezoom; recall
gsubmit buf=default
|
Key
|
Color
|
Key
|
Color
|
|---|---|---|---|
|
ESC+A
|
gray
|
ESC+B
|
blue
|
|
ESC+C
|
cyan
|
ESC+G
|
green
|
|
ESC+K
|
black
|
ESC+M
|
magenta
|
|
ESC+N
|
brown
|
ESC+O
|
orange
|
|
ESC+P
|
pink
|
ESC+R
|
red
|
|
ESC+W
|
white
|
ESC+Y
|
yellow
|
|
Key
|
Description
|
|---|---|
|
Esc+0
|
turns off all highlighting
attributes.
|
|
Esc+2
|
turns on the underline
attribute.
|
|
Esc+3
|
turns on the reverse-video
attribute.
|