Generate an email in JCL automatically.

All sort of Mainframes Interview Questions.
Post Reply
Prakash Jha
Registered Member
Posts: 56
Joined: Sat Jun 29, 2013 1:45 pm

Generate an email in JCL automatically.

Post by Prakash Jha »

Hi,

Can someone please tell me how can we send an email using a JCL automatically, in case job is not completed on time and it has missed the SLA. In doing so I need to fetch the job completion time? I was not sure about the answer, how can we do it, please help on this.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Generate an email in JCL automatically.

Post by nicc »

I am sure the answer is already in the forum - did you search?
Regards
Nic
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Generate an email in JCL automatically.

Post by enrico-sorichetti »

and Your operations support should know how to have Your scheduler do it
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Generate an email in JCL automatically.

Post by nicc »

Enrico, interview question. He may not have an Ops Support group to speak to.
Regards
Nic
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Generate an email in JCL automatically.

Post by enrico-sorichetti »

:oops:

still

the forum will tell how to write a step to send an email

but
in case job is not completed on time and it has missed the SLA.
it will be difficult to find out with a simple jcl step

if I were the interviewer
the answer
" I would speak to operations support to find the capabilities of the job scheduler"
would have got many many more quality points
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Prakash Jha
Registered Member
Posts: 56
Joined: Sat Jun 29, 2013 1:45 pm

Re: Generate an email in JCL automatically.

Post by Prakash Jha »

Yes I also told about using IEBGENER steo to send the email but I was not sure how to capture the completion time of the job. Thanks for the answer that the scheduler should be able to help in this.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Generate an email in JCL automatically.

Post by Robert Sample »

Available starting in z/OS 2.3 will be the // NOTIFY JCL statement which will send job status to an email address. It won't help with SLA, of course, since an SLA is not fixed but depends upon the contract.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Interview Questions.”