Page 2 of 2

Re: Email w/ attachment error

PostPosted: Tue Mar 05, 2013 11:44 pm
by newjb
Also... What is "RFC"? (...sorry)

This is working perfect on a small test, is there any max to the number of records that can be sent over via an attachment?

For my test JCL to send the email, I have to say "NOSEQ", then "SUB" What is the "NOSEQ" for? and why is it needed for the email to be sent?

And the DATE option you gave me only types the actual word "DATE" on the email. It doesn't insert the current date. (time too...)

Thank you

Re: Email w/ attachment error

PostPosted: Tue Mar 05, 2013 11:45 pm
by Robert Sample
So I assume that fixed your problem?

IBM puts all of their manuals online at http://www-03.ibm.com/systems/z/os/zos/bkserv/ and you need to know that FTP is part of TCP/IP and IBM puts all documentation for it in the Communications Server bookshelf.

Another good place for documentation and how-to references is http://www.redbooks.ibm.com and well worth bookmarking in your browser.

Re: Email w/ attachment error

PostPosted: Tue Mar 05, 2013 11:49 pm
by newjb
Yes, you fixed my problem. And thank you for the links.

Re: Email w/ attachment error

PostPosted: Wed Mar 06, 2013 12:11 am
by Robert Sample
The Internet Engineering Task Force (IETF) publishes the official documentation on Internet protocols and standards. RFC 2821 is the SMTP standard and defines everything you need to know about SMTP (such as the 998-byte limit on line length); there are other RFC documents on MIME and email attachments, for example.

There is a size limit but it is in bytes, not lines or records. And the size limit can be changed at each site (the default is 512K on a z/OS system) so you need to check with the site support group for your site to find out your limit. Many eamil clients are limited to 10 or 20 MB so that is another limit you have to consder when sending emails.

IBM systems typically place sequence numbers in records (columns 1 to 6 for a COBOL program and usually 73 to 80 for other types of data, although that is NOT a hard-and-fixed rule); the sequence numbers would be considered as part of the email by SMTP and the email client. Not sending them simplifies things for everybody.

You may need to talk to someone at your site about what to put to get the date in your email; my email client is Outlook and I automatically get the send date / time on the header without having to specify anything in the SMTP data.

Re: Email w/ attachment error

PostPosted: Wed Mar 06, 2013 12:46 am
by newjb
Thanks. The date/time thing is just my way of making each email "different". I do automatically get the date/time on my header. However, our email listserv filters out duplicate emails. So if we send this email daily with the same subject, message, and attachment name... It will consider it a "duplicate" email and will block it. How I get around it with Natural is I insert the date & time in with the actual message. That way the email is different every time it is sent. (it doesn't have to be the date / time, just anything to make it unique. Sometimes I insert the # of records, just that can sometimes be the same) I'll check around here and do some searching. Thanks again!