Example of using the CICSPlex SM API to delete a CSD resource from a group

You can use the CICSPlex® SM API to delete a resource from a group.

Deleting a CSD resource from a group

This example shows the deletion of a CICS transaction definition trandef_name, defined to a CSD group, csd_group_name, in the CSD used by CICS System, cics_system_name.

CONNECT CONTEXT(cicsplex_name)    
        SCOPE(cics_system_name)         1 

GET OBJECT(TRANDEF)               
    CRITERIA(NAME=trandef_name.)
    PARM(CSDGROUP(csd_group_name).)     2 
    RESULT(result_set_token)

FETCH INTO(trandef_record_buffer)
      LENGTH(trandef_record_length)
      RESULT(result_set_token)    

REMOVE OBJECT(TRANDEF)
       FROM(trandef_record_buffer)
       LENGTH(trandef_record_length)
       PARM(CSD.)                       3 

 1  The value of the SCOPE parameter for both the GET and REMOVE commands must be the name of the CICS® system which is using the CSD.

 2  The CSDGROUP parameter on the transaction definition, TRANDEF, identifies the resource as being defined to the CSD, and specifies the CSD group in which it is defined.

 3  The CSD parameter identifies the CICS transaction definition record, which was retrieved by the FETCH command, as a CSD resource. The transaction definition record contains both the name of the transaction definition and the CSD group it is currently defined in, and from which it will be deleted.



CPSMexample6.html | Timestamp icon Last updated: Sunday, 4 June 2017