IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sending mail through JCL lrec is 1522


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 09, 2008 9:16 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Dec 14, 2008 7:15 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts mail attachment with excel format All Other Mainframe Topics 2
No new posts Output LREC based on specific character DFSORT/ICETOOL 22
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts How to append Previous date into a S... JCL & VSAM 2
This topic is locked: you cannot edit posts or make replies. Copy list of files from PS to another... CLIST & REXX 11
Search our Forums:

Back to Top