Good morning CA community,I have a question regarding using a RESOURCE rule. I created a job in our test environment that is to wait until a started task is brought down.
JOB JOBESTFFRESOURCE (1,D10X0102)RUN DAILYDATASET 'ODTEEBF.JCL.CNTL'ENDJOBThe JCL for this job is a simple IEFBR14 job so that I can test some functionality of certain features. I noticed that even when the resource is up, the job still runs successfully. I am not sure what I am doing wrong, but basically I want the job only to run when the resource is down. The resource is brought down manually by Operator intervention.Any help or suggestions would be greatly appreciated.
The statement RESOURCE (1,D10X0102) says that this job requires quantity 1 or resource D10X0102.If the resource is available the job runs.
Is that RESOURCE used by any other job?If not set Resource D10X0102 to 0 (NOT available)
Then reverse what Operators do and have them set Resource D10X0102 to 1 (Available)
Would that resolve your issue?
The ESP resource has no direct link to a STC. So if your STC name is D10X0102, then resource D10X0102 has no relationship with it.
Based on the requirement, the easiest solution is to define the STC as a MANUAL JOB, like:
JOB D10X0102 MANUAL
Then JOB JOBESTFF will wait until D10X0102 ends.
Note: be sure that ESP will track this STC.
Hope this helps,