Previous Topic: Editor CommandsNext Topic: CREATE Command


COPY Command

The ELIPS edit COPY command lets you copy a CA Librarian or PDS member, sequential data set, or a subset thereof, into the edit data. Use the A (after) or B (before) line commands or AFTER/BEFORE .label on the command line to specify where the data is copied.

This command has the following format:

COPY member [{AFTER } .label ] [PSWD(pswd)] [ARC(arc)]
            [{BEFORE}        ]

All parameters are optional.

member

The member name to copy from the CA Librarian library currently being edited.

AFTER | BEFORE

The position of the new data relative to the insertion point, before or after the point.

label

The line as the insertion point where the data is copied.

PSWD

Specifies the CA Librarian password for the member being copied.

ARC

Specifies the archive level if other than current. You can specify the archive level as:

Important! Copying a large member into a smaller member can cause a B37 abend and loss of the data changes made to the smaller member before the copy operation. To prevent this loss of data, copy the larger member to a new member using ELIPS Utility. Then copy the smaller member into the new member.

------------------------------ELIPS EDIT - COPY------------------------------ COMMAND ===> “CURRENT” DATA SET: LIBR.LIBCCF.TEST2(TESTMEMB) FROM ISPF OR LIBRARIAN LIBRARY: PROJECT ===> LIBR GROUP ===> LIBCCF TYPE ===> TEST2 MEMBER ===> EXPAND INCLUDES ===> NO PSWD ===> MCD ===> ARC LVL ===> FROM OTHER ISPF OR LIBRARIAN LIBRARY: DATA SET NAME ===> LINE NUMBERS (Blank for ALL lines or when “EXPAND INCLUDES” = YES) FIRST LINE ===> LAST LINE ===> NUMBER TYPE ===> (R=RELATIVE, S=STD, C=COBOL, L=LIBRARIAN, D=DISPLAY SELECTION LIST ===> (L/S/Q) LONG LIST: PGMR ===> TYPE ===> (OR/lan) Press ENTER key to copy. Enter END command to cancel copy.

When the member name is not supplied, the extended copy panel displays. This panel identifies another CA Librarian library, a partitioned data set member, or a sequential data set. A CA Librarian library or PDS can be indicated in the PROJECT/GROUP/TYPE fields.

MEMBER

The name of the member to copy. If you specify blank or a wildcard name, then a selection list displays.

EXPAND INCLUDES

Can be specified as YES or NO. NO is the default. If you specify YES, any CA Librarian -INC statements in the member being copied are expanded. When EXPAND INCLUDES is YES, you cannot specify a FIRST and LAST line number.

DATA SET NAME

The data set name and member name can also be supplied in the OTHER field. Or, the data set name can be supplied in the OTHER field and the member name in the MEMBER field if any one of the PSWD, MCD or ARC LVL fields is supplied.

FIRST LINE and LAST LINE and NUMBER TYPE

When you want to copy a range of lines into the material you are editing, you can specify a FIRST line number, a LAST line number, and a NUMBER TYPE. You cannot use these fields when EXPAND INCLUDES is YES. The NUMBER TYPE can be RELATIVE, STANDARD or COBOL for PDSs, CA Librarian sequence number field, or DISPLAY.

When DISPLAY is selected as the NUMBER TYPE, the member where lines are copied from displays. You can use the C line command or CC block copy line commands to select a line or range of lines to copy.

***************** ELIPS 4.1 EDIT COPY MODULE DISPLAY ************ COMMAND ===> SCROLL ===> PAGE ***************************************************************** ** LIBR.LIBCCF.TEST2($PROG) ************************************* LINE#- ....|....1....|....2....|....3....|....4....|....5....|. 000001 000010 IDENTIFICATION DIVISION. 000002 000020 PROGRAM-ID. ALTINDEX. 000011 000110 INPUT-OUTPUT SECTION. 000012 000120 FILE-CONTROL. CC0013 000130 SELECT INDEXED-FILE CC0014 000140 ASSIGN TO DA-FILEMAST. 000021 000210 DATA DIVISION. 000022 000220 FILE SECTION.

Enter END after making the line selection to perform the copy. TOP, BOTTOM, CANCEL, and FINDSEL commands are also supported. FINDSEL positions to the NEXT line selection that you made.

For selection list generation, COPY also supports LONG, SHORT and QUICK lists. For LONG selection lists, PROGRAMMER or wildcard PROGRAMMER name and TYPE is supported.