This section also describes the CA Ideal line commands that perform editing functions on individual lines or on a range of lines. Enter line commands in the six‑character sequence number field on the right or left of the screen. They can overlay the sequence number anywhere in the sequence number field. Edit multipliers are numbers attached to line commands that specify how many times to perform the editing function.
The following rules apply to using line commands.
0QQ100
For example, the following line commands delete line number 003100:
D03100 00D100 003D00 00310D
The SET EDIT MULTIPLIER command determines where to place the multiplier for a line command, to the right or to the left. When SET EDIT MULTIPLIER equals left, the same rules hold. For example, the following line commands repeat line 003100 three times:
3R3100 03R100
However, 003R00 only repeats the line once; the 3 is ignored because it did not change the digit 3 from the sequence number.
When SET EDIT MULTIPLIER equals right, if the cursor is not in the sequence number field, the same rules hold. For example, the following line command entries are correct for repeating line 003100 four times:
R43100 0R4100
However, line commands are cursor sensitive when SET EDIT MULTIPLIER equals right. That is, CA Ideal interprets a line command to include all numbers between the line command and the cursor. In the following example, line 400 is replicated four times. (The cursor position is underlined.)
000100 000200 000300 00R400
In the next example, line 400 is replicated forty times.
000100 000200 000300 00R400
Remember, line commands with the multiplier on the left are not cursor sensitive.
CA Ideal works this way because of the way in which the 3270 terminal works. When CA Ideal receives the panel with your editing commands, the 3270 returns the contents of the sequence number fields and whether the fields changed. This introduces an ambiguity‑if the digits in the sequence number area following your line command are not changed, is that because the digits were not typed or were the same digits typed over what was already there? If the sequence number field contains 000400, was the 40 typed or not?
CA Ideal has to make an assumption, and the assumption is that:
This usually works fine. However, you might, for example, type a 4 and inadvertently move the cursor one space to the right, giving you 40 repetitions of your line instead of 4. To help protect against such mistakes, CA Ideal imposes a limit of 100 as a multiplier, and does not allow multipliers on the DELETE, COPY, and MOVE commands.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|