This example shows how to use the DELETE line operator to delete
two data sets.
- Enter the DELETE line operator in the line operator column of
the data sets that you want to delete. Enter the first line operator
in normal mode so that you see the DELETE Entry Panel. Enter the second
line operator in last-use mode, as shown in Figure 1.
Figure 1. Entering
the DELETE Line Operator Panel List Dataset Utilities Scroll Help
-------------------------------------------------------------------------------
DATA SET LIST RESTORE JOB CREATED
Command ===> SCROLL ===> DATA
Entries 1-7 of 7
Enter Line Operators Below: Data Columns 3-5 of 41
LINE ALLOC ALLOC % NOT
OPERATOR DATA SET NAME SPACE USED USED
---(1)---- ------------(2)------------ ---(3)--- ---(4)--- -(5)-
*COPY USER1.DEB.LISTING1 --------- --------- ---
*COPY USER1.ISMF.SYSIN.D880125. 46K 40K 13
*COPY T105441
*COPY USER1.ISPFILE 139K 93K 33
*RESTORE USER1.ISPPROF 185K 185K 0
delete USER1.SPFLOG1.LIST 371K 371K 0
== PY USER1.SPFTEMP1.CNTL --------- --------- ---
*COPY USER1.SPF3.LIST 788K 788K 0
---------- ------ ----------- BOTTOM OF DATA ----------- ------ ----
- Press the ENTER key. ISMF displays the DELETE Entry Panel as shown
in Figure 2.
Figure 2. Completing the DELETE Entry Panel Panel Utilities Help
-------------------------------------------------------------------------------
DELETE ENTRY PANEL
Command ===>
Optionally Specify one or more to Uncatalog and Delete
Data Set: USER10.WORK.TEXT
Enter "/" to select option / Scratch Data Set
/ Clear Data Set with Zeroes
/ Delete even if Unexpired
Data Set Password . . . . . (if password protected)
Use ENTER to Perform DELETE;
Use HELP Command for Help; Use END Command to Exit.
Assume that backup versions exist for both of the cataloged
data sets being deleted. Complete the DELETE Entry Panel with the
values shown.
- Press the ENTER key. ISMF deletes the data set on the list with
the DELETE line operator entered against it and displays the DELETE
Confirmation Panel for the second data set, as shown in Figure 3.
Figure 3. Confirmation Panel Displayed When DELETE Is Used
in Last-Use Mode Panel Utilities Help
-------------------------------------------------------------------------------
DELETE CONFIRMATION PANEL
Command ===>
******************************************************************************
******************************************************************************
******************************************************************************
******************************************************************************
******* ********
******* Confirm Delete of ********
******* Data Set: USER1.SPFTEMP1.CNTL ********
******* ********
******* NOTE: BACKUP VERSIONS OF THIS DATA SET EXIST. USE ENTER ********
******* TO PERFORM DELETE OF THE ONLINE DATA SET AND VIEW ********
******* BACKUP VERSIONS ********
******* ********
******************************************************************************
******************************************************************************
******************************************************************************
******************************************************************************
Use ENTER to Perform DELETE;
Use HELP Command for HELP; Use END Command to Cancel DELETE.
- Press the ENTER key. ISMF deletes the data set with the DELETE
line operator in last-use mode.
When both data sets have been
deleted, the list is redisplayed, as shown in Figure 4.
Figure 4. Successful
Completion for DELETE Panel List Dataset Utilities Scroll Help
-------------------------------------------------------------------------------
DATA SET LIST
Command ===> SCROLL ===> DATA
Entries 1-7 of 7
Enter Line Operators Below: Data Columns 3-5 of 41
LINE ALLOC ALLOC % NOT
OPERATOR DATA SET NAME SPACE USED USED
---(1)---- ------------(2)------------ ---(3)--- ---(4)--- -(5)-
*COPY USER1.DEB.LISTING1 --------- --------- ---
*COPY USER1.ISMF.SYSIN.D880125. 46K 40K 13
*COPY T105441
*COPY USER1.ISPFILE 139K 93K 33
*RESTORE USER1.ISPPROF 185K 185K 0
*DELETE USER1.SPFLOG1.LIST 371K 371K 0
*DELETE USER1.SPFTEMP1.CNTL --------- --------- ---
*COPY USER1.SPF3.LIST 788K 788K 0
---------- ------ ----------- BOTTOM OF DATA ----------- ------ ----
The asterisks in front of the DELETE line operators in
the line operator column indicate that the data sets have been successfully
deleted.