I am using the SAS module to email mainframe file to an email address. I found out through testing that maximum allowable record length is 999 for successful email transmission.
I could not find out what is the maximum number of records (and record length combination) could be successfully transmitted.
I tested with record length of 100 bytes and about 700K records, the transmission failed with RC=0008,
ERROR: Email server did not respond.
NOTE: The SAS System stopped processing this step because of errors.
Could any of experts clarify if the record length limit and number of records limit that can be successfully transmitted using the SAS emailing utility?
Could any of experts clarify if the record length limit and number of records limit is an issue with the target email server or is it a limitation of the SAS emailing utility?
Joined: 06 Jun 2008 Posts: 8430 Location: Dubuque, Iowa, USA
SMTP-based emails (such as SAS) are limited to 1000 bytes per record per the RFC specification. There typically is 1 or 2 bytes for end-of-line (LF or CR/LF) so 998 or 999 is the longest record.
We cannot tell you the maximum number of records you can transmit -- that depends upon settings in your TCP/IP configuration and these are generally customized per site. Specifically, the SMTP MAXMAILBYTES configuration setting determines the maximum size in bytes of mail messages sent using TCP/IP. The default is 524288 (or 512K) and cannot be more than 2147483647 (2G-1). Since system resources are impacted by this setting, you MUST contact your site support group to find out your site limit.