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
 

 

JCL used to send a message from BATCH to SMTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL used to send a message from BATCH to SMTP
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    Post subject: Re: smtp through jcl
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    Post subject:
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    Post subject:
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    Post subject: Re: smtp through jcl
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    Post subject: How to send the attachment.
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

Moderator Team Head


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

PostPosted: Fri Oct 21, 2005 3:16 pm    Post subject: Re: smtp through jcl
Reply with quote

You may want to start here: http://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    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 How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm


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