An empty work file is a work file which contains no records. This is generated when
EDT is started or
when the work file is completely deleted with @DELETE (Format 2), @DROP or other statements which implicitly execute a @DELETE (Format 2) or
in F mode, when all the lines are deleted with the statement code
D
orM
or when all the lines are deleted with @DELETE (Format 1), @MOVE or @ON (Format 8 or 10).
In dialog operation, an empty work file can be recognized by the fact that it contains no records. In EDT procedures, it is possible to use the @IF statement (Format 3) to check whether a work file is empty.
It is possible to write an empty work file. In such cases, the character set configured for the work file may also be configured for the file depending on the operands set for the relevant statement.
The properties of a work file when EDT is started are indicated in the table in the preceding section. All the work file properties defined with the @PAR statement, with the exception of those explicitly listed below, are retained following a delete operation.
The table below collates the additional properties of a work file following deletion.
Properties | Values after deletion | Values after the deletion |
General | ||
Current character set for the |
| Not changed |
Work file occupied (only for work | None (apart from current) | Yes |
Work file empty | Yes | Yes |
Work file modified | No | Yes |
Save file present | Save file deleted | Save file deleted |
Line numbers | ||
Current line number (symbolic |
|
|
Current increment value |
| Not changed |
Lowest assigned line number |
|
|
Symbolic line number |
|
|
Highest assigned line number |
|
|
Symbolic line number |
|
|
Symbolic line number |
| Not changed |
Memory area | Empty | Not changed |
File processing | ||
Link to file name | No link | Not changed |
Link to open file | No link (implicit @CLOSE | Not changed (can be |
Input | ||
Unicode substitute character | Off | Not changed |
Data window-specific representation | ||
First line displayed in |
|
|
First column displayed in |
| Not changed |
First line displayed in |
|
|
First column displayed in |
| Not changed |
Other | ||
Indicator for hits on last @ON for | Off | Not changed |
Column for hits on last @ON for |
| Not changed |