IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Trigger a mainframe job by mail


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
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
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: 2455
Location: Hampshire, UK

PostPosted: Wed Jan 13, 2016 3:59 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jan 13, 2016 6:27 pm
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: 1742
Location: Tirupur, India

PostPosted: Wed Jan 13, 2016 10:35 pm
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.
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
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: 1742
Location: Tirupur, India

PostPosted: Thu Jan 14, 2016 4:24 pm
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
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: 1742
Location: Tirupur, India

PostPosted: Thu Jan 14, 2016 8:48 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts NDM getting stuck - mainframe/JCL All Other Mainframe Topics 13
Search our Forums:

Back to Top