How to set a job maximum rerun in PBS

How to set a job maximum rerun in PBS , any variable is to set it on server

There is no configuration available to set the maximum rerun.
However you can use a runjob hook to accept or reject a job whose run_count (pbs.event().job.run_count) is greater than a set threshold limit.

ok
thanks Adarsh,
for reply