Creating a PDS member
To create a single PDS member from an IDatasetCommandProvider:
IDataSetCommandProvider commandProvider = ...
String pdsName = ...
String memberName = ...
try {
commandProvider.createPDSMember(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 (MemberAlreadyExistsException e) {
// a member with the same name already exists in the PDS
...
}
To create a single PDS member from an IPartitionedDataset:
IPartitionedDataSet pds = ...
String memberName = ...
try {
pds.createMember(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 (MemberAlreadyExistsException e) {
// a member with the same name already exists in the PDS
...
}
Related topics
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.