Can someone help me. I have this issue where I'm trying to attach a file to an email and I'm getting this issue.
Code:
ods package(tableausummary_full) open nopf;
ods package(tableausummary_full) add file="C:\Caris Downloads\Rapport Reporting\tableausummary_full.txt";
ods package(tableausummary_full) publish archive
properties(archive_name='tableausummary_full.zip'
archive_path='C:\Caris Downloads\Rapport Reporting');
ods package(tableausummary_full) close;
run;
options emailsys=smtp emailhost=smtp.XXXX.com emailport=25;
filename mymail email "pamela.smith@XXXX.com" subject="Rapport Credit Update";
data _null_;
file mymail
attach=("C:\Caris Downloads\Rapport Reporting\tableausummary_full.zip" lrecl=32727);
put 'Hi Sai - ';
put 'attached is update data file';
run;
ERROR LOG:
202 ods package(tableausummary_full) open nopf;
203
204 ods package(tableausummary_full) add file="C:\Caris Downloads\Rapport
204! Reporting\tableausummary_full.txt";
205
206 ods package(tableausummary_full) publish archive
207 properties(archive_name='tableausummary_full.zip'
208 archive_path='C:\Caris Downloads\Rapport Reporting');
NOTE: Writing TABLEAUSUMMARY_FULL file: C:\Caris Downloads\Rapport
Reporting\tableausummary_full.zip
209 ods package(tableausummary_full) close;
210 run;
211
212 options emailsys=smtp emailhost=smtp.XXXX.com emailport=25;
213 filename mymail email "pamela.smith@XXXX.com" subject="Rapport Credit Update";
214 data _null_;
215 file mymail
216 attach=("C:\Caris Downloads\Rapport Reporting\tableausummary_full.zip" lrecl=32727);
217 put 'Hi Sai - ';
218 put 'attached is update data file';
219 run;
NOTE: The file MYMAIL is:
E-Mail Access Device
WARNING: Email: 552 5.3.4 Message size exceeds fixed maximum message size
NOTE: 2 records were written to the file MYMAIL.
The minimum record length was 9.
The maximum record length was 28.
NOTE: DATA statement used (Total process time):
real time 54.48 seconds
cpu time 7.37 seconds
How big is the attachment? Email clients often have limits of 10/25/50 MB but that would be enforced by your IT area.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.