PURGE Statement

<purge statement>

── PURGE ── ( ── <file identifier> ── ) ───────────────────────────────┤

Explanation

The PURGE statement closes, purges, and releases the specified file to the system. If the file is a permanent disk file, it is removed from the disk directory, and the disk space is returned to the system.

The file to be purged must first be explicitly opened by the OPEN statement.

Examples

The following are examples of the PURGE statement:

PURGE (ALLFILES)
PURGE (ONEFILE)