April 27, 1981
If you have a disk accessed as an extension of another disk, the
extension disk is automatically read-only, and you cannot write on it.You miqht access a disk as its own extension, therefore, to protect the
files on it, so that you do not accidentally write on it. For example:
access 235 bib
Another use of extensions is to extend theCMS search order. If you
issue a command requesting to read a file, for example:
type alpha planCMS searches your A-disk for the file named ALPHA PLAN and if it does
not find it, searches any extensions that your A-disk may have. If you
have a file namedALPHA PLAN on your B-disk but have not accessed it as
an extension of your A-disk,CMS will not find the file, and you will
have to reenter the command:
type alpha plan b
Additionally, if you issue aCMS command that reads and writes a
file, and the file to be read is on an extension of a read/write disk,
the output file is written to the parent read/write disk. The EDIT
command is a qood example of this type of command. If you have a file
namedFINAL LIST on a B-disk extension of a read/write A-disk, and if
you invoke the editor to modify the file with the command:
edit final list
after you have made modifications to the file, the changed file is
written onto your A-disk. The file on the B-disk remains unchanged.When you access a disk as a read-only extension, it remains an extension
of the parent disk as long as both disks are still accessed. If either
disk is released, the relationship of parent disk/extension is
terminat ed• If the parent disk is released, the extension remains accessed and
you may still read files on it. If you access another disk at the mode
letter of the oriqinal parent disk, the parent/extension relationship
remains in effect.
If you release a read-only extension and access another disk with the
same mode letter, it is not an extension of the original parent disk
unless you access it as such. For example, if you enter:
access 198 cia
release c
access 199 c
theC-disk at virtual address 199 is not an extension of your A-disk. WHEN TO SPECIFY FIIEMODE LETTERS: READING FILES When you request CMS to access a file, you have to identify it so that CMS can locate it for you. The commands that expect files of particular
52IBM VM/370 eMS User's Guide
If you have a disk accessed as an extension of another disk, the
extension disk is automatically read-only, and you cannot write on it.
files on it, so that you do not accidentally write on it. For example:
access 235 bib
Another use of extensions is to extend the
issue a command requesting to read a file, for example:
type alpha plan
not find it, searches any extensions that your A-disk may have. If you
have a file named
an extension of your A-disk,
have to reenter the command:
type alpha plan b
Additionally, if you issue a
file, and the file to be read is on an extension of a read/write disk,
the output file is written to the parent read/write disk. The EDIT
command is a qood example of this type of command. If you have a file
named
you invoke the editor to modify the file with the command:
edit final list
after you have made modifications to the file, the changed file is
written onto your A-disk. The file on the B-disk remains unchanged.
of the parent disk as long as both disks are still accessed. If either
disk is released, the relationship of parent disk/extension is
terminat ed
you may still read files on it. If you access another disk at the mode
letter of the oriqinal parent disk, the parent/extension relationship
remains in effect.
If you release a read-only extension and access another disk with the
same mode letter, it is not an extension of the original parent disk
unless you access it as such. For example, if you enter:
access 198 cia
release c
access 199 c
the
52