DUPLICAT

Read syntax diagramSkip visual syntax diagram DUPlicat 11n1target

Purpose

Use the DUPLICAT subcommand to duplicate one or more lines, starting with the current line, for a specified number of times. The new line(s) is inserted immediately after the original line(s).

Operands

n
specifies the number of times the line(s) is to be duplicated. If n is not specified, the current line is duplicated once.
target
defines the number of lines to be duplicated. Duplication starts with the current line and continues up to but does not include the target line. If target is not specified, only the current line is duplicated.

You can specify a target as an absolute line number, a relative displacement from the current line, a line name, or a string expression. For more information on targets, see LOCATE and z/VM: XEDIT User's Guide.

Responses

The last line duplicated becomes the new current line.

Messages and Return Codes

520E
Invalid operand: operand [RC=5]
543E
Invalid number: number [RC=5]
546E
Target not found [RC=2]
557S
No more storage to insert lines [RC=4]

where return codes are:

0
Normal
1
TOF or EOF reached
2
Target line not found
4
No more storage to continue duplicating
5
Invalid operand or number
6
Subcommand rejected in the profile due to LOAD error, or QUIT subcommand has been issued in a macro called from the last file in the ring