I need to rerun a job that has ended successfully but has run too quickly. I have been unable to find any parameter to use in the Steps panel that will indicate that the EXECTIME is too small.
I am using Control-M 6.3
Rerun job that has ended with run time less than 10 minute
- nicolas_mulot
- Nouveau
- Posts: 149
- Joined: 07 Jan 2010 12:00
Andyshack,
What you need is to shout to program.
Using ctm_menu Parameter Customization Menu Shout destination tables, you have to update your shout destination table (default SYSTEM an create a new entry, type P (program) the physical name of which being the full path of the script.
Lets call this logical sertination “RERUN_IF_TOO_SHORT” and the physical name c:\batchshout\rerun_if_too_short.bat).
The rerun_if_too_short.bat should contain at least the following
set ORDERID=%~2
ctmpsm –updateajf %ORDERID% rerun
What you need is to shout to program.
Using ctm_menu Parameter Customization Menu Shout destination tables, you have to update your shout destination table (default SYSTEM an create a new entry, type P (program) the physical name of which being the full path of the script.
Lets call this logical sertination “RERUN_IF_TOO_SHORT” and the physical name c:\batchshout\rerun_if_too_short.bat).
The rerun_if_too_short.bat should contain at least the following
set ORDERID=%~2
ctmpsm –updateajf %ORDERID% rerun
- nicolas_mulot
- Nouveau
- Posts: 149
- Joined: 07 Jan 2010 12:00
Andyshack,
it will be a good idea as well to pass the %%RUNCOUNT autoedit variable in your message text. Doing so, you will be able to control potentially infinite rerun loops and leuch the ctmpsm only if the amount of rerun already done has not reached an specified limitation.
you will then have to parse the message text received by your script, for the 2nd received parameter will nowcontain 2 words (the orderid and the runcount). This will make your script a bit more complex.
cheers
Nicolas Mulot
it will be a good idea as well to pass the %%RUNCOUNT autoedit variable in your message text. Doing so, you will be able to control potentially infinite rerun loops and leuch the ctmpsm only if the amount of rerun already done has not reached an specified limitation.
you will then have to parse the message text received by your script, for the 2nd received parameter will nowcontain 2 words (the orderid and the runcount). This will make your script a bit more complex.
cheers
Nicolas Mulot