Page 1 of 1

Extract Command line

Posted: 17 Mar 2014 8:58
by anirudhrh
Hello All,

I want a job to send an email when the job completes with the command line of the job. how can i do this ??

Re: Extract Command line

Posted: 18 Mar 2014 5:38
by sunuriyal
Hi Ani

There may be multiple ways, but I do that mailing the sysout of the job.
The first line in the sysout is the command line of the job.

Posted: 18 Mar 2014 1:33
by anirudhrh
Hello ,
that might not be the case always . I was looking to extract it via a auto edit variable .for example %%JOBNAME would give you the jobname of the job , similary i want the command line of the job ... not as an attachment.

Posted: 21 Mar 2014 12:50
by gglau
Define a local variable to hold job command.

In command box enter the variable.

Notification can use the variable to send job command in email body.

Posted: 21 Mar 2014 9:46
by anirudhrh
hello gglau

well that was a useful point...
but here the scenario is we run this job on adhoc basic and we make modification the commandline on each run ... so I wanted the command line each time ...