
Deleting Datasets (TSIDDEL)
8-8 User Reference
The following job creates the SORTWK1 dataset in the first step. The 'D' option is included
on the DLBL to qualify the dataset for deletion. In the second step, TSIDDEL deletes the
SORTWK1 file and frees the space it occupied.
.
.
.
// DLBL SORTWK1,'$$$.SORTWK1,(D)'
// EXTENT SYS003
// EXEC SORT
[sort control statements]
/*
// EXEC TSIDDEL
SORTWK1
/*
.
.
.
When you use TSIDDEL as a subroutine, you must use a parameter list to specify which file
to delete. In the parameter list, place the 1 to 7-character DTF name or DD name as it appears
on the dataset's label statement. You can delete only one file per call.
Control is passed to the subroutine using standard IBM linkage conventions. TSIDDEL does
not provide any return codes or issue any messages.
...
CALL TSIDDEL,(FILEID)
...
FILEID DC CL7'SORTWK1'
...
...
WORKING-STORAGE SECTION.
10 FILEID PIC X(7) VALUE 'SORTWK1'.
...
PROCEDURE DIVISION.
...
CALL 'TSIDDEL' USING FILEID.
...
Example
Using TSIDDEL as
a Subroutine
Assembler
Example
COBOL Example
Comentarios a estos manuales