W cannot be specified with
With this terminal command, you can copy parts of a screen into the
Natural stack (
%CS) or into the system variable
%CC). The protected data from a specific screen
line are copied field by field (except with option
The second letter in the command determines where the data are copied to:
Copies the data into the system variable
Copies the data into the Natural stack. The data are placed on top of the stack as input data (as with a
TOP DATA statement).
The third letter in the command determines the line from which the data are copied:
Copies all protected data from the line in which the cursor is positioned, beginning from the field in which the cursor is positioned.
Copies all protected data from line number
Moreover, you have the following options:
Copies all of a line, that is, not only the protected data, but also the modifiable fields; the line is not copied field by field, but as a whole (including field attributes).
Copies only the intensified fields from a line.
Copies only the fields of that color from a line.
Copies only one field, namely the field in which the cursor is positioned (regardless of its attributes). (
nn1 is not possible.)
Copies only the word (as delimited by blanks or special characters within a field) over which the cursor is positioned. (
%C...LnnW is not
Causes Natural to "stay" on the screen from which the data are copied, when the command is executed. This allows you to copy several different data from a screen, before you process the data.
When you enter the command directly as
(or assign it to a PF-key), it applies to the entire physical screen;
this means that you can copy from the entire screen, no matter whether the data
you wish to copy are inside or outside an active window.
When you issue the command via a
SET CONTROL statement, it
applies to the logical page built by Natural. In conjunction with the
stay option, this allows you to copy all data you need from an entire logical
page (which may be larger than the actual physical screen), before you process
See also Copying Data from a Screen (in the Programming Guide).