Previous Topic: PASSWORD — Password-protected (yes/no)Next Topic: PDSORG — Partitioned data set organization


PCTUSED — Percent used (number)

For all processing of non-VSAM data sets, and reporting on VSAM components with SCAN REALVOLS, REPORT COMPONENTS, the value of PCTUSED is set to 0 if the DS1LSTAR field in the Format-1 DSCB for each data set or component is set to 0. If the DS1LSTAR field is not 0, this PCTUSED is set to the number of tracks in the DS1LSTAR divided by the tracks allocated to the data set, expressed as a percentage with a minimum of 1 and a maximum of 100.

This means that a 1,000 track non-VSAM data set that uses 1 track would have a PCTUSED of 1, not 0. If it were truly empty (a zero DS1LSTAR), it would have a PCTUSED of 0. Beware of data sets used by applications that do not maintain the DS1LSTAR field.

Note: PO data sets that have a member count of zero will not be selected, even if you specify PCTUSED,EQ,0, because the directory information makes the data set appear partially used.

VSAM components never appear to be empty.

For all other processing of VSAM clusters, the value of PCTUSED is set to 0 if the value of the High Used RBA field HURBADS in each cluster's catalog entry is 0. If the HURBA is not 0, this PCTUSED is set to the High Used RBA HURBADS divided by the High Allocated RBA HARBADS, expressed as a percentage with a minimum of 1 and a maximum of 100.

This means that a cluster that is nearly empty, or which has had records inserted and subsequently deleted, would have a PCTUSED of 1, not 0. If it were truly empty (a zero HURBADS), it would have a PCTUSED of 0.