Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Trigger a mainframe job by mail

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
Praveen Thenraj

New User


Joined: 13 Jan 2016
Posts: 4
Location: India

PostPosted: Wed Jan 13, 2016 12:05 pm    Post subject: Trigger a mainframe job by mail
Reply with quote

Hi friends...

I have a requirement to trigger a job in mainframe after receiving a mail from outlook mail. Is it possible to achieve this?

Can you please let me know
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1717
Location: UK

PostPosted: Wed Jan 13, 2016 3:59 pm    Post subject:
Reply with quote

It is not entirely clear what you mean - your tile says you want the nail to trigger job submission but you text says that yu are to submit the job when you receive the mail. What is in that mail? What decides when that mail is sent to you? If it is someone creating/sending a dataset then your scheduler can be set up to submit a job wg=hen that dataset appears on the system.

Anyway, not a JCL question but a scheduler question - moving.
Back to top
View user's profile Send private message
Praveen Thenraj

New User


Joined: 13 Jan 2016
Posts: 4
Location: India

PostPosted: Wed Jan 13, 2016 4:42 pm    Post subject: Reply to: Trigger a mainframe job by mail
Reply with quote

I need to trigger a job say 'A' in mainframe by sending an email from my outlook mail server. The mail will have an attachment which will contain the job name that needs to be triggered in mainframe on receiving this email.

What needs to be done to achieve this...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7914
Location: Bellevue, IA

PostPosted: Wed Jan 13, 2016 6:27 pm    Post subject:
Reply with quote

It may or may not be possible. Read the manuals for your job scheduler to see what the API allows you to do. You will also need to work closely with your site support group as most mainframes are set up to send email but not to receive it.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Wed Jan 13, 2016 10:35 pm    Post subject:
Reply with quote

I am not sure how to get an email to trigger a job.
But I have done a similar activity with previous employer.
It is triggering a job from mobile. You can find the sample JCL from the below link using FTP client.
http://ibmmainframes.com/about53106.html

Please note: FTPing to mainframe from a FTP client has its security implications. Make sure you are not doing anything against your site standards, since this might expose sensitive information.

From network protected mobile I used to FTP a job to be submitted to JES, the job runs and sends an email back with the system status and daily batch completion status. Very handy when working from movie theaters :-)
Back to top
View user's profile Send private message
Praveen Thenraj

New User


Joined: 13 Jan 2016
Posts: 4
Location: India

PostPosted: Thu Jan 14, 2016 12:56 pm    Post subject: Reply to: Trigger a mainframe job by mail
Reply with quote

Thanks Vasanthz for the reply.

You have said that you trigger the job from mobile. In that case, what is the number or address to which you will be sending the message(JCL) you have mentioned in the link.

Also there is a field by name ADDRESS in the JCL you have mentioned. What is the address you used to mention here?
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Thu Jan 14, 2016 4:24 pm    Post subject:
Reply with quote

Quote:
what is the number or address to which you will be sending the message(JCL)


It is the LPAR's FTP address
Back to top
View user's profile Send private message
Praveen Thenraj

New User


Joined: 13 Jan 2016
Posts: 4
Location: India

PostPosted: Thu Jan 14, 2016 5:01 pm    Post subject: Reply to: Trigger a mainframe job by mail
Reply with quote

By FTP address do you mean the URL or IP address of mainframe server?


Also can you please post the jcl you used along with dummy FTP address, so as to use it for reference.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Thu Jan 14, 2016 8:48 pm    Post subject:
Reply with quote

Quote:
Also can you please post the jcl you used along with dummy FTP address, so as to use it for reference.

Sigh.. The link that is on the post has a complete JCL. What else are you expecting?
Quote:
By FTP address do you mean the URL or IP address of mainframe server?

FTP address is address defined for file transfer protocol, sending and receiving files. You need to go through the basics of FTP and get comfortable with the basics first, before you attempt anything with FTP.

FTP has serious security implications. Talk with someone at your shop who knows the do's and dont's of FTP.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm
No new posts Interface from Mainframe to Confluenc... hblun CLIST & REXX 4 Tue Sep 20, 2016 5:47 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Admin Openings with CTS enikhilk Mainframe Jobs 0 Tue Sep 13, 2016 10:13 am
No new posts Cards mainframe developer requirement... capricorn Mainframe Jobs 0 Sun Sep 11, 2016 9:57 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us