Setting the availability of a resource
If a resource is available at fixed times, use the RESOURCES panel to specify this. If the availability cannot be predicted, change the availability status with the SRSTAT command, entered either from TSO or from the batch program EQQEVPGM.
For example, if a resource represents a data set, you can make this resource available when the data set is created and loaded with valid data. If the data set is created and loaded by a TSO user, the user can set the availability status with the SRSTAT command immediately after the data set is loaded. If a batch job creates and loads the data set, add an extra step that executes EQQEVPGM to set the availability status to YES. Use condition codes to execute the EQQEVPGM step only if the create and load steps are successful.
When you set availability in this way, the daily planning program cannot know in advance when the resource is available, and therefore cannot predict accurate start times; it schedules operations according to the values in the database.
You can browse and modify the availability status of resources, and browse the allocation status, using the RESOURCES panel.
By default, HCL Workload Automation for Z starts an operation if a required resource is available, even if the operation will last one hour and the interval specifies that the resource will be unavailable after one minute. If you want the product to take the expected future availability and operation duration into account, use the LOOKAHEAD keyword of the RESOPTS initialization statement. The special resource must be used for control, for LOOKAHEAD to take effect. Refer to Customization and Tuning for details of the RESOPTS statement.