Extract Command line

All questions about Control-M jobs definitions
Post Reply
User avatar
anirudhrh
Nouveau
Nouveau
Posts: 48
Joined: 21 Sep 2013 12:00

Extract Command line

Post by anirudhrh » 17 Mar 2014 8:58

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 ??
Anirudh

User avatar
sunuriyal
Nouveau
Nouveau
Posts: 27
Joined: 18 Jan 2014 12:00

Re: Extract Command line

Post by sunuriyal » 18 Mar 2014 5:38

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.

User avatar
anirudhrh
Nouveau
Nouveau
Posts: 48
Joined: 21 Sep 2013 12:00

Post by anirudhrh » 18 Mar 2014 1:33

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.
Anirudh

User avatar
gglau
Nouveau
Nouveau
Posts: 317
Joined: 13 Jun 2007 12:00

Post by gglau » 21 Mar 2014 12:50

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.

User avatar
anirudhrh
Nouveau
Nouveau
Posts: 48
Joined: 21 Sep 2013 12:00

Post by anirudhrh » 21 Mar 2014 9:46

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 ...
Anirudh

Post Reply