Change in behavior between V11 and V12 :PUT_ATT HOST together with hostgroup

Document ID : KB000087864
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
In a job the Host group should be set by function :PUT_ATT HOST. The job fails with:
 
04.04.2017 14:24:41 - U00020916 Runtime error in object 'JAC#SCM.ALL.JCLLOAD_MBM8.UX.JOBS.COPYTEMP(1)', line '00001': Changing the Agent is not allowed because the resources of the agent has already been reserved.

It affects all kinds of jobs that have a Host assigned. As Host a Host Group is assigned:
 
0EMb0000001UgWV.png

In the preprocess of the job, PUT_ATT is used to assign one of the hosts from the host group as dedicated host:
 
0EMb0000001UgWa.png

In V11 this works no matter if Generate at runtime is checked for the job or not.

In V12, when Generate at runtime is set, it fails with
 
04.04.2017 14:24:41 -  U00020916 Runtime error in object 'JAC#SCM.ALL.JCLLOAD_MBM8.UX.JOBS.COPYTEMP(1)', line '00001': Changing the Agent is not allowed because the resources of the agent has already been reserved.
Cause:
This is not a bug. It was implemented in the context of the new V12 feature "Accelerated Workflow Completion" where Agent group resolution takes resources into consideration.
Resolution:
No fix