Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

# - Output the last statement

&pagelevel(3)&pagelevel

The # statement can be used to output one of the last statements already executed by EDT in the statement line again. This does not apply to any of the scrolling statements or the statements used to change work file.

Operation

Operands

F mode

[n] #

n

n specifies the depth, i.e. how far back in the processing sequence the
statement to be output lies. Values between 1 and 2048 are permitted for n.

The # or 1# statement outputs the last statement already executed by EDT in the statement line again. 2# outputs the second last statement. If the # statement is entered more than once successively then the pointer in the statement buffer is preset to the specified position each time. If the start of the buffer has been reached then the statement line remains empty. If a # statement then follows, the position returns to the last saved statement (end of the buffer). After each entry other than # or after an empty entry, the end of the buffer is taken as the starting point again.

If the statement to be displayed is longer than the command line then up to 3 command lines can be displayed. If even then it is not possible to display the statement in full, it is truncated and no message is issued.

If a communications character set other than the current one was defined when a statement was entered then the statement is converted accordingly for output in the statement line. If, in such a case, it is not possible to convert individual characters then the message EDT5453 is issued. The statement is output nevertheless and the non-converted characters are replaced by question marks '?'.

The statement buffer can accommodate a maximum of 2048 statements independently of their various lengths.

At least one character in the statement line must be overwritten, modified or added if the content of the line is to be sent as a statement.

This operation takes no account of whether a statement was entered in the upper or lower part of a split screen. Statements are stored in the statement buffer independently of the work file to which the statement was applied. Statements in a statement sequence (statements separated by ';') are stored individually.

If a # statement is entered in a statement sequence then after # has been executed, processing is aborted and the last executed statement is output. Any statements located after # in the statement sequence are not executed.

Note

In F mode, the statement # followed by operands is an abbreviation of the @SETF statement and is used to position the data window. This statement should not be confused with the one described here.

The statement @SHIH (Show Input History) can be used to output the entire EDT statement buffer to a work file. It is then possible to use statement code K to copy individual statements into the statement line.