Setting the context and scope
The set of managed objects that your API program can work with is determined primarily by the context and scope associated with the processing thread. As with all CICSPlex® SM operations, the context and scope of an API program identify the CICS® systems on which the program can act.
In general, you can set the context and scope values as follows:
- CONTEXT
- For most operations in a CICSplex, the context is the name of the CICSplex. For operations related to CMAS configuration (such as defining CICSplexes or CMAS communication links), the context must be a CMAS name and for applications executing in a CICS local MAS the CMAS name must be the local CMAS name.
- SCOPE
- When the context is a CICSplex, the scope can be:
- The CICSplex itself
- A CICS system or CICS system group within the CICSplex
- A logical scope, as defined in a CICSPlex SM resource description (RESDESC)
You can set a default context and scope for your program by using one of these commands:
- CONNECT
- Defines a default context and scope when the API processing thread is established.
- QUALIFY
- Changes the default context and scope for subsequent commands issued on the thread.
Alternatively, you can specify context and scope values for
individual API commands. The following commands support one or both of the CONTEXT and SCOPE
options:
- CREATE
- GET
- LISTEN
- PERFORM OBJECT
- REMOVE
- UPDATE.