The OPSWLM OPS/REXX function performs one of the following operations:
Note: The OPSWLM function can be used in OPS/REXX or AOF rules.
This function has the following format:
var = OPSWLM('{func}','{name}'[,['arg3']])
Specifies the type of function you want the OPSWLM function to perform. You must always specify the func argument.
Currently, the only valid function codes for OPSWLM are:
Retrieves information about the state of a WLM scheduling environment. This function determines if a scheduling environment is available on a specified system. This function code may be used in any environment where OPS/REXX can be used. To get meaningful results, you should only specify the names of scheduling environments that are defined in the active service policy.
Sets the status of a WLM scheduling environment resource. This function code may only be used in real AOF rules. When used in AOF Test, no action is taken and a fixed result string is returned. To get meaningful results, you should only specify the names of scheduling resources that are defined in the active service policy on this system.
Query. This function code is reserved for future use and must not be used.
The value you specify for the required name argument depends on the function code:
The value you specify for the arg3 argument depends on function codes I or S.
When the I function code is used, the following values may be returned:
The scheduling environment on the designated system is available.
The scheduling environment on the designated system is not available.
The system does not support scheduling environment services. This return code is set for unsupported versions of the operating system.
The named scheduling environment does not exist on the designated system.
ERROR RC=nn RS=xxxxxxxxx
The IBM IWMSEDES service returned an unexpected return code and reason code combination. This string contains the return code (in decimal) and reason code (in hexadecimal) from the IWMSEDES service. In addition, message OPx4280E is issued and contains similar information. Check the IBM documentation for the WLM IWMSEDES service and attempt to diagnose and correct the problem. If you are unable to resolve the problem, then contact CA customer support and provide them with the AOF rule or OPS/REXX program and the exact contents of this value.
For assistance, contact Customer Support at http://ca.com/support
The CA OPS/MVS main address space is not active.
An abend occurred either in the OPSWLM function or in the product WLM service routine. Check the OPSLOG for message OPx9500S. The message indicates the abend code as well as the module name and offset where the abend occurred. For assistance, contact Customer Support at http://ca.com/support.
When the S function code is used, the following values may be returned:
This string indicates that the state of the designated WLM scheduling environment resource was set as directed.
The system does not support scheduling environment services. This return code is set for unsupported releases of the operating system.
The named resource does not exist. Check the name argument. If the specified resource name is correct, then check whether the resource is defined in the active WLM service policy.
The IBM IWMSESET service returned an unexpected return code and reason code combination. This string contains the return code (in decimal) and reason code (in hexadecimal) from the IWMSESET service. In addition, message OPx4280E is issued and contains similar information. Check the IBM documentation for the WLM IWMSESET service and attempt to diagnose and correct the problem. If you are unable to resolve the problem, then contact CA customer support at http://ca.com/support and provide them with the AOF rule or OPS/REXX program and the exact contents of this value.
The CA OPS/MVS main address space is not active.
An abend occurred either in the OPSWLM function or in the product WLM service routine. Check the OPSLOG for message OPx9500S. The message indicates the abend code as well as the module name and offset where the abend occurred. For assistance, contact customer support at http://ca.com/support
The Set function code was used in AOF Test.
Note: A syntax error (for example, using an invalid function code) in the function call statement causes an OPS/REXX error 40, Incorrect Call to Routine.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |