Syntax


C[n]

CC / CC[n]


Operands


n

The number of lines to be copied. If you do not type a number, or if the number you type is 1, only the line on which you type C is copied  


Description


Note:  The C/CC and M/MM line commands are also used to mark lines for the use of various primary commands. When used for this purpose, you may not also enter other non primary-related line commands during the same interaction. e.g. if using CC block to mark a range of lines for use by the CREATE primary command, you may not, at the same time, enter other line commands such as I Insert, D Delete, etc. 

 

When used to "mark off" a line range for use by a primary command, CC is usually the line command of choice. MM can also be used, but it causes the marked range of lines to be deleted after the primary command is performed.


Note:  In order to be ISPF compatible, the FIND command will not use a pending C/CC or M/MM block to define a line range, because of the long-standing custom of ISPF users to keep such blocks pending while using FIND to search for a place into which to move or copy that block. To use FIND and have a C/CC or M/MM block to define a line range, use the FIND alias of FF.


See FIND - Find a Character String for more information.



To copy one or more lines within the same file: 

    1. Type C in the line command area of the line to be copied. If you also want to copy one or more lines that immediately follow this line, type a number greater than 1 after the C command.
    2. Next, specify the destination of the line to be copied by using either the A (after), AA (Block After),  B (before), BB (Block Before),  O (overlay) or H/HH (Here) line command.
    3. Press Enter. 
    4. The line or lines are copied to the new location.


 

To copy a block of lines within the same file:  

    1. Type CC in the line command area of both the first and last lines to be copied. You can scroll (or use FIND or LOCATE) between typing the first CC and the second CC, if necessary.  
    2. Use the A (after), AA (Block After),  B (before), BB (Block Before),  OO (overlay) or H/HH (Here)  command to show where the copied lines are to be placed. Notice that when you use the block form of the C command (CC) to copy and overlay lines, you should also use the block form of the O command (OO).  
    3. Press Enter
    4. The lines that contain the two CC commands and all of the lines between them are copied to the new location.  


Created with the Personal Edition of HelpNDoc: How to Protect Your PDFs with Encryption and Passwords