RENAME
RENAMEUse the RENAME command to change the fileid of one or eMS files on
aCMS disk. The format of the RENAME is: r- , I Rename , fileid1 fileid2 [(options ••• U ]] I I , I , I L r , ITYPE I r , I UPDIRT - I , L .J L .J
_______________-.1 fileid1 is the file identifier of the original file whose name is to
be changed. All components of the fileid (filenamer
filetype, and filemode) must be coded, with either a name or
an asterisk. If an asterisk is coded in any field, any file
that satisfies the other qualifications is renamed.
fi leid2TYPE T NOUPDIRT NOUP is the new file identifier of the file. All components of
the file (filename, filetype, and must be coded,
with either a name or an equal sign; if an equal sign (=) is
coded, the corresponding fileidentifiec is unchanged. The
output filemode can also be specified as an asterisk (*),
indicating that the filemode is not changed.
displaysr at the terminal, the new identifiers of all
the files that are renamed. The file identifiers are
displayed only when an asterisk (*l is specified for one
or more of the file identifiers (fn,ftr or fm) in
fileid 1.
suppresses at the terminal, displaying of the new file
identifiers of all files renamed.
updates the master file directory upon of this
command.
suppresses the updating of the
upon completion of this command.
master file directory(See Usage Note 3.)
1. Whenyou code an asterisk (*) in any portion of the input fileid,
anyoc all of the files that satisfy the other qualifiers may be cenamed, depending upon how you specify the fileid. For
example:
rename * assemble a test file a
results in the firstASSEMBLE file found on tne A-disk being
renamed toTEST FILE. If more than one ASSEMBLE file exists, error
messages are issued to indicate that they cannot becenamed. 160 IBM VM/370 CMS Command and Macro Reference
RENAME
a
_______________
be changed. All components of the fileid (filenamer
filetype, and filemode) must be coded, with either a name or
an asterisk. If an asterisk is coded in any field, any file
that satisfies the other qualifications is renamed.
fi leid2
the file (filename, filetype, and
with either a name or an equal sign; if an equal sign (=) is
coded, the corresponding file
output filemode can also be specified as an asterisk (*),
indicating that the filemode is not changed.
displaysr at the terminal, the new identifiers of all
the files that are renamed. The file identifiers are
displayed only when an asterisk (*l is specified for one
or more of the file identifiers (fn,
fileid 1.
suppresses at the terminal, displaying of the new file
identifiers of all files renamed.
updates the master file directory upon
command.
suppresses the updating of the
upon completion of this command.
master file directory
1. When
any
example:
rename * assemble a test file a
results in the first
renamed to
messages are issued to indicate that they cannot be