COPYFILE COPYFILE Use the cOPYFILE command to copy and/or modify disk files. The
manner in which the file identifiers are entered determines whether or not one or more output files are created. The format of the COPYFILE command is:
r , COPYfile t , , fileidi1
fileidi2
fileido
fileidi 1 [fileid i2 ••• ] [fileido] [( options ••• [) ]] QEtiQ!!§: r ,
! Type ! L .J
r , !NEWDs.tel IOLDDatel L .J
r , ,FRom recno I IFRLabel xxxxxxxxi
L .J
r ,
r
r , I REPlacel L .J
r 1
! . I INOPRomptl L 1 r , r , I SPecs I IFOR numrec I ITOLabel xxxxxxxxi
L .I L .J , IOVly I I RECfm {F} I [LRecl nnnnn]
r , ITRUnc I !APpend, L .J
r , IPAck I ,UNPackl L .J
[ SIngle] , {V} I L .I
r , IFIll c I IFIll hh I IFIll 401 L .I
[ EBcd.ic] L .I
r 1 IUPcase I (TRAns] ILOwcasel L J
1 , I , , I ____ --I is the first (or only) input file. Each file (filename, filetype, and filemode) must be specified either
by indicating the specific identifier or by coding an
asterisk.
is one or more additional input files. Eacn file identifier
(filename, filetype, and filemode) must· be specified. In
single output mode, any of the three input file identifiers
may be specified either by indicating the specific
identifier or by coding an asteriskc However# all three
file identifiers of fileidi2 cannot be specified by asterisks. In multiple output mode, an asterisk (*) is an
invalid file identifier. An equal sign (=) may be coded for
any of the file identifiers, indicating that it is the same
as the corresponding identifier in fileidil.
is the output file(s) to be created. Each file identifier
(filename, filetype, and filemode) must be specified. To
create multiple output files, an equal sign (=) must be
coded in one or more of the identifier fields. If there is
only one input file, fileido may be omitted, in which case
it defaults to = = = (the input file represented by fileidil
is replaced) .
The COpy FILE command options are
notes and examples, see "Using the
option descriptions.
listed below, briefly. For usage COPYFILE Command" following the
Section 2. Commands 35
CO PYFILE 36 TYPE OLDDATE REPLACE NJPROMPT displays, at the terminal, the names of the files being
copied.
suppresses the display of the names of the files being
copied.
uses the current date as the creation date of the new
file(s) uses the date from the input file as the date for the new
output file. In the case of multiple input files and a
single output file, the date of the 'first' input file
processed is used as the date for the new output file.
checks that files with the same fileid as the output file
do not already exist. If one or more output files do
exist, an error message is displayed and the COPYFILE command terminates. This option is the default so that
existing files are not inadvertently destroyed.
causes the output file to replace an existing file with
the same file identifier. REPLACE is the default option
when only one fileid is entered or when the output fileid
is specified as "= = =."
displays the messages that request specification or
translation lists.
suppresses the display of prompting messages
specification and translation lists.
for FROM recno is the starting record number for each input file in the copy operation. FRLABEL xxxxxxxx
xxxxxxxx is a character string that appears at
beginning of the first record to be copied from
input file. Up to eigmt nonblank characters may
specified.
the
each
be F8R numrec is the number of records to be copied from each input
file. TOLABEL xxxxxxxx SPECS OVLY IBM VM/370 xxxxxxxx is a character string which, if at the beginning
of a record, stops the copy operation for that input
file. The record containing the given character is not
copied. Up to eight nonblank characters may be specified.
indicates that you are going to enter a specification
list to define how records should be copied. See "Entering a COPYFILE Specification List" for information
on how you can define output records in a specification
list.
indicates that no specification list is to be entered.
overlays the data in an existing output file
from the input file. You can use OVLY with
option to overlay data in particular columns. eMS Reference
with data
the SPECS
Previous Page Next Page