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
 

 

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: 4649
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: 8117
Location: East Dubuque, Illinois, 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: 8117
Location: East Dubuque, Illinois, 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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us