Package com.blackhillsoftware.dcollect
Instead of using the SmfRecordReader class to read records,
use VRecordReader
which is a generalized class
for reading variable length records.
Then create DcollectRecords
using
DcollectRecord.from(com.blackhillsoftware.smf.VRecord)
.
You can then use DcollectRecord.dcurctyp()
to check the record type
and create the specific type as required e.g. ActiveDataset.from(com.blackhillsoftware.smf.VRecord)
try (VRecordReader reader = VRecordReader.fromName("//DD:INPUT"))
{
for (VRecord record : reader)
{
DcollectRecord dcr = DcollectRecord.from(record);
if (dcr.dcurctyp() == DcollectType.A)
{
ActiveDataset ds x = ActiveDataset.from(dcr);
// process record
}
}
}
Space Calculations
Some DCOLLECT space fields are specified in KB, some in MB, and some in either KB or MB depending on a flag.
Fields that are (or may be) specified in KB have an equivalent method with a MB suffix providing the value in MB (i.e. KB / 1024) for convenience. These methods return floating point values to avoid rounding to zero for small KB values.
Examples:
-
ClassDescriptionActive Dataset recordAggregate Group recordAggregate Group dataset and member nameBackup Dataset recordBase Configuration recordName typeSCDS Status valuesBase Configuration System Features informationBase Configuration System InformationCache names recordDASD Capacity Planning recordData Class recordAVGREC space allocation valuesBackup-While-Open valuesCompaction typeDataset typeSphere RecoverabilityMedia TypeRecord BiasRecording TechnologyWhether data records can span a CICommon information for all DCOLLECT recordsDCOLLECT Output Record Types.OAM Drive recordDrive StatusDrive status values (requested/current)OAM Library recordDefault UseLibrary deviceEject DefaultLibrary StatusLibrary typeLibrary Status values (requested/current)Management Class recordAdmin or user backupCopy techniqueExpiry Date FormatExpiry actionCommand or auto migrationMigrated Dataset recordAccounting Information from the ACS routinesStorage Group Volume recordVolume MVS StatusVolume SMS StatusSMS Volume Status values (SMS/MVS/Confirmed SMS)Storage Class recordStorage class accessibilityStorage Class AvailabilityStorage Class BiasStorage Group recordStorage Group Library informationStorage Group Status values (SMS/Confirmed SMS)Storage Group StatusStorage Group TypeTape Capacity Planning recordTape Capacity Planning typeVolume recordPhysical StatusVSAM Association record