Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8117
Location: East Dubuque, Illinois, 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: 8117
Location: East Dubuque, Illinois, 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 NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am
No new posts Mail via SMTP with an image? Mike 1304 JCL & VSAM 4 Thu Jan 26, 2017 2:01 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts How to sending system service request... lind sh IMS DB/DC 5 Sun Apr 10, 2016 12:02 am
No new posts Issue in sending zip file as mail att... ajithajt JCL & VSAM 8 Thu Apr 07, 2016 9:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us