
{   The purpose of this procedure is to collapse a jobs environment when a
{  job has completed via LOGOUT command or some other like event. Control is
{  given to this procedure by tasking when all Child Tasks of the job have
{  returned to the jobs Job Monitor. If an error occures while attempting to
{  collapse the jobs environment, the error is logged to the System Log and
{  the next logical process of collapsing the jobs environment is attempted.
{  When all of the processes have completed and the job contains the minimum
{  environment it can, a request is made to Monitor to collapse the remainder
{  and return any remaining job resources and working set residue. This
{  process executes within the jobs Job Monitor.
{
{     JMP$JOB_END
{
