1

SAS EG 7.2 でレポートを作成し、SAS から電子メールの本文にレポートを送信してもらいましたが、テキストを追加できないようです。私はこのコードを持っています:

filename mymail email   
                    to=('mail@email.com')
                    subject='Report'
                    from='mail@email.com'
                    Content_type="text/html";

ods _all_  close;
ODS ESCAPECHAR='^'; 
ods html body=mymail  style=minimal;

proc report data=data… 
…
run;

ods html close;
ods _all_ close;

これにより、メールが完全に送信されます。そして、これを実行してテキストを追加できます

filename mymail email   
                        to=('mail@email.com')
                        subject='Report'
                        from='mail@email.com'
                        Content_type="text/html";

ods _all_  close;
ODS ESCAPECHAR='^'; 
ods html body=mymail  style=minimal;

DATA _null_;
file mymail;
Put "Hello,"//
"You are recieving this mail because:"//;
if &warn1=1 then do;
put "&w1." //; end;
if &warn2=1 then do;
put "&w2." //; end;
put
"Regards,"//
"Chris";
run;

ods html close;
ods _all_ close;

しかし、私は両方を行うことができないようですか?テキスト ステップとプロセス レポートを含めると、結果の電子メールにレポートのみが表示されます。何か案は?

前もって感謝します :)

4

2 に答える 2