the assembler assembles source statements from an eAisting CMS file
named MYFILE ASSEMBLE and produces an output file containing object
code, as well as a listing. The files that are created are named: MYFILE TEXT MYFILE LISTING Commands that load CMS files onto a disk from cards or tapes. These
commands are READCARD, TAPE LOAD, and DISK LOAD. The LISTFILE and LISTIO commands with the EXEC option create files
named CMS EXEC and $LISTIO EXEC which you can execute as EXEC procedures. The TAPPDS and TAPE MAC commands create CMS disk files from OS data
sets on tape. If the data set is a partitioned data set, the TAPPDS command creates individual CMS files from each of the members; the TAPEMAC command creates a CMS macro library, called a MACLIB, from an
as macro library. The MOVEFILE and FILEDEF commands, used together, can copy OS or DOS data sets or files into CMS files; they can also copy files from
cards or tapes. CMS/DOS commands SSERV, ESERV, RSERV, and PSERV copy DOS files from
source statement, relocatable, and procedure libraries into CMS files. Some CMS commands produce maps, or lists of files, data sets, or
program entry points. For example, if you issue the command:
tape scan (disk
a CMS disk file named TAPE MAP is created that contains a list of the CMS files that exist on a tape atta.ched to your virtual machine at
virtual address 181. Some commands create new files from files that already exist on your
virtual disks. The creation may involve a simple copy operation, or it
may be a combining of many files of one type into a larger file of the
same or a different type: The COPY FILE command, in its simplest form, copies a file from one
virtual disk to another:
copyfile yourprog assemble b myprog assemble a The MACLIB and TXTLIB commands create libraries from MACRO or COpy files, or from TEXT (object) files. The SORT command rearranges (in alphameric sequence) the records in a
file and creates a new file to contain the result. You have to
specify the name of the new file:
sort nonseq recs a seq recs a The GENMOD command creates nonrelocatable modules from object modules
that you have loaded into your virtual storage area. For example,
the commands:
load test
genmod payroll
create a file named PAYROLL MODULE, which you can then execute as a
user-written CMS command.
32 IBM VM/370 CMS User's Guide
The DOSLKED command creates or adds members to DOSLIBs, which are
libraries containing link-edited CMS/DOS program phases. The UPDATE command creates an updated source file and special update
files when you use it to apply updates to your source programs. COMMANDS THAT MODIFY DISK FILES You can use the CMS editor to modify existing files on your virtual
disks. You issue the EDIT command, giving the file identifier:
edit old file CMS editor subcommands allow you to make minor specific changes or
global changes, which can affect many lines in a file at one time.
The MACLIB and TITLIE commands also allow you to modify CMS macro and
text libraries. You can add, delete, or replace members in these
libraries using these commands.
The COpy FILE command has some options that allow you to change a file
without creating a new output file. For example, if you enter the command: copy file my file a {lowcase
then all of the uppercase characters in the file MY FILE are translated
to lowercase. You can change the file identifier of a file using the RENAME command:
rename test file a1 good file a1
The ERASE command deletes files from your virtual disks:
erase temporary file b1
For additional examples of CMS file system commands, see "Appendix D: Sample Terminal Sessions." COMMANDS TO MOVE FILES You can use CMS commands to transfer a data file from one device or
medium to another device of the same or of a different type. The types
of movement and the commands to use are described briefly here and in
detail in "Section 7. Using Real Printers, Punches, Readers, and Tapes."
If you need to transfer files between virtual machines, you can use
the PUNCH or DISK DUMP commands to punch virtual card image records.
These are then placed in the virtual card reader of the receiving virtual machine.
Before you use either of these commands, you must indicate the output
disposition of the files. You do this with the CP SPOOL command:
cp spool ODd to mickey Section 3. What You Can Do With VM/370-CMS Commands 33
Previous Page Next Page