This example illustrates how to copy and paste text with sequence numbers in the COBOL
Editor and how the Enable Smart Copy preference affects a copy-and-paste
operation.
Before you begin
Disable the Smart Copy feature:
- On the Preferences window, expand and then select Sequence Numbers.
- On the Sequence Numbers page, select the Manage sequence
numbers checkbox and then clear the Enable Smart Copy check
box.
Procedure
-
In the COBOL Editor, open a COBOL source file that contains sequence numbers .
-
Select several lines of text and then press Ctrl+C to copy the selected text.
-
In the COBOL Editor, open a COBOL source file that does not contain sequence numbers.
-
Position the cursor in column 8 on the line where you want to paste the copied text.
-
To paste the copied text, press Ctrl+V.
The copied text is added to the file and the added lines of text are numbered.
-
To undo the updates, press Ctrl+Z.
-
Enable Smart Copy in the COBOL Editor:
-
In the file without sequence numbers, right-click and select
Preferences.
-
In the Preferences window, expand , and then select Sequence Numbers.
-
Select the Enable Smart Copy checkbox and then click
OK.
-
Copy and paste the block of text from the file that contains sequence numbers.
The text is pasted and the sequence numbers are replaced with spaces.