2 3. RENAME If you code an equal sign (=) in an output fileid in
corresponding to an asterisk in an input fileid, all
satisfy the condition are renamed. For example:
a position
files that
rename * assemble a = oldasm =
renames all files
filetype of OLDASM. with a filetype of ASSEMBLE to
Current filenames are retained.
files with a You cannot use the
another. You must
filemode letters.
RENAME command to move a file from one disk to
use the COPYFILE com mana if you want to change You can use the RENAME command to modify filemode numbers, for
example,
rename * module al = = a2
changes the filemode number on all MODULE files that have a mode
number of 1 to a mode number of 2. You can invoke the RENAME command from the terminal, from an EXEC file, or as a function from a program. If is invoked as
a function or from an EXEC file that has the &CONTROL NOMSG option
in effect, the message DMSRNM002E FILE 'fn ft fm' NOT FOUND is not
issued.
Normally, the master file directory for
whenever you issue a command that affects you use the NOUPDIRT option of the RENAME directory is not updated until you issue
updates, or deletes any file on the disk,
a disk is updated
files on the disk. When command, the master file
a commana that writes,
or until you explicitly
release the disk (with the RELEASE command; newfn newft newfm
The new filename, filetype, and filemode of each file altered is
displayed when the TYPE option is specified and an asterisk was specified for at least one of the file identifiers (fn, ft or fm)
of the input fileid. DMSRNM002E FILE 'fn ft fm' NOT FOUND RC=28 DMSRNM003E INVALID OPTION 'option' RC=24 DMSRNM019E IDENTICAL FILEIDS RC=24 DMSRNM024E FILE 'fn ft fm' ALREADY EXISTS RC=28 DMSRNM030E FILE 'fn ft fm' ALREADY ACTIVE RC=28 DMSRNM037E DISK 'mode (cuu) , IS READ/ONLY RC=36 DMSRNM048E INVALID FILE MODE 'fm' RC=24 DMSRNM051E INVALID MODE CHANGE RC=24 DMSRNM054E INCOMPLETE FILEID SPECIFIED RC=24 DMSRNM062E INVALID * IN OUTPUT FILEID RC=20 , I Section 2. CMS Commands 161
RSERV RSERV Use the RSERV command in CMS/DOS to cOPYr displaYr printr or punch a DOS/VS relocatable module from a private or system library. The format
of the RSERV command is: r ----------------------------------------------------, I r , , , RSERV , modname , ft , (op tions ••• [) ]] , , , , , , L .J I , [ [ PUNCH] (PRINT] (TERM] L- ___________________________________________________ -J modname specifies the name of the module on the DOS/VS private or
system relocatable library. The private 1ibrarYr if anYr is
searched before the system library.
ft specifies the filetype of the file to be created on your
A-disk. ft defaults to TEXT if a filetype is not specified.
The filename is always the same as the module name. Q2i!Qll§: You may specify as many options as you wish on the RSERV command, depending on which functions you want to perform. copies the relocatable module onto your A-disk. options are specified r DISK is the default.
If no other PUNCH punches the relocatable module on the virtual punch. PRINT prints the relocatable module on the virtual printer.
TERM displays the relocatable module at your terminal.
1. If you want to copy modules from a private relocatab1e 1ibrarYr you
must issue an ASSGN command for the unit SISRLB and
identify the library on a DLBL command line using the ddname IJSYSRL. To copy modules from the system re10catable library, you must have
entered the CMS/DOS environment specifying a mode letter on the SET DOS ON command line.
2. The RSERV command ignores the assignment of logical units, and
directs output to the devices specified on the option list.
If you use the TERM option, the relocatable module is displayed at the
terminal.
162 VM/370 CMS Command and Macro Reference
Previous Page Next Page