So you are using a script job. You can then employ the following method to self-modify the job 1. In the job script code something like Dim GLOBAL.JOB_XXX_STATUS, Number Set GLOBAL.JOB_XXX_STATUS, 0 // .... the rest of the job script // At the end of the script Set GLOBAL.JOB_XXX_STATUS, 1 2. In the job notification action of JAL script enter the following Dim job_status, number GetRemoteVariable "agent name", "GLOBAL.JOB_XXX_STATUS", job_status JOB_XXX_STATUS is just a variable name use something like JOB_855_STATUS or any other unique name if you need use this method for multiple jobs. 3. Based on the retuned value implement run your JobModify logic. ========================== I would still recommend using the retry option and in the job script simply call RaiseError to fail the job. The rest will be automatically handled by 24x7. To ensure the job runs smoothly set the job to run detached. This will protect the scheduler from job crashes. PS. There is no such command available as RemoteModifyJob. : What I am trying to do, and what works 100% on a local job... is to download : a file, and verify the date / information inside this file. : If the file is 'old' ie, bad date or of on any other info... schedule the job : start time to be current job start time + 10 min. : If the job runs sucessfully, it sets the job start time to be the original : start time of the job : I do it this way over the established 'retry on error' functionality because : of crashes / bugs with this process. : My problem is that I wish to do this on jobs that run on remote hosts... : question : why am i prevented from connecting BACK to the master scheduler in : the job (with remotejobmodify) to modify it ?
|