Hi to all! I'm having a problem with a Step codes config. I have a job that is configured like this:
ON Stmt=* CODE=OK
DO Force-Job xxxxxxxxx
ON Stmt=* CODE=COMPSTAT=99
DO Condition yyyyyyyy
DO OK
Problem: When it returns 0 (OK) everything go as planned. It forces the job it should. But when the return is 99, it does the condition it is supposed to, but it does also the Force-job described in CODE=OK. What am i doing wrong? Ty
Problem with Step codes config
- nicolas_mulot
- Nouveau
- Posts: 149
- Joined: 07 Jan 2010 12:00
typhoeus,
You dont do anything wrong. You just ask ctm to set a status OK when RC=99 and ask to force a job when status is OK.
The logic of ctm is shown in the log messages as follows:
TR5100 ENDED AT 20110422220255. OSCOMPSTAT 99. RUNCNT 1
TR5169 Message from Agent: Job completed
TR5132 STATUS SET TO OK AS A RESULT OF DO OK
TR5133 ENDED OK
TR5120 JOB STATE CHANGED TO Analyzed
SL5212 JOB titi, TABLE toto FORCED
SL5209 CONDITION toto 0422 ADDED
SL5120 JOB STATE CHANGED TO Post processed
In fact, On statements are not processed in the order they are coded. The order depends on the origin and the type of the selected information.
ON STMT related to compstats are processed by the agent, and are processed first.
ON STMT related to sysout contents are processed by the agent, after the above.
ON STMT related to generic statuses such as OK, NOTOK, RERUN, are processed at the server level, after the 2 above.
Pls refer to controlm parameter guide - post processing parameters - ON statement, and more specifically to the section entitled "Order of processing of On Statement/Code combinations" (page 362 in this manual - version 7.0.0).
In your case, maybe the forcejob should react to a more specific filter, such as COMPSTAT EQ 0 or LT nnn
Cheers
Nicolas Mulot
You dont do anything wrong. You just ask ctm to set a status OK when RC=99 and ask to force a job when status is OK.
The logic of ctm is shown in the log messages as follows:
TR5100 ENDED AT 20110422220255. OSCOMPSTAT 99. RUNCNT 1
TR5169 Message from Agent: Job completed
TR5132 STATUS SET TO OK AS A RESULT OF DO OK
TR5133 ENDED OK
TR5120 JOB STATE CHANGED TO Analyzed
SL5212 JOB titi, TABLE toto FORCED
SL5209 CONDITION toto 0422 ADDED
SL5120 JOB STATE CHANGED TO Post processed
In fact, On statements are not processed in the order they are coded. The order depends on the origin and the type of the selected information.
ON STMT related to compstats are processed by the agent, and are processed first.
ON STMT related to sysout contents are processed by the agent, after the above.
ON STMT related to generic statuses such as OK, NOTOK, RERUN, are processed at the server level, after the 2 above.
Pls refer to controlm parameter guide - post processing parameters - ON statement, and more specifically to the section entitled "Order of processing of On Statement/Code combinations" (page 362 in this manual - version 7.0.0).
In your case, maybe the forcejob should react to a more specific filter, such as COMPSTAT EQ 0 or LT nnn
Cheers
Nicolas Mulot