At any time there is precisely one work file which is referred to as the current work file. Data is entered and EDT statements are executed in the current work file if no other work file is explicitly specified in the statement).
In F mode, a section of the current work file is usually displayed on the screen. The number of the current work file is displayed in the status bar. It is possible to move the displayed section of the work file (see the statements @SETF and +, -, ++, --, >, <, <<) or change the current work file (see statements @SETF, $0..$22 and 0..22).
It is also possible to divide the work window and display sections from two work files simultaneously (see the section on the F mode). In this case, the current work file switches between the two displayed work files. When a statement or statement code is processed (see section “Processing sequence”) the current work file is always considered to be the work file containing the statement line or statement code column from which the current statement or statement code comes. When input in the data window is processed, the current work file is considered to be the work file in whose data window the input is made.
In L mode, the number of the current work file can be displayed by means of the @PROC statement. The current work files are switched using the statements @SETF, @PROC and @END. However, an active work file (which contains an active @DO
procedure) can never be made into the current work file.
When EDT is started, work file 0
is the current work file.