Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
@CHECK (format 1) - Check lines
&pagelevel(3)&pagelevel
This statement can be used to log every line that is created or modified in a work file or a string variable by a statement. In interactive mode, the line in question is output to SYSOUT
and in batch mode it is output to SYSLST
. The @CHECK statement can also be used to check the line length (number of characters per line) while taking account of tabulator expansion.
Operation | Operands | L mode |
@CHECK | |
ON | Activates CHECK mode (default value). If CHECK mode is activated then every line that is created or modified in a work file or a string variable by one of the following statements is written to SYSOUT : @COLUMN, @COPY (format 2), @CREATE, @MOVE, @ON (formats 7 to 10), @PREFIX, @SET (formats 2, 4 and 5), @SEPARATE, @SEQUENCE (formats 1 and 2), @SUFFIX. |
OFF col | Deactivates CHECK mode. Specifies the number of characters per line for the check of the line length. In particular, it displays any cases in which the predefined line length is exceeded due to possible tabular expansion EDT checks the number of characters in every line which is newly entered or created by one of the following statements: @+, @–, @IF, @SET (format 6). The number of characters per line is checked independently of the current CHECK mode setting. If a line is longer than the value specified in col then the line is nevertheless created and EDT outputs the message EDT2901 to indicate that the predefined number of characters per line has been exceeded. The default value of col corresponds to the maximum possible value of 32768 characters per line while the minimum possible value of col is 1 character per line. The col value can also be modified using the @TABS statement. |
When EDT starts, CHECK
mode is deactivated.
The @CHECK statement is only effective in L mode. Any temporary switch to F mode deactivates the CHECK
mode. This does not change the current value of col
.
Specifying ON
or OFF
has no effect on the current value of col
. Consequently, the current value of col
is not modified if only ON
or OFF
is specified. To reset col
to the default value 32768, it is necessary to specify this default value explicitly (@CHECK [ON,]32768 or @CHECK OFF,32768).