View previous topic :: View next topic
|
Author |
Message |
annanagarlt
New User
Joined: 31 Oct 2003 Posts: 5
|
|
|
|
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 |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
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 |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
Mayuresh,
Can you please give some code?
I am also interested to mail an attachment from mainframe.
Regards,
Sandip. |
|
Back to top |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
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 |
|
|
|