z/OS DFSMShsm Managing Your Own Data
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using ISMF

z/OS DFSMShsm Managing Your Own Data
SC23-6870-00

The following steps present an example of how to use the HBDELETE line operator to delete backup versions of a data set. In our example, we have used USER20.SAMPLE.DATASET as a sample data set name.

  1. Generate a list of data sets as explained in Methods of performing tasks.
  2. Enter the HBDELETE line operator in the line operator column next to USER20.SAMPLE.DATASET as described in Figure 1.
    Figure 1. Data Set List Panel with HBDELETE Selected
       Panel  List  Dataset  Utilities  Scroll  Help
     ------------------------------------------------------------------------------
                                      DATA SET LIST
                                                             Entries 1-1 of 1
     Enter Line Operators below:                             Data Columns 3-6 of 39
     
          LINE                                    ALLOC    ALLOC   % NOT  COMPRESSED
          OPERATOR          DATA SET NAME         SPACE    USED    USED   FORMAT
         ---(1)----  ------------(2)------------ --(3)--  --(4)--  -(5)-  ---(6)----
                     USER20.CLIST.CLIST               46       46      0  ???
                     USER20.DFP220.DGTTLIB            46       46      0  ???
                     USER20.ISMF.DGTLLIB              46       46      0  ???
                     USER20.ISMF.DGTPLIB              46       46      0  ???
                     USER20.ISMF.DUMP               4684     4356      7  ???
                     USER20.ISPFILE                   46       46      0  ???
                     USER20.ISPPROF                   93       93      0  ???
         HBDELETE    USER20.SAMPLE.DATASET           468       46     90  ???
                     USER20.SPFLOG1.LIST            2623     1311     50  ???
                     USER20.TEMP.DATASET            4684       93     98  ???
         ----------  ------  -----------  BOTTOM OF  DATA  -----------  ------  ----
     
     Command ===>                                                  Scroll ===> HALF
      F1=Help    F2=Split   F3=End     F4=Return  F7=Up      F8=Down    F9=Swap
     F10=Left   F11=Right  F12=Cursor

    The HBDELETE Entry panel appears.

  3. Complete the HBDELETE Entry panel as described in HBDELETE Entry Panel. Up to five panels can be displayed. In each panel, the backup version, date, and time of the backup are displayed as two lists with headers. If Y is entered for the DELETE ALL VERSIONS field, only one HBDELETE Entry panel is displayed.
    Note: Retained backup versions are not displayed on these panels. Entering Y for the DELETE ALL VERSIONS field will delete all active and retained backup copies. To delete an individual retained backup copy, use the DFSMShsm HLIST DSNAME(dsname) BCDS command to obtain a complete list of the active and retained backup copies of this data set. Then issue the HBDELETE command with the DATE and TIME keywords.

HBDELETE Entry Panel

   Panel  Utilities  Scroll  Help
 ------------------------------------------------------------------------------
                             HBDELETE ENTRY PANEL                  Page 1 of 5
 
 Specify Y to Delete all or individual Backup Versions for
  Data Set: USER20.SAMPLE.DATASET
  Delete All Versions  . . N  (Y or N)
  Data Set Password  . . .           (if password protected)
 
 Version  Date    Time    Delete(Y/N) |  Version  Date    Time    Delete(Y/N)
 -------------------------------------|---------------------------------------
   100    94100   00:58       N       |    099    94099   12:36       N
   098    94098   00:58       N       |    097    94097   12:36       N
   096    94096   00:58       N       |    095    94095   12:36       N
   094    94094   00:58       N       |    093    94093   12:36       N
   092    94092   00:58       N       |    091    94091   12:36       N
   090    94090   00:58       N       |    089    94089   12:36       N
   088    94088   00:58       N       |    087    94087   12:36       N
   086    94086   00:58       N       |    085    94085   12:36       N
   084    94084   00:58       N       |    083    94083   12:36       N
 
 Command ===>
  F1=Help    F2=Split   F3=End     F4=Return  F7=Up      F8=Down    F9=Swap
 F10=Left   F11=Right  F12=Cursor
   Panel  Utilities  Scroll  Help
 ------------------------------------------------------------------------------
                             HBDELETE ENTRY PANEL                  Page 2 of 5
 
 Specify Y to Delete individual Backup Versions for
  Data Set: USER20.SAMPLE.DATASET
 
 Version  Date    Time    Delete(Y/N) |  Version  Date    Time    Delete(Y/N)
 -------------------------------------|---------------------------------------
   082    94082   00:58       N       |    081    94081   12:36       N
   080    94080   00:58       N       |    079    94079   12:36       N
   078    94078   00:58       N       |    077    94077   12:36       N
   076    94076   00:58       N       |    075    94075   12:36       N
   074    94074   00:58       N       |    073    94073   12:36       N
   072    94072   00:58       N       |    071    94071   12:36       N
   070    94070   00:58       N       |    069    94069   12:36       N
   068    94068   00:58       N       |    067    94067   12:36       N
   066    94066   00:58       N       |    065    94065   12:36       N
   064    94064   00:58       N       |    063    94063   12:36       N
   062    94062   00:58       N       |    061    94061   12:36       N
 
 Command ===>
  F1=Help    F2=Split   F3=End     F4=Return  F7=Up      F8=Down    F9=Swap
 F10=Left   F11=Right  F12=Cursor
   Panel  Utilities  Scroll  Help
 ------------------------------------------------------------------------------
                             HBDELETE ENTRY PANEL                  Page 3 of 5
 
 Specify Y to Delete individual Backup Versions for
  Data Set: USER20.SAMPLE.DATASET
 
 Version  Date    Time    Delete(Y/N) |  Version  Date    Time    Delete(Y/N)
 -------------------------------------|---------------------------------------
   060    94060   00:58       N       |    059    94059   12:36       N
   058    94058   00:58       N       |    057    94057   12:36       N
   056    94056   00:58       N       |    055    94055   12:36       N
   054    94054   00:58       N       |    053    94053   12:36       N
   052    94052   00:58       N       |    051    94051   12:36       N
   050    94050   00:58       N       |    049    94049   12:36       N
   048    94048   00:58       N       |    047    94047   12:36       N
   046    94046   00:58       N       |    045    94045   12:36       N
   044    94044   00:58       N       |    043    94043   12:36       N
   042    94042   00:58       N       |    041    94041   12:36       N
 
 Command ===>
  F1=Help    F2=Split   F3=End     F4=Return  F7=Up      F8=Down    F9=Swap
 F10=Left   F11=Right  F12=Cursor
   Panel  Utilities  Scroll  Help
 ------------------------------------------------------------------------------
                             HBDELETE ENTRY PANEL                  Page 4 of 5
 
 Specify Y to Delete individual Backup Versions for
  Data Set: USER20.SAMPLE.DATASET
 
 Version  Date    Time    Delete(Y/N) |  Version  Date    Time    Delete(Y/N)
 -------------------------------------|---------------------------------------
   040    94040   00:58       N       |    039    94039   12:36       N
   038    94038   00:58       N       |    037    94037   12:36       N
   036    94036   00:58       N       |    035    94035   12:36       N
   034    94034   00:58       N       |    033    94033   12:36       N
   032    94032   00:58       N       |    031    94031   12:36       N
   030    94030   00:58       N       |    029    94029   12:36       N
   028    94028   00:58       N       |    027    94027   12:36       N
   026    94026   00:58       N       |    025    94025   12:36       N
   024    94024   00:58       N       |    023    94023   12:36       N
   022    94022   00:58       N       |    021    94021   12:36       N
 
 Command ===>
  F1=Help    F2=Split   F3=End     F4=Return  F7=Up      F8=Down    F9=Swap
 F10=Left   F11=Right  F12=Cursor
   Panel  Utilities  Scroll  Help
 ------------------------------------------------------------------------------
                             HBDELETE ENTRY PANEL                  Page 5 of 5
 
 Specify Y to Delete individual Backup Versions for
  Data Set: USER20.SAMPLE.DATASET
 
 Version  Date    Time    Delete(Y/N) |  Version  Date    Time    Delete(Y/N)
 -------------------------------------|---------------------------------------
   020    94020   00:58       N       |    019    94019   12:36       N
   018    94018   00:58       N       |    017    94017   12:36       N
   016    94016   00:58       N       |    015    94015   12:36       N
   014    94014   00:58       N       |    013    94013   12:36       N
   012    94012   00:58       N       |    011    94011   12:36       N
   010    94010   00:58       N       |    009    94009   12:36       N
   008    94008   00:58       N       |    007    94007   12:36       N
   006    94006   00:58       N       |    005    94005   12:36       N
   004    94004   00:58       N       |    003    94003   12:36       N
   002    94002   00:58       N       |    001    94001   12:36       N
 
 Command ===>
  F1=Help    F2=Split   F3=End     F4=Return  F7=Up      F8=Down    F9=Swap
 F10=Left   F11=Right  F12=Cursor

On the DATA SET LIST panel, the asterisk next to the HBDELETE in the line operator column (Figure 2) indicates that the deletion was successful.

Figure 2. Data Set List Panel After Function Completes
   Panel  List  Dataset  Utilities  Scroll  Help
 ------------------------------------------------------------------------------
                                  DATA SET LIST
                                                         Entries 1-1 of 1
 Enter Line Operators below:                             Data Columns 3-6 of 39
 
      LINE                                    ALLOC    ALLOC   % NOT  COMPRESSED
      OPERATOR          DATA SET NAME         SPACE    USED    USED   FORMAT
     ---(1)----  ------------(2)------------ --(3)--  --(4)--  -(5)-  ---(6)----
                 USER20.CLIST.CLIST               46       46      0  ???
                 USER20.DFP220.DGTTLIB            46       46      0  ???
                 USER20.ISMF.DGTLLIB              46       46      0  ???
                 USER20.ISMF.DGTPLIB              46       46      0  ???
                 USER20.ISMF.DUMP               4684     4356      7  ???
                 USER20.ISPFILE                   46       46      0  ???
                 USER20.ISPPROF                   93       93      0  ???
     *HBDELETE   USER20.SAMPLE.DATASET           468       46     90  ???
                 USER20.SPFLOG1.LIST            2623     1311     50  ???
                 USER20.TEMP.DATASET            4684       93     98  ???
     ----------  ------  -----------  BOTTOM OF  DATA  -----------  ------  ----
 
 Command ===>                                                  Scroll ===> HALF
  F1=Help    F2=Split   F3=End     F4=Return  F7=Up      F8=Down    F9=Swap
 F10=Left   F11=Right  F12=Cursor

For more information on using DFSMShsm/ISMF line operators, see z/OS DFSMS Using the Interactive Storage Management Facility or use the online help provided with ISMF.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014