Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
JCL + JOB SUBMISSION.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
annanagarlt

New User


Joined: 31 Oct 2003
Posts: 5

PostPosted: Thu Nov 27, 2003 12:43 pm    Post subject: JCL + JOB SUBMISSION.
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
References
PostPosted: Thu Nov 27, 2003 12:43 pm    Post subject: Re: JCL + JOB SUBMISSION. Reply with quote

mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 259
Location: USA

PostPosted: Thu Nov 27, 2003 2:34 pm    Post subject:
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

EXPERT


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

PostPosted: Thu Dec 04, 2003 2:00 pm    Post subject:
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: 259
Location: USA

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

Hello Sandip,

Checkout following link for more details.

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1