9.6.9 DISPOSE Keyword

The DISPOSE (or DISP) keyword determines the disposition of the file connected to a logical unit when the unit is closed. It takes one of the following forms:

DISPOSE = dis
DISP = dis
dis
Is a character expression with one of the following values:

  • 'KEEP' or 'SAVE': Retain the file after the unit is closed.

  • 'DELETE': Delete the file after the unit is closed.

  • 'PRINT': Submit the file to the system line printer spooler and retain it.

  • 'PRINT/DELETE': Submit the file to the system line printer spooler and then delete it.

  • 'SUBMIT': Submit the file to the batch job queue and retain it.

  • 'SUBMIT/DELETE': Submit the file to the batch job queue and then delete it.

A read-only file cannot be deleted. A scratch file cannot be saved, printed, or submitted. You can only use 'PRINT' and 'PRINT/DELETE' on sequential files.

The default is 'KEEP'.


Previous Page Next Page Table of Contents