Previous Topic: Usage Notes for OPSWAIT

Next Topic: OPSWLM Scheduling Examples

OPSWLM Function

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']])
func

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:

I

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.

S

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.

Q

Query. This function code is reserved for future use and must not be used.

name

The value you specify for the required name argument depends on the function code:

arg3

The value you specify for the arg3 argument depends on function codes I or S.

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.