Previous Topic

Next Topic

Book Contents

Book Index

ctmdefine examples

The following command contains the minimum parameters required to define a job:

ctmdefine -folder cmmnds -jobname cmls13 \

-tasktype command -sub_application em -application test \

-date 0101 -cmdline "ls -l /etc/passwd"

You can get the same result by using the -input_file parameter as follows:

ctmdefine -input_file ~<controlm_owner>/ctm_server/data/ctmdefine_cmmnds.txt

The referenced file (ctmdefine_cmmnds.txt) contains the following lines:

-folder cmmnds

-jobname cmls13

-tasktype command

-sub_application em

-application test

-date 0101

-cmdline "ls -l \etc\passwd"

The following command includes examples of most of the parameters that be used to define a job:

ctmdefine -tasktype JOB -cyclic N\

-folder djsales -jobname dj102\

-description “Daily Summary"\

-sub_application SUPPLY -application SUPPLIES\

-file_path /users/ctm_server/ -file_name PROLYPAR -nodegrp UNIXGRP\

-run_as suppman\

-month ALL N\

-month MAR Y -month JUN Y -month SEP Y -month DEC Y\

-timeuntil 1800\

-priority AA -critical N\

-confirm Y\

-doclib /users/supply/doc/ -docmem prolypardoc\

-incond pk_oly_ok ODAT AND\

-incond pk_olp_ok ODAT AND\

-outcond pk_oly_ok ODAT DEL\

-outcond pk_olp_ok ODAT DEL\

-outcond pk_olypar ODAT ADD\

-variable %%PARM1 “%%CALCDATE %%ODATE -2"\

-quantitative tape 2 -quantitative cpu 50 \

-output MOVE /test/logs/\

-control disk2 E\

-shout OK oper2 U “Daily summary completed"\

-on “COPY JWINFO_2507” “%COPY-E-OPENIN, error"\

-dooutput MOVE /oper/openerr/\

-on “*” notok\

-dorerun\

-doshout em v “Daily summary failed. Attempting rerun"

Parent Topic

ctmdefine