Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Sending mail through JCL lrec is 1522

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
KBSHINOJ

New User


Joined: 09 Dec 2006
Posts: 2
Location: bangalore

PostPosted: Tue Dec 09, 2008 9:08 pm    Post subject: Sending mail through JCL lrec is 1522
Reply with quote

Hi,
i have requirement where file to be mailed to respective ID's.
But the lenght of the data file is 1522. so i have created header and trailer with lrec 1522.
when i submit the job its runing, but i am not geting the mails.I have checked its working till record length 900.
Please provide some inputs?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


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

PostPosted: Tue Dec 09, 2008 9:16 pm    Post subject:
Reply with quote

You are asking the impossible. From RFC 2822, the Internet Message Format manual (my emphasis added):
Quote:
2.1.1. Line Length Limits

There are two limits that this standard places on the number of
characters in a line. Each line of characters MUST be no more than
998 characters, and SHOULD be no more than 78 characters, excluding
the CRLF.


The 998 character limit is due to limitations in many implementations
which send, receive, or store Internet Message Format messages that
simply cannot handle more than 998 characters on a line. Receiving
implementations would do well to handle an arbitrarily large number
of characters in a line for robustness sake. However, there are so
many implementations which (in compliance with the transport
requirements of [RFC2821]) do not accept messages containing more
than 1000 character including the CR and LF per line, it is important
for implementations not to create such messages.
You can move the data file to an attachment, but you cannot send LRECL 1522 data through the message lines. It will be truncated.
Back to top
View user's profile Send private message
KBSHINOJ

New User


Joined: 09 Dec 2006
Posts: 2
Location: bangalore

PostPosted: Sun Dec 14, 2008 5:58 pm    Post subject: Reply to: Sending mail through JCL lrec is 1522
Reply with quote

Robert ! Thanks for the reply

If i use file attachment then also its not sending the mail.
is there any limit in the header file length?

Note:-
I used IEBGENER for sending mail
In SYSUT1 i did a concatenation of header ,data file and trailer.
And all had a lrec of 1522 .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Sun Dec 14, 2008 7:15 pm    Post subject:
Reply with quote

As I stated in my first post, the header, data file, and trailer (but not the attachment) are all limited to 998 bytes plus CR/LF or 1000 bytes total. This is not something that can be changed -- if you continue to use 1522 for the length of these records, your email will not be sent. Period.

Change the LRECL for the header, the data file, and the trailer to be 1000 or less bytes to get the email to send. Then use an attachment for the data that is longer than 1000 bytes.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Prblem with mail having MIME contents harsh.saxena579 JCL & VSAM 2 Tue Dec 12, 2017 3:48 pm
No new posts Unable to send mail with SMTP commands harsh.saxena579 JCL & VSAM 10 Tue Dec 12, 2017 1:58 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am

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