Could you please help me how to send a job log/Spool once the job completed.
There was an option is available System Send mail to send a mail once the job completed . So could you please help me how we can send a job log using this option .
I have tried the below but i didn't get any mail . Could some one help this please !
For example :
Job chain name : Test_spool
Step1 : Reportstep
Job definition u2013 XXX_YYY
Job definition: system_mail_send
Expression : Reportstep,job<(what i need to mention here )>:reportstep/log.txt
Check the ablove mentioned is correct and correct me , still i didnu2019t get the log in the mail please .
1. Schedule a System_Mail_Server job in CPS at least every day. Provide a mail server hostname for this job.
2. In The job chain, when the first step is completed, set the status to next step and mention the job name of mail send.
3. In the job definition for mail_send, mention TO, Subject and SEND parameters same as how you send email.
4. On completed, set the job status of mail_send to completed.
Execute the chain.
I need your help on getting mail alert with log file.
here is how i have provide the parameter valure for job definition: system_mail_sent.
Step1 with one job1 and step2 with one job1
In step2 , i have included the job definition to send mail. with below parameter.
Relative Job: Step 1, Job 1
Job File: step 1, job 1: step 1/log.txt
Please let me know if the above method is correct or not.
NOTE: mail server and from address are configured.
Thanks for your response, i am getting the job log with the alert.
can you please let me know what are the information i can get it in the alert body in real time,
something like job id, job name, scheduled time, runtime, etc.
As i am manually coding the job name in the subject and text section. instead i would like to have these parameters filled in real time.
Thanks in advance.
I am using Job chain with 7 steps and last step is used to send mail alert - "system_mail_send" on the failure of the any jobs in the earlier steps.
I did specify RelativeJob : * , * and JobFile : * , i m receiving alert but not the log file.
Please let me know what to mention in Relative Job and Job file to receive an Job log for any job failed in that job chain.