Email w/ attachment error



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Re: Email w/ attachment error

Postby newjb » Tue Mar 05, 2013 11:44 pm

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
newjb
 
Posts: 20
Joined: Fri Sep 07, 2012 11:25 pm
Has thanked: 3 times
Been thanked: 0 time

Re: Email w/ attachment error

Postby Robert Sample » Tue Mar 05, 2013 11:45 pm

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.

These users thanked the author Robert Sample for the post:
newjb (Wed Mar 06, 2013 12:48 am)
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Email w/ attachment error

Postby newjb » Tue Mar 05, 2013 11:49 pm

Yes, you fixed my problem. And thank you for the links.
newjb
 
Posts: 20
Joined: Fri Sep 07, 2012 11:25 pm
Has thanked: 3 times
Been thanked: 0 time

Re: Email w/ attachment error

Postby Robert Sample » Wed Mar 06, 2013 12:11 am

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.

These users thanked the author Robert Sample for the post:
newjb (Wed Mar 06, 2013 12:48 am)
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Email w/ attachment error

Postby newjb » Wed Mar 06, 2013 12:46 am

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!
newjb
 
Posts: 20
Joined: Fri Sep 07, 2012 11:25 pm
Has thanked: 3 times
Been thanked: 0 time

Previous

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post