Job release rules

Job release rules are used to determine the sequence of release for jobs with the same release date and time.

Your user-defined job release function can have any name that is not the name of a standard system function. It must accept a job(Type: ORDER*) as its only argument and return a value (Type: double) which is the ranking value of the job. Here is an example of an order release rule:


double orrl (ORDER *op)
/*-----------------------------------------------------------------
   Ranking function to cause new jobs to be ranked on a high to
     low priority.

   ARGS:
    op - pointer to job to evaluate ranking rule for

   RETURNS: job ranking value
-----------------------------------------------------------------*/
{
   return((double) -op->orprio);
}

To make your tailored job release function available to the Scheduler, you must “install” it from the first user-initialization function ucini1 by calling the function sedfok. The function sedfok has two arguments:

  1. The number of the job release rule for which your release function contains customized logic.
  2. The address of your job release function.