March 30, 1979 Sample Terminal Session Using the Editor and CMS File System Commands
This terminal session shows you how to create a CMS and make changes to it using the CMS editor, and then manipulate it using the CMS file system commands, COPYFILE, ERASE, RENAME, and SORT. Throughout this terminal session whenever a TYPE subcommand or command is issued
that results in a display of the entire file, the complete display is not shown; omitted
lines are indicated by vertical ellipses ( ••• ). When you enter the TYPE command or
subcommand, you should see the entire display.
1 edit command data NEW FILE:
EDIT:
2 image ON tabs 1 12 80 trunc 12
3 input INPUT: copyfile copy cms files
sort sort cms files in alphameric order by specific columns
edit create a cms file
edit modify a cms file
rename change the name of a cms file
punch punch a copy of a cms file on cards
print print a cms file
erase erase a cms file
listfile list information on a cms file
state verify the existence of a cms file
statew verify the existence of a cms file on a read/write disk
readcard read a cms file from your card reader onto disk
disk dump punch a cms file in cms disk dump format into your virtual card punch for
4 TRUNCATED 5 DISK DUMP PUNCH A CMS FILE IN CMS DISK DUMP FORMAT INTO YOUR VIRTUAL CA disk load read a disk dumF file onto disk
compare compare the contents of ems disk files
tape dump dumF ems files ento tape
tape load read cms files onto disk from tape
EDIT:
1 Use the EDIT command to invoke the CMS editor to create a file with a filename of COMMAND and a filetype of DATA. Since the file does not exist, the editor issues
the message NEW FILE.
2 Check that the image setting is ON. This is the default for all filetypes except SCRIPT. Then, set the logical tab stops for this file at 1, 12, and 80, and set a
truncation limit of 12.
3 Enter the subcommand INPUT to enter input mode and begin entering lines in the file.
For these input files, you should press the Tab key (or equivalent) on your terminal
following each CMS command name. If there is a physical tab step on your terminal
in column 12, the input data appears aligned.
4 The message, TRUNCATED, indicates that the line you just entered exceeded the
truncation limit you set for the file (column 12). The editor displays the line, so
you can see how much of the line was accepted. Your virtual machine is still in
input mode, so continue entering input lines.
5 To get out of input mode, enter a null line (press the Return or Enter key without
entering any data). The editor responds with the message EDIT:.
354 IBM VM/370 CMS User's Guide
6
7
top TOF: type * TOF: COPYFILE COpy eMS FILES TAPE LOAD READ CMS FILES ONTO DISK FROM TAPE 8 EOF: locate /disk dump DISK DUMP PUNCH A CMS FILE IN CMS DISK DUMP FORMAT INTO YOUR VIRTUAL CA 9 replace disk dump punch a cms file onto cards
input INPUT: type display the contents of a cms file at your terminal rename alter the name of a cas file
sort resequence the records in a cms file
copy file reformat a file, by columns
comprae verify that two files are identical 10 EDIT:
change /rae/are/ COMPARE VERIFY THAT TWO FILES ARE IDENTICAL
11 bo
12 TAPE LOAD READ CMS FILES ONTO DISK FROM TAPE input INPUT: EDIT:
13 file
R;
6 Use the TOP subcommand to position the current line pointer at the top of the file.
The editor responds TOF:. 7 Use the TYPE subcommand to display the entire file. Note that all of your input
lines are translated to uppercase and that the tab characters you
entered have been expanded, so that the first word following each command name
begins in column 12.
8 The message EOF: indicates that the end of the file is reached. You can issue the LOCATE subcommand to locate a line. Since you are at the bottom of the file, the
editor begins searching from the top of the file. Notice that you can enter the
character string you want to locate in lowercase characters; the editor translates
it to uppercase to locate the line. The editor displays the line.
9 Use the REPLACE subcommand to replace this line, in a shortened form so that it is
not truncated. Remember to enter a tab character after the command name; when you
enter the line, the tab stop does not have to be in column 12. Then, use the INPUT subcommand again to resume entering input. The lines that you enter next are written
into the file following the DISK DUMP line. 10 When you make a spelling error or other mistake, you may want to correct it immediately. Enter a null line to return to edit mode, and use the CHANGE subcoamand to correct the error. In this exaaple, the string RAE is changed to ARE. The
editor displays the line as changed.
11 Use the BOTTOM subcommand to move the current line pointer to point to the last line
in the file. Enter input mode with the INPUT subcommand. 12 If you enter input mode and decide that you do not want to enter input lines, all
you have to do to return to edit mode is enter a null line.
13 To write the file onto disk, use the FILE SUbcommand. This writes it onto disk
using the name with which you invoked the editor, COMMAND DATA. The CMS ready message indicates that you are in the CMS command environment.
Sample Terminal Session Using the CMS Editor and CMS File system Commands 355
Previous Page Next Page