Lines are inserted starting at the line number specified as an operand in the statement. The line numbers of the other lines that are to be inserted are determined by adding any increment specified as an operand in the statement to the line number of the last line to be inserted.
If no increment is specified in the statement then it is defined implicitly on the basis of the specified line number (see section “Implicit increment assignment”) using the same procedure as for implicitly defining the current increment on the basis of the current line number. Any lines with the same line numbers present in the target file are overwritten. The new current line number is formed from the line number of the last line plus the current increment if the line number of the last line has changed. Otherwise it remains unchanged.
The following table indicates the EDT statements for which this procedure is used (in the case of some EDT statements, other procedures may be used in the event of a different format or different operands).
Statement | Comments on operands | General comments |
@COMPARE | If the
| |
@COPY | With target specification | |
@FSTAT | With target specification | |
@GETJV | With output to a line | Only one line is generated. |
@GETVAR | With output to a line | Only one line is generated. |
@MOVE | With target specification | |
@SHOW | With target specification | |
@STAJV | With target specification | |
@STATUS | With target specification | |
@SYSTEM | With target specification |