Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

@SYNTAX - Set test mode

&pagelevel(3)&pagelevel

The @SYNTAX statement can be used to activate or deactivate test mode for input in L mode. If the test mode is activated then statements input in L mode are not executed
(a syntax check of statements is always performed independently of the set test mode).

Operation

Operands

F mode, L mode

@SYNTAX

TESTMODE [={ ON | OFF } ]

TESTMODE=

The TESTMODE operand defines whether or not the entered statements are to be executed. Test mode only applies to input in L mode.

ON

The statements are subjected to a syntax check but are not executed (this
also applies to external statement routines functioning as a statement filter).
Exceptions to this rule are listed below. Data lines entered in L mode are not
taken over into the work file. Input which starts with at least one EDT
statement is checked for its syntax.

The following statements are always executed even if test mode is active:

  • @HALT, @LOG, @RETURN, @SYNTAX and @: (redefine the EDT
    statement symbol)

  • @STATUS. However, if test mode is active, the output is always sent to

    SYSOUT

The following statements and operands are not checked:

  • Calls of external statement routines (statements with user statement
    symbol)

  • The text operand in the statements @+, @-, @IF and @SET (format
    6). If the statement otherwise contains no errors then the message
    EDT0110 is output instead of EDT0100 in the dialog.

  • statements which contain indirect operand specifications.

OFF

Test mode is deactivated.

Test mode is always deactivated when EDT is started.

The @STATUS statement can be used to output the current setting for the test mode.

In L mode, if test mode is active, then not only is the invalid statement identified. The position at which the error was detected is also marked with : . If no errors are detected in a statement then the message EDT0100 is output in the dialog.

Note

If the syntax of the text operand is to be checked in the statements @, @+, @- and @SET (format 6) then the statement must be split into two statements, e.g. @3:@... should be split into the two statements @3 and @...