Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Using the SAS module to email mainframe file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
elixir1986
Warnings : 1

New User


Joined: 10 Nov 2015
Posts: 21
Location: USA

PostPosted: Thu Mar 14, 2019 10:04 pm    Post subject: Using the SAS module to email mainframe file
Reply with quote

Hi Team,

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,

Code:
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?

Many thanks in advance for all your responses!

Warning: For using 'Email' as subject
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8479
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 14, 2019 11:55 pm    Post subject: Reply to: Email
Reply with quote

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.
Back to top
View user's profile Send private message
elixir1986
Warnings : 1

New User


Joined: 10 Nov 2015
Posts: 21
Location: USA

PostPosted: Tue Mar 19, 2019 4:50 am    Post subject:
Reply with quote

Thanks for your wonderful response!

Hi Team,

Let's assume, if the email SMTP is configured to receive a maximum of 25MB of attachment in a single email(pardon me if I used any terminology incorrect).
Would it be possible to predict/calculate what would be the size of the mainframe file(based on record length and number of records) once it reaches/ tries to reach email?

By this way we would be able to throw an error message if the attachment size is calculate as more than 25 MB(in this case).

Many thanks in advance for all your responses!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8479
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 19, 2019 6:36 pm    Post subject:
Reply with quote

First, a terminology note -- mainframes do NOT "throw an error message", ever. They may generate an abend or error message, but they don't "throw" things.

Second, you would be better off working with your site support group on your specific requirements. If you have 500 byte records, 25,000,000 bytes would be 50,000 records. If these records are binary, then that would require 25,000,000 bytes on the mainframe as well as the PC. If these records are text, they would require 25,050,000 on a Linux / Unix machine or 25,100,000 on a Windows machine but still require 25,000,000 on a mainframe (since line terminators are used on a Linux / Unix / Windows machine but not on the mainframe).

And in any case, you cannot tell (at least on the mainframe) in advance if the email exceeds the site limit so you could not generate any error message about it. You might be able to on a Linux / Unix / Windows machine -- I don't deal enough with them to know for sure.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can we pass the value of Symbolic par... Poha Eater JCL & VSAM 5 Thu Sep 05, 2019 2:21 pm
No new posts Send email without SMTP Kaliragavendran All Other Mainframe Topics 0 Thu Sep 05, 2019 10:55 am
No new posts Search the strings present in ps file... Bhuvana Narasimhan All Other Mainframe Topics 8 Thu Aug 22, 2019 8:20 pm
No new posts Concatenate two files of variable rec... Thiru S DFSORT/ICETOOL 3 Wed Aug 21, 2019 11:53 pm
No new posts CICS VSAM file max volumes socker_dad JCL & VSAM 4 Tue Aug 20, 2019 1:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us