MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sending email via JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Thu Jun 14, 2018 8:40 am    Post subject: Sending email via JCL Reply with quote

Okay, after googling here and there, I've hit a problem. First of all, let me show the JCL that's working
Code:

//job card
//*                                                 
//SENDNOTE EXEC PGM=IEBGENER                       
//SYSIN    DD DUMMY                                 
//SYSPRINT DD SYSOUT=*                             
//SYSUT2   DD SYSOUT=(B,CSSMTP)                     
//SYSUT1   DD DISP=SHR,DSN=myuser.LDEV1.JCL(MIME)   
//*                                                 
//SYSOUT   DD  SYSOUT=*                             
//*                                                 


and the member pointed to contains
Quote:

HELO xxxx
MAIL FROM:<SENDMAIL@xx>
RCPT TO:<michael.simpson@xx>
DATA
from:ITEST@xx
to:michael.simpson@xx
Subject: From http://planetmvs.com/mvsmail/#HTMLMAIL
MIME-Version: 1.0
Content-type: text/html
<font face="Courier" size="+2" color=blue>
This is Courier font in blue</font>
<br><br>
<font face="Arial" size="+3" color=red>
This is the Arial font in red</font>


This works fine and I receive the mail in my Outlook inbox.

The trouble arises if I try and include myuser.LDEV1.JCL(MIME) inline in my JCL - nothing is ever sent.

The subject specified in the file above is where I started experimenting, and there there's an example of inline HTML code being used to format the email.

Does anyone have an idea of why this isn't working ?


Aaaaaaarghhhh

Only forgot to look in positions 73-80 (which were numbered). As soon as I removed those, it worked fine.

_________________
Michael
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Thu Jun 14, 2018 12:05 pm    Post subject: Re: Sending email via JCL Reply with quote

misi01 wrote:
Aaaaaaarghhhh

Only forgot to look in positions 73-80 (which were numbered). As soon as I removed those, it worked fine.


misi01,

May be you need to have a bigger session screen size. I usually have a Screensize of 45x155

This will give me the option of looking stuff beyond the normal 80 bytes
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Mon Jun 18, 2018 2:31 am    Post subject: Reply with quote

Good idea, but the emulator we have (EXTRA!) won't allow more than 80 characters.
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Mon Jun 18, 2018 11:11 am    Post subject: Reply with quote

misi01 wrote:
Good idea, but the emulator we have (EXTRA!) won't allow more than 80 characters.


Misi01,

You can edit the .ws file and put in your own screen size (max is 255 X 255)

ScreenSize=45×145
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group