HSM does not directly display a command to backup the dataset size when managing host backup data. This article uses a series of HSM commands combined with Dfsort to filter out the backup dataset name and ultimately output the size of the backup dataset to facilitate storage administrators to adjust host data management policies.
Please note: The HSM experimental environment used in this article is relatively simple, and the HSM backs up fewer datasets (around 5,000 datasets). In a real-world environment, HSM can have a lot of data sets backed up.
Step 1, use the list BCDs command to list all backed-up dataset information.
Reference job Step:
S1LSTBCD EXEC pgm=ikjeft01
Systsprt DD sysout=*
Systsin DD *
Hsend LIST dsname BCDs ODS (JACKYZ1. Dfhsm. D130606. BCDS)
//*
Explanation of the Order:
Hsend-Enter HSM command from TSO Terminal
List-Lists the appropriate information from MCDS, BCDs, or OCDs
DSName-Listing Data set information
BCDs-Backup Data set
ODS (JACKYZ1. Dfhsm. D130606. BCDS)-The output dataset name after the list command is executed. JACKYZ1 is the TSO USERID used in this article, the user can change the appropriate output dataset name according to the actual situation.
After running, the list of backed-up datasets is exported to JACKYZ1.DFHSM.D130606.BCDS. The output format is as follows Figure 1-1:
Figure 1-1