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
Need a jcl for sending email and SMS.
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 4
- Joined: Fri Oct 27, 2006 11:13 pm
email from mainframe
Hi Prasad,
I can answer first point , sending e-mail.
Following code is useful to send an email to specified user.
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
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:<XXXX@ibmmainframeguru.com>
rcpt to:<yyyy@ibmmainframeguru.com>
data
From: <XXXX@ibmmainframeguru.com>
To: <yyyy@ibmmainframeguru.com>
Subject: 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
-
- Member
- Posts: 12
- Joined: Wed Nov 08, 2006 1:03 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
//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
-
- Member
- Posts: 11
- Joined: Wed Nov 08, 2006 4:57 pm
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page