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
 

 

Attachment in email - for LRECL >= 200

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

Global Moderator


Joined: 28 Aug 2007
Posts: 1475
Location: Chennai

PostPosted: Thu Nov 05, 2009 5:13 am    Post subject: Attachment in email - for LRECL >= 200
Reply with quote

Hi,

We have a requirement to generate a CSV PS FB file and email it as an attachment.
There were no problems generating the CSV PS FB file and emailing initially (LRECL = 100).

Emailing was done using IEBGENER coping to SYSOUT=(B,SMTP).

The requirements changed and I had to increase the LRECL of the PS FB dataset to 200. icon_mad.gif

Now the IEBGENER job runs fine, but I don't get the email anymore sterb050.gif

If we reduce the LRECL it works fine.

The reason for LRECL = 200 is cos the CSV file has to contain data like,
AAAA,BBBB,CCCC,FFFF, ... in a single line.

Is it some restriction of mainframe SMTP thing that it can handle only certain LRECL max or My outlook client is unable to decipher some data icon_eek.gif


Can you please share ur thoughts on overcoming this problem pls.

Regards,
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7996
Location: Bellevue, IA

PostPosted: Thu Nov 05, 2009 6:19 am    Post subject:
Reply with quote

1000 bytes is the absolute limit for an SMTP email. I've sent and received emails with 1000 byte lines with no problems. RFC 2821 and 2822 are the guiding documents and can be found via Google.

Usually, the IEBGENER input is concatenated -- often header, body of the email, and the trailer (a single period on a line by itself). If your job has such a structure, you must update all of the concatenated data sets to use the same LRECL or the email won't go. If your changes removed the trailer, SMTP will not send the email -- the period on a line by itself to end the body is not optional.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1475
Location: Chennai

PostPosted: Thu Nov 05, 2009 1:04 pm    Post subject:
Reply with quote

Hi Robert,
Thanks for your time.

Quote:
period on a line by itself to end the body is not optional.

I have not used the trailer "." in my JCL.
I will try it tomorrow and let you know if it works. ( I am off on a planned sick leave today) 36_8_15.gif


Thanks Donald Knuth icon_wink.gif ,
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7996
Location: Bellevue, IA

PostPosted: Thu Nov 05, 2009 5:40 pm    Post subject:
Reply with quote

The RFC standard mandates a period on a line by itself at the end of the email. Lacking that, the email is not valid for SMTP and goes nowhere.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1475
Location: Chennai

PostPosted: Fri Nov 06, 2009 5:49 pm    Post subject:
Reply with quote

Yaaay!!

"." really did the trick. Ty Robert.

Regards,
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7996
Location: Bellevue, IA

PostPosted: Fri Nov 06, 2009 6:03 pm    Post subject:
Reply with quote

Glad to hear it worked!
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts PL/I: opening file w/ dynamically det... Sam Dodgers PL/I & Assembler 6 Wed Jul 27, 2016 4:05 pm
No new posts How to send email with Rich Text usin... santhosh5983 JCL & VSAM 4 Fri Apr 08, 2016 2:30 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