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

Error in the JCL which is used to send Email


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ajishvijay
Warnings : 1

New User


Joined: 02 Aug 2006
Posts: 9

PostPosted: Thu Aug 03, 2006 10:40 am
Reply with quote

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: <ESCUB01@N1.XYZ.COM>                                         
RCPT TO: <AJISHVIJAY@GMAIL.COM>                                         
DATA                                                                   
TO: <AJISHVIJAY@GMAIL.COM>                                             
FROM: "AJISH"<ESCUB01@N1.XYZ.COM>>                                     
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
View user's profile Send private message
donevin

New User


Joined: 07 Jun 2005
Posts: 70
Location: South Africa

PostPosted: Thu Aug 03, 2006 7:45 pm
Reply with quote

What is the errors that you get?
Back to top
View user's profile Send private message
ajishvijay
Warnings : 1

New User


Joined: 02 Aug 2006
Posts: 9

PostPosted: Fri Aug 04, 2006 10:08 am
Reply with quote

The error i got is

DATA SET CANNOT FOUND
Back to top
View user's profile Send private message
donevin

New User


Joined: 07 Jun 2005
Posts: 70
Location: South Africa

PostPosted: Fri Aug 04, 2006 1:24 pm
Reply with quote

I would like to see the job output, but for now add after the SYSIN statement
Code:
//SYSPRINT DD SYSOUT=*
Back to top
View user's profile Send private message
ajishvijay
Warnings : 1

New User


Joined: 02 Aug 2006
Posts: 9

PostPosted: Fri Aug 04, 2006 2:00 pm
Reply with quote

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
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Fri Aug 04, 2006 2:11 pm
Reply with quote

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
View user's profile Send private message
ajishvijay
Warnings : 1

New User


Joined: 02 Aug 2006
Posts: 9

PostPosted: Sat Aug 05, 2006 2:11 pm
Reply with quote

Now no errors, but email is not received to the specified email-id
Back to top
View user's profile Send private message
pattabiraman.baskaran

New User


Joined: 10 Aug 2006
Posts: 23

PostPosted: Fri Aug 18, 2006 10:05 am
Reply with quote

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: <ESCUB01@N1.XYZ.COM>                                         
RCPT TO: <AJISHVIJAY@GMAIL.COM>                                         
DATA                                                                   
TO: <AJISHVIJAY@GMAIL.COM>                                             
FROM: "AJISH"<ESCUB01@N1.XYZ.COM>>                                     
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 icon_biggrin.gif
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top