COBOL/400 Language Help


DROP Statement

Description
The DROP statement releases a program device acquired by a TRANSACTION file.

Program devices you specify in a DROP statement must have been acquired by the TRANSACTION file, either through an explicit ACQUIRE or through an implicit ACQUIRE at OPEN time.

After successful execution of the DROP statement, the program device is no longer available for input or output operations through the TRANSACTION file. The device may be reacquired if necessary. The contents of the record area associated with a released program device are no longer available, even if the device is reacquired.

If the DROP statement is unsuccessful, any applicable USE AFTER EXCEPTION/ERROR procedures are executed.

->->---DROP--*-identifier-*--FROM---file-name-----------------><-
           *-literal----*
 


[ Top of Page | Previous Page | Next Page | Table of Contents ]