Need a jcl for sending email and SMS.

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Captain Uday Prasad
Member
Posts: 4
Joined: Fri Oct 27, 2006 11:13 pm

Need a jcl for sending email and SMS.

Post by Captain Uday Prasad » Fri Oct 27, 2006 11:47 pm

What JCl to code that will do the folllowing:


1. Send an email from a job to the specified user.
2. Send an SMS to the specified user/users located in India and/or abroad.


Regards
Captain Uday Prasad :lol:

User avatar
JACK
Member
Posts: 20
Joined: Mon Jan 30, 2006 6:18 am

email from mainframe

Post by JACK » Thu Nov 02, 2006 4:05 pm

Hi Prasad,

I can answer first point , sending e-mail.

Following code is useful to send an email to specified user.

Code: Select all

//STEP1 EXEC PGM=IEBGENER
//SYSIN    DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2   DD SYSOUT=(B,SMTP)
//SYSUT1   DD *
helo HOST
mail from&#58;<XXXX@ibmmainframeguru.com>
rcpt to&#58;<yyyy@ibmmainframeguru.com>
data
From&#58;     <XXXX@ibmmainframeguru.com>
To&#58;       <yyyy@ibmmainframeguru.com>
Subject&#58;  Test message 

 Test Message - Test Message from prasad.

HOST , If you are a JES2 site, look at any JES2 job log for the node name at the top after "N O D E".

Let me know if you need more information.

Regards,
JACK

rahul_kolhe
Member
Posts: 12
Joined: Wed Nov 08, 2006 1:03 am

Post by rahul_kolhe » Wed Nov 08, 2006 1:11 am

//STEP1 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
helo HOST
MAIL FROM:<xxxx@mainframeguru.com>
RCPT TO:<+919800000000>
DATA
sms from mainframe mainframeguru

abhishek.pradhan
Member
Posts: 11
Joined: Wed Nov 08, 2006 4:57 pm

Post by abhishek.pradhan » Thu Nov 23, 2006 11:58 am

Hi,

I m unable to execute the above JCL.
the job is giving MAXCC 00 but the msg is not recieved by recipent.

the msg is just getting printed to SYSUT2.

Please advise.

-Abhi

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others