Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

@DROP - Delete work files

&pagelevel(3)&pagelevel

The @DROP statement completely deletes the specified work files.

Operation

Operands

L mode

@DROP

{ procnr[,...] | ALL }

procnr

The number of the work file (1..22) that is to be deleted. Any number of
work files can be specified.

ALL

Work files (1..22) are deleted.

The @DROP statement may only be entered if the current work file is work file 0. @DROP is also not permitted in @DO procedures.

The work files are deleted without a confirmation query, irrespective of their content. If files have been opened with @OPEN or @XOPEN in the work files that are to be deleted then these are implicitly closed.

Note

The @DROP statement has the same effect as deleting each of the specified work files with @DELETE (format 2) and removes the specified work files from the set of work files in use (see @PROC statement).
Opened files or library elements should first be written back and closed (see @CLOSE) as otherwise any changes will be lost.

Example 1

   1.     @PROC USED ---------------------------------------------------- (1)
<03>     1.0000 TO    3.0000
<05>     1.0000 TO    1.0000
<08>     1.0000 TO    1.0000
<10>     1.0000 TO    1.0000
<14>     1.0000 TO    1.0000
   1.     @DROP 10 ------------------------------------------------------ (2)
   1.     @PROC USED
<03>     1.0000 TO    3.0000
<05>     1.0000 TO    1.0000 -------------------------------------------- (3)
<08>     1.0000 TO    1.0000
<14>     1.0000 TO    1.0000
   1.     @DROP 8,5 ----------------------------------------------------- (4)
   1.     @PROC USED
<03>     1.0000 TO    3.0000 -------------------------------------------- (5)
<14>     1.0000 TO    1.0000
   1.
(1)

The work files 1..22 that are in use should be output. In this case, these are the work files 3, 5, 8, 10, 14.

(2)Work file 10 is deleted and released.
(3)@PROC USED reports that only the work files 3, 5, 8, 14 are still in use.
(4)

@DROP can also be used to delete and release multiple work files such as, for example, 5 and 8 here.

(5)This only leaves work files 3 and 14.


Example 2

   1.     @PROC USED ---------------------------------------------------- (1)
<03>     1.0000 TO    3.0000
<14>     1.0000 TO    1.0000
   1.     @DROP ALL ----------------------------------------------------- (2)
   1.     @PROC USED
% EDT0907 NO WORK FILES USED -------------------------------------------- (3)
   1.
(1)All the work files that are in use should be output.
(2)The work files 1..22 are deleted and released.
(3)None of the work files 1 to 22 is now in use.