|
View previous topic :: View next topic
|
| Author |
Message |
ajishvijay Warnings : 1 New User
.jpg)
Joined: 02 Aug 2006 Posts: 9
|
|
|
|
What changes should i make in the jcl to send email properly?
| Code: |
//ESCUB01E JOB NOTIFY=&SYSUID
//S1 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//*
//SYSUT1 DD *
HELO N1
MAIL FROM: <[email protected]>
RCPT TO: <[email protected]>
DATA
TO: <[email protected]>
FROM: "AJISH"<[email protected]>>
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,SMTP)
//*
|
|
|
| Back to top |
|
 |
donevin
New User
Joined: 07 Jun 2005 Posts: 70 Location: South Africa
|
|
|
|
| What is the errors that you get? |
|
| Back to top |
|
 |
ajishvijay Warnings : 1 New User
.jpg)
Joined: 02 Aug 2006 Posts: 9
|
|
|
|
The error i got is
DATA SET CANNOT FOUND |
|
| Back to top |
|
 |
donevin
New User
Joined: 07 Jun 2005 Posts: 70 Location: South Africa
|
|
|
|
I would like to see the job output, but for now add after the SYSIN statement
| Code: |
| //SYSPRINT DD SYSOUT=* |
|
|
| Back to top |
|
 |
ajishvijay Warnings : 1 New User
.jpg)
Joined: 02 Aug 2006 Posts: 9
|
|
|
|
Following is the IESJCL mesg
1 //ESCUB01E JOB NOTIFY=&SYSUID
IEFC653I SUBSTITUTION JCL - NOTIFY=ESCUB01
2 //S1 EXEC PGM=IEBGENER
3 //SYSIN DD DUMMY
4 //SYSPRINT DD SYSOUT=*
//*
5 //SYSUT1 DD *
6 // DD DISP=SHR,DSN=MORE.EMAIL.DATA
//*
7 //SYSUT2 DD SYSOUT=(B,SMTP)
//*
The JESYSMSG is
ICH70001I ESCUB01 LAST ACCESS AT 02:39:17 ON FRIDAY, AUGUST 4, 2006
IEF212I ESCUB01E S1 SYSUT1 +001 - DATA SET NOT FOUND
IEF272I ESCUB01E S1 - STEP WAS NOT EXECUTED.
IEF373I STEP/S1 /START 2006216.0257
IEF374I STEP/S1 /STOP 2006216.0257 CPU 0MIN 00.00SEC SRB 0MIN 00.00S
IEF375I JOB/ESCUB01E/START 2006216.0257
IEF376I JOB/ESCUB01E/STOP 2006216.0257 CPU 0MIN 00.00SEC SRB 0MIN 00.00S |
|
| Back to top |
|
 |
shreevamsi
Active User

Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
I don;t find any wrong with the JCL.
Please check whether MORE.EMAIL.DATA is existing or not.
Even thougt it is existing, record format should be FB.
~Vamsi |
|
| Back to top |
|
 |
ajishvijay Warnings : 1 New User
.jpg)
Joined: 02 Aug 2006 Posts: 9
|
|
|
|
| Now no errors, but email is not received to the specified email-id |
|
| Back to top |
|
 |
pattabiraman.baskaran
New User

Joined: 10 Aug 2006 Posts: 23
|
|
|
|
No comment (//*) statment should be included inside the SYSIN parameter. If any such thing is included then it will not read the SYSIN values. Try removing the comment line next to DSN=MORE.EMAIL.DATA.
| Code: |
//ESCUB01E JOB NOTIFY=&SYSUID
//S1 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//*
//SYSUT1 DD *
HELO N1
MAIL FROM: <[email protected]>
RCPT TO: <[email protected]>
DATA
TO: <[email protected]>
FROM: "AJISH"<[email protected]>>
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,SMTP)
//*
|
Correct me if i am wrong  |
|
| Back to top |
|
 |
|
|