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