Deleting a PDS Member


To delete a single PDS member from an IDatasetCommandProvider:

IDataSetCommandProvider commandProvider = ...
String pdsName = ...
String memberName = ...

try {
    commandProvider.deletePDSMember(pdsName, memberName);

    ...
} catch (DataSetAccessException e) {
   // the user does not have access to this dataset
    ...
} catch (DataSetInUseException e) {
   // the dataset is enqueued by another user or job
    ...
} catch (DataSetMigratedException e) {
   // the dataset is migrated
    ...
} catch (DataSetNotFoundException e) {
   // the dataset could not be found or is not a PDS
    ...
} catch (MemberInUseException e) {
   // the member is enqueued by another user or job
    ...
} catch (MemberNotFoundException e) {
   // the member could not be found
    ...
}

To delete a single PDS member from an IPartitionedDataset:

IPartitionedDataSet pds = ...
String memberName = ...

try {
    pds.deleteMember(memberName);

    ...
} catch (DataSetAccessException e) {
   // the user does not have access to this dataset
    ...
} catch (DataSetInUseException e) {
   // the dataset is enqueued by another user or job
    ...
} catch (DataSetMigratedException e) {
   // the dataset has been migrated since it was first retrieved
    ...
} catch (DataSetNotFoundException e) {
   // the dataset can no longer be found
    ...
} catch (MemberInUseException e) {
   // the member is enqueued by another user or job
    ...
} catch (MemberNotFoundException e) {
   // the member could not be found
    ...
}


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*