Example of using the CICSPlex SM API to add a CSD group to a list
You can use the CICSPlex® SM API to add a CSD group to a list.
Adding a CSD group to a list
CONNECT CONTEXT(cicsplex_name)
SCOPE(cics_system_name) 1
GET OBJECT(CSDGROUP)
CRITERIA(NAME=csd_group_new.)
PERFORM SET ACTION(CSDADD)
PARM(TO_LIST(csd_list_name)
ADD_CSDGROUP(csd_group_old)
ADD_LOCATION(AFTER)) 2 1 The value of the SCOPE parameter must be the name of the CICS® system using the CSD in which the group to be added, and the list that it is added to, are defined. For a PERFORM SET command the SCOPE parameter must be specified as the active scope for the thread because the PERFORM command must have the same scope as the GET command and it cannot be specified explicitly on the command. The SCOPE parameter is specified by a CONNECT or QUALIFY command.
2 The example adds the group, csd_group_new after the csd_group_old in
the list csd_list_name, as specified by ADD_LOCATION(AFTER).