The DFHCSDUP DELETE command

Delete a single resource definition in a group, all the resource definitions in a group, or all the group names in a group list.

DELETE syntax

Read syntax diagramSkip visual syntax diagramDELeteAllAtomservice( name)Bundle( name)CONnection( name)CORbaserver( name)DB2Conn( name)DB2Entry( name)DB2Tran( name)DJar( name)DOctemplate( name)Enqmodel( name)File( name)Ipconn( name)JOurnalmodel( name)JVmserver( name)LIbrary( name)LSRpool( name)MApset( name)MQconn( name)PARTItionset( name)PARTNer( name)PIpeline( name)PROCesstype( name)PROFile( name)PROGram( name)Requestmodel( name)Sessions( name)TCpipservice( name)TDqueue( name)TErminal( name)TRANClass( name)TRANSaction( name)TSmodel( name)TYpeterm( name)Urimap( name)Webservice( name)Group(groupname)List(listname)Remove

Description

Deleting a resource definition is different from removing a group from a list (see The DFHCSDUP REMOVE command). A deleted resource definition really does disappear from the CSD file.

Note:

When you DELETE the last resource in a group, the group is automatically deleted. An empty group cannot exist.

If a group is deleted, the group is not removed from all lists that contain it.

You cannot delete the definitions of groups and lists supplied by IBM®.

If you delete a list, the definitions of the resources within the groups contained in the list are not deleted. To do this, you must also delete each group individually.

Options

Group(groupname)
If this is specified alone, it indicates the name of the group to be deleted. If a resource is also specified, it indicates the group to which the resource belongs. Do not use a generic group name.
List(listname)
specifies the name of the list to be deleted. Do not use a generic list name.
Remove
If this is specified when the group is deleted, the group is removed from all lists that contained it unless UPGRADE commands are running.
Resource(name)
specifies the name of the resource to be deleted. Do not use a generic resource name.

This operand can be used only with the GROUP option.

Examples

A list in the primary CSD file called LISTA contains the following groups:
  • GB001
  • GB002

Group GB001 contains the following resource definitions:

TERMINAL(CON0)
TERMINAL(CON1)
TERMINAL(TEST)

The following command deletes the resource definition for the terminal TEST from group GB001:
DELETE TERMINAL(TEST) GROUP(GB001)
The following command deletes all the resource definitions in group GB002:
DELETE GROUP(GB002)
This leaves only group GB001 in the group list LISTA. The following command deletes all group names in the group list LISTA:
DELETE LIST(LISTA)
Note: The resource definitions in the groups in LISTA are not deleted.

Back to full list of commands: Resource management utility DFHCSDUP commands