Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Sending .HTML file via email using a JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
prerna_gupta11

New User


Joined: 21 Mar 2007
Posts: 9
Location: United states

PostPosted: Fri Aug 01, 2008 8:31 pm    Post subject: Sending .HTML file via email using a JCL
Reply with quote

I am using the below step to send a .HTML file thru email (using a JCL). It gives a return code of 0 but i am not getting the email. A similar job is already running in production where i am getting emails.

Below is the step in the JCL which sends .HTML file:

Code:

//****************************************************************
//* STEP TO SEND EMAIL IN HTML FORMAT                            *
//****************************************************************
//STPMAIL  EXEC PGM=IEBGENER,COND=(0,NE,JS0200.XXXX0100)             
//SYSIN DD DUMMY                                                     
//SYSPRINT DD SYSOUT=*                                               
//SYSUT1 DD DSN=XXXX.SLA.REPORT.HEADER,DISP=SHR                     
//       DD DSN=XXXX.ABC.SLA.REPORT.FINAL(+1),DISP=SHR             
//SYSUT2 DD SYSOUT=(B,SMTP),LRECL=1500                               



The SAR shows the job was successful, but no email received:

S=(006, .STPMAIL ),RCODE=0000

Both the files in SYSUT1 are 1500 bytes file and have the data. Can anyone please help me to check if there is any issue?
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Fri Aug 01, 2008 8:35 pm    Post subject: Re: Sending .HTML file via email using a JCL
Reply with quote

prerna_gupta11 wrote:
Can anyone please help me to check if there is any issue?


Going to be kind of hard without any details, diagnostic messages, traces, etc., don't you think? icon_wink.gif
Back to top
View user's profile Send private message
prerna_gupta11

New User


Joined: 21 Mar 2007
Posts: 9
Location: United states

PostPosted: Fri Aug 01, 2008 8:40 pm    Post subject: Reply to: Sending .HTML file via email using a JCL
Reply with quote

is there any limitation on the record length? I am using a file of 1000 bytes to send an email which is working perfectly fine...not sure if 1500 works.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8214
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 01, 2008 10:55 pm    Post subject:
Reply with quote

From RFC 2821, the SMTP standard:
Quote:
text line
The maximum total length of a text line including the <CRLF> is
1000 characters (not counting the leading dot duplicated for
transparency). This number may be increased by the use of SMTP
Service Extensions.
I have had problems sending emails with more than 1000 characters in them -- they may go but usually don't.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8214
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 01, 2008 11:00 pm    Post subject:
Reply with quote

Quote:
more than 1000 characters in them
that's 1000 characters per line in them ... sigh ... at least it's Friday
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us