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 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: 1868
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: 8151
Location: East Dubuque, Illinois, USA

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: 1521
Location: Chennai

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: 1521
Location: Chennai

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: 1521
Location: Chennai

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
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
No new posts Allianz Technology - Mainframe 3+ Yea... sooraj184 Mainframe Jobs 0 Mon Jul 31, 2017 2:17 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm

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