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: 8165
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: 8165
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
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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