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

Attachment in email - for LRECL >= 200


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Nov 05, 2009 5:13 am
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Nov 05, 2009 6:19 am
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: 1742
Location: Tirupur, India

PostPosted: Thu Nov 05, 2009 1:04 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Nov 05, 2009 5:40 pm
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: 1742
Location: Tirupur, India

PostPosted: Fri Nov 06, 2009 5:49 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Nov 06, 2009 6:03 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts mail attachment with excel format All Other Mainframe Topics 2
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
No new posts Problem while sending special charact... JCL & VSAM 4
Search our Forums:

Back to Top