z/OS ISPF Services Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


TBERASE—erase a table

z/OS ISPF Services Guide
SC19-3626-00

The TBERASE service deletes a table from the table output library. The table output library must be allocated before invoking this service.

The table must not be open in WRITE mode when this service is invoked.

Command invocation format

Read syntax diagramSkip visual syntax diagram
>>-ISPEXEC--TBERASE--table-name--+------------------+----------><
                                 '-LIBRARY(library)-'   

Call invocation format

Read syntax diagramSkip visual syntax diagram
>>-CALL--ISPEXEC--(buf-len,--buffer);--------------------------><

or

Read syntax diagramSkip visual syntax diagram
>>-CALL--ISPLINK--('TBERASEb'--,--table-name-------------------->

>--,-+-library-+-);--------------------------------------------><
     '-'b'-----'      

Parameters

table-name
Specifies the name of the table to be erased.
library
Specifies the name of a DD statement or LIBDEF lib-type that defines the library in which the table exists. If this parameter is omitted, the default is ISPTABL.
buf-len
Specifies a fullword fixed binary integer containing the length of "buffer".
buffer
Specifies a buffer containing the name of the service and its parameters in the same form as they would appear in an ISPEXEC call for a command procedure.

Return codes

These return codes are possible:
 0
Normal completion.
 8
Table does not exist in the output library.
12
Table in use; ENQ failed.
16
Table output library not allocated.
20
Severe error.

Example

Erase the table TELBOOK from the table library.
ISPEXEC TBERASE TELBOOK
Set the program variable BUFFER to contain:
TBERASE TELBOOK
Set program variable BUFLEN to the length of the variable BUFFER. Enter the command:
CALL ISPEXEC (BUFLEN, BUFFER);

or alternately

CALL ISPLINK ('TBERASE ','TELBOOK ');

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014