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

JCL + JOB SUBMISSION.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
annanagarlt

New User


Joined: 31 Oct 2003
Posts: 5

PostPosted: Thu Nov 27, 2003 12:43 pm
Reply with quote

How can I see whether the submitted job has been executed successfully or not without checking out the SPOOL region or by looking at the Notify messages ?? I'm expecting a real good answers...

Cheers

Team AnnaNagar LT.
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Thu Nov 27, 2003 2:34 pm
Reply with quote

Hello annanagarlt,

You can include a step at the end of your JCL to send an email with the return code using IEBGENER.
With this you dont have to go to SPOOL to look for the sysout and use the NOTIFY command.

Just give the email address where you want to see the returncode.

Let me know in case of any concerns,

Hope this helps.

Regards

Mayuresh Tendulkar
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Thu Dec 04, 2003 2:00 pm
Reply with quote

Mayuresh,

Can you please give some code?
I am also interested to mail an attachment from mainframe.

Regards,
Sandip.
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Thu Dec 04, 2003 2:25 pm
Reply with quote

Hello Sandip,

Checkout following link for more details.

Code:
http://www.cisco.com/univercd/cc/td/doc/product/software/ioss390/ios390ug/ugsmtp.htm#34946

http://www.csuhayward.edu/FOCUS/mvsmail.ppt

http://panthernet.pbcc.cc.fl.us/xmitip.html



sample JCL would be the one like below:

--------------------------------------------------------------------------------------
//STEP000 EXEC PGM=IEBGENER
//SYSUT1 DD *
HELO system
MAIL FROM: me@mydomain.com
RCPT TO: whoever@domain.com
DATA
FROM: Me
TO: You
SUBJECT: Something to talk about
MIME-Version: 1.0
CONTENT-TYPE: multipart/mixed;
boundary="code block"
CONTENT-TRANSFER-ENCODING: binary;
Some message not shown.
--code block
CONTENT-TYPE: application/octet-stream;
name="MyDocument.doc" type="application/ms-word" <----- file to be uploaded
/*
// DD DSN=Uploaded.MSWord,DISP=SHR
// DD *
--code block
CONTENT-TYPE: application/octet-stream;
name="MyAdobe.pdf" type="application/pdf" <----- file to be uploaded
/*
// DD DSN=Uploaded.PDF,DISP=SHR
// DD *
/*
--code block--
.
QUIT
/*
--------------------------------------------------------------------------------------

Hope this helps.

Regards

Mayuresh Tendulkar
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP to SFTP for JCL submission from M... All Other Mainframe Topics 1
No new posts Multiple Jobs submission from a PDS l... CLIST & REXX 2
No new posts Jobtrac not starting jobs - awaiting ... CA Products 3
No new posts command to display the spool jobs in ... All Other Mainframe Topics 9
No new posts Running multiple SAS programs in one ... All Other Mainframe Topics 3
Search our Forums:

Back to Top