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

Sending .HTML file via email using a JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Fri Aug 01, 2008 8:35 pm
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 01, 2008 10:55 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 01, 2008 11:00 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top