View previous topic :: View next topic
|
Author |
Message |
Praveen Thenraj
New User
Joined: 13 Jan 2016 Posts: 4 Location: India
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Praveen Thenraj
New User
Joined: 13 Jan 2016 Posts: 4 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
Praveen Thenraj
New User
Joined: 13 Jan 2016 Posts: 4 Location: India
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
Praveen Thenraj
New User
Joined: 13 Jan 2016 Posts: 4 Location: India
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
|