The line numbers in the source are used. In the case of a copy operation, these are the lines to be copied from another work file.
When data is read from a file then, in the case of ISAM files, the line numbers are formed from the ISAM key (unless specified to the contrary). In the case of SAM files with the KEY
operand specified, the first eight characters of each record are interpreted as the 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 |
@COPY | Read in ISAM files with operand
| |
@COPY | No target specification | |
@GET | With operand specification
| |
@MOVE | No target specification | |
@ON | With operand specification | If the |
@OPEN | Open ISAM files with
| The work file must be empty before |
@OPEN | Open a copy of SAM | The work file must be empty before |
@READ | With specification of the |