Generate an email in JCL automatically.

All sort of Mainframes Interview Questions.

Topic author
Prakash Jha
Registered Member
Posts: 39
Joined: Sat Jun 29, 2013 1:45 pm
Has thanked: 3 times

Generate an email in JCL automatically.

Postby Prakash Jha » Fri Mar 24, 2017 2:58 pm

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: 529
Joined: Wed Apr 23, 2014 8:45 pm
Been thanked: 11 times

Re: Generate an email in JCL automatically.

Postby nicc » Fri Mar 24, 2017 3:09 pm

I am sure the answer is already in the forum - did you search?


Regards
Nic

Online

enrico-sorichetti
Global Moderator
Global Moderator
Posts: 811
Joined: Wed Sep 11, 2013 3:57 pm
Been thanked: 68 times

Re: Generate an email in JCL automatically.

Postby enrico-sorichetti » Fri Mar 24, 2017 3:16 pm

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: 529
Joined: Wed Apr 23, 2014 8:45 pm
Been thanked: 11 times

Re: Generate an email in JCL automatically.

Postby nicc » Fri Mar 24, 2017 3:54 pm

Enrico, interview question. He may not have an Ops Support group to speak to.


Regards
Nic

Online

enrico-sorichetti
Global Moderator
Global Moderator
Posts: 811
Joined: Wed Sep 11, 2013 3:57 pm
Been thanked: 68 times

Re: Generate an email in JCL automatically.

Postby enrico-sorichetti » Fri Mar 24, 2017 4:11 pm

: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-)


Topic author
Prakash Jha
Registered Member
Posts: 39
Joined: Sat Jun 29, 2013 1:45 pm
Has thanked: 3 times

Re: Generate an email in JCL automatically.

Postby Prakash Jha » Mon Mar 27, 2017 2:52 pm

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.



Online
User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1214
Joined: Fri Jun 28, 2013 1:22 am
Location: East Dubuque Illinois
Has thanked: 2 times
Been thanked: 86 times

Re: Generate an email in JCL automatically.

Postby Robert Sample » Mon Mar 27, 2017 3:56 pm

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.




Return to “Interview Questions.”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests