How PRECMD and POSTCMD is useful in the set tab,can anyone please explain with an example.
And the command which mentioned in PRECMD has any relation with the current job script or command?
Set tab variables
Hi, you can use PRECMD and POSTCMD to run many utilities in Control-M
PRECMD : will execute before running main command line of the job.
POSTCMD : will execute after completing the execution of main command line of the job.
examples:
you can assign any utilities but here im using a simple mailx command.
POSTCMD(Var name) mailx -s "Ejecucion de job $JOBNAME" $MAIL1 $MAIL2 $MAIL3(Var value)
you can refer below posts.
http://www.scheduler-usage.com/modules. ... ght=precmd
http://www.scheduler-usage.com/modules. ... ight=mailx
PRECMD : will execute before running main command line of the job.
POSTCMD : will execute after completing the execution of main command line of the job.
examples:
you can assign any utilities but here im using a simple mailx command.
POSTCMD(Var name) mailx -s "Ejecucion de job $JOBNAME" $MAIL1 $MAIL2 $MAIL3(Var value)
you can refer below posts.
http://www.scheduler-usage.com/modules. ... ght=precmd
http://www.scheduler-usage.com/modules. ... ight=mailx