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

JCL used to send a message from BATCH to SMTP


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Tue May 17, 2005 10:07 am
Reply with quote

hi all..
can anyone help me to understand what is this jcl will do i submit it..
any settings that i has to do before i submit..
if anything let me know....




//IEBGENER EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//*
//SYSUT1 DD *
HELO HLNCTR
MAIL FROM: <CZ0055@HLNCTR.STATE.MT.US>
RCPT TO: <DGRINSELL@STATE.MT.US>
DATA

TO: Donald Grinsell
FROM: "Grinsell, Donald"<cz0055@hlnctr.state.mt.us>
SUBJECT: TCP/IP Mail from MVS batch on SYSA

This is a test message from batch.

/*
// DD DISP=SHR,DSN=MORE.EMAIL.DATA
//*
//SYSUT2 DD SYSOUT=(B,TCPSMTP)
//*


thanks all,
gokuldass..

TITLE EDITED
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Tue May 17, 2005 10:44 am
Reply with quote

Hi,
This is the JCL used to send a message from BATCH to SMTP. If you want to send a message to some person about the status of a job , i.e. it ran successfully or not. You can use this JCL. Here The OUTPUT from sysout DD directed to SMTP. SYSUT1 contains info of NODE,SENDER AND RECEPIENT. DATA contains DATA thaT shall appear in mail.
What you have to do before submit is that, check the message u r sending is right or not. Also verify the email address are correct or not.

Thanks
Subhasis
Back to top
View user's profile Send private message
ashutosh719

New User


Joined: 06 Apr 2005
Posts: 12

PostPosted: Tue May 17, 2005 10:44 am
Reply with quote

it will send an email....no settings reqd.........try!
Back to top
View user's profile Send private message
ssowjanya

New User


Joined: 29 Apr 2005
Posts: 13

PostPosted: Tue May 17, 2005 2:59 pm
Reply with quote

Hi gokuldass,
I agree with subhasis_50...try it!
Back to top
View user's profile Send private message
maheshvudi

New User


Joined: 08 Apr 2005
Posts: 2
Location: vizag

PostPosted: Tue May 17, 2005 3:41 pm
Reply with quote

Hi gokuldass,

i agree with subhasis_50, but before check it you have to check message content and email addresses.

i think '//*' to be used to begin before telling the color

bye.
Back to top
View user's profile Send private message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Fri Oct 21, 2005 9:55 am
Reply with quote

Hi,

I got the mail..

now my problem is to send an attachment through jcl..

How to do it


Regards
Gokul dass
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 Oct 21, 2005 3:16 pm
Reply with quote

You may want to start here: www.planetmvs.com/mvsmail/
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 How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts IMS Message : DFS3577A IMS DB/DC 4
Search our Forums:

Back to Top