Obtaining the statistics of a PDS member


To obtain the statistics of a PDS member:

IPartitionedDataSetMember partitionedDataSetMember = ...

try {
   // fetch the partitioned dataset member statistics from the
   // partitioned dataset member
    IPartitionedDataSetMemberStatistics partitionedDataSetMemberStatistics = partitionedDataSetMember
            .fetchStatistics();

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

 

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