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

Truncation of content while mailing


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

New User


Joined: 07 May 2005
Posts: 9
Location: Duluth, US

PostPosted: Wed Mar 14, 2012 1:13 am
Reply with quote

Facing truncation of content:

My JCL's
Code:

//MAILPROC EXEC PGM=IEBGENER                                     
//SYSIN    DD DUMMY                                               
//SYSPRINT DD SYSOUT=*                                           
//SYSOUT   DD SYSOUT=*                                           
//SYSUT1   DD DSN=USER.MAIL.SMTP.PS,DISP=SHR          *** (LRECL - 9000)       
//         DD DSN=USER.INPUT.FILE.PS,DISP=SHR         *** (LRECL - 9000)
//SYSUT2   DD SYSOUT=(B,SMTP)                             
//         


SMTP - USER.MAIL.SMTP.PS

Code:

HELO MVSHOST                                                     
MAIL FROM: <FIRST1.LAST1@ABC.COM>                         
RCPT TO: <FIRST2.LAST2@XYZ.COM>                           
DATA                                                             
FROM: FIRST1.LAST1                                         
TO:   FIRST2.LAST2                                                   
SUBJECT: MAILING EXCEL SHEET AS AN ATTACHMENT THRU JCL                       
MIME-VERSION: 1.0                                               
IMPORTANCE: HIGH                                                 
CONTENT-TYPE: MULTIPART/MIXED; BOUNDARY="SIMPLE BOUNDARY"       
                                                                 
--SIMPLE BOUNDARY                                               
CONTENT-TYPE: TEXT/PLAIN;                                       
                                                                 
HI FIRST2.LAST2,                                                         
                                                                 
    I'M FACING TRUNCATION PROBLEM WHILE SENDING CONTENT OF PS FILE INTO
    AN EXECL ATTACHMENT IN A MAIL THRU JCL. LRECL OF FILE 9000. BUT THE
    EXCEL SHEET TRANCATING THE CONTENTS AFTER 1024.
   
    PLEASE LET ME KNOW YOUR THOUGHTS 
   
THANKS,                                                         
FIRST1.LAST1                                               

--SIMPLE BOUNDARY                                   
CONTENT-TYPE: TEXT/PLAIN;                           
CONTENT-TRANSFER-ENCODING: 7BIT                     
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=FILE.CSV 
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Mar 14, 2012 1:26 am
Reply with quote

Please review the RFC for the SMTP standards and take special care concerning the limits for line lengths in SMTP.

Here's a previous topic that you can use as a reference.
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 Reformat and relocate content DFSORT/ICETOOL 4
No new posts Setting CA7 user variable from data s... CA Products 7
No new posts REXX table content on panel will be r... CLIST & REXX 6
No new posts How to modify file content using REXX CLIST & REXX 3
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... COBOL Programming 4
Search our Forums:

Back to Top