14 type command data COPYFILE SORT TAPE LOAD Ri COpy CMS FILES SORT CMS FILES IN ALPHAMERIC ORDER BY SPECIFIC COLUMNS READ CMS FILES ONTO DISK FROM TAPE 15 edit command data
EDIT:
16
save
EDIT:
17 fname comm2 file
R;
18 copyfile comm2 data a (lowcase
R;
19 copyfile co •• and data a co •• 2 data a (ovly specs DMSCPY601R ENTER SPECIFICATION LIST: 1-12 1 Ri 20 type comm2 data
21 COpy FILE SORT EDIT
EDIT RENAME PUNCH PRINT ERASE LISTFILE ht
R;
Copy cms files Sort cms files in alphameric order by specific columns Create a cms file Modify a cms file
Change the name of a cms file Punch a copy of a cms file on cards Print a cms file
Erase a cms file
List information on a cms file 14 To display the entire file at your terminal, use the CMS TYPE command. Note any
errors that you made that you .ight want to correct.
15 Use the EDIT command to edit the file COMMAND DATA again. This time, since the file
exists, the editor does not issue the message, NEW FILE:
16 While you are in edit mode, make any changes that you need to; then issue the SAVE subcommand to save these changes, and replace the existing copy of the file onto
disk.
17 Use the FNAME subcommand to the filename of the file to COM!2 (the filetype
remains unchanged). When you the FILE subcommand this time, the file is
written onto disk with the name COMM2 DATA.
18 You can rewrite the entire file, COBB2 DATA in lowercase characters, using the COPYFILE command with the LOWCASE option.
19 The file COMM2 DATA is now all lowercase characters (you can display the file with the TYPE command if you want to verify it). However, the command names, and the
first character of the description should be uppercase characters. You can use the COPYFILE com.and again, to overlay the original uppercase characters of COMMAND DATA
in columns 1 through 12 over the lowercase characters in colu.ns 1 through 12 of COMM2 DATA. 20 Use the TYPE command to verify that the COPYFILE command did, in fact, overlay only
the columns that you wanted.
21 The HT Immediate com.and suppresses the display of the remainder of the file; you
can see from the first few lines that the format of the file is correct.
356 IBM VM/310 CMS User's Guide
Pg. of GC20-1819-2 Rev ftarch 30, '1979 by Supp. SD23-9024-1 for 5748-XX8 22 listfile * data COMMAND DATA COMM2 DATA R; A1
A1
23 sort comm2 data a command sort a DMSSRT604R ENTER SORT FIELDS:
1 9 R; 24 type command sort COMPARE COMPARE TYPE R; Verify that two files are identical
Compare the contents of ems disk files
Display the contents of a ems file at your terminal
25 copyfile comm2 data a function data a ( specs DftSCPY601R ENTER SPECIFICATION LIST: 12-72 1 1-9 70 R;
26 type function data
Copy cms files Sort ems files in alphameric order by specific columns
Read ems files onto disk from tape R- ,
21 sort function data a function sort a DMSSRT604R ENTER SORT FIELDS: .. -,,, I f V R;
type function sort
Alter the name of a ems file
Change the name of a ems file Verify the existence of a cas file on a read/write disk
R; COPYFILE SORT TAPE LOAD RENAME
RENAME STATEW 22 The LISTFILE command lists your two files with the filetype of DATA. (If you
previously had files with these filetypes, they are also listed.)
23 To sort the file COftM2 DATA into alphabetic order, by command, issue the SORT command. When you are promFted for the sort fields, enter the cclumns that contain
the command names, 1 through 9.
24 The output file from the SORT command is named COftftAND SORT. You can use the TYPE command to verify that the records are now sorted alphabetically by command.
25 To create another copy of the file, this time with the command names on the right and the functional description on the left, use the COPYFILE com.and with the SPECS option again. To create a file this way, you must know the columns in your input
file (COMM2 DATA) and how you want them arranged in your output file (FUNCTION DATA). Columns 1 through 9 contain the command names; columns 12 through 72 contain
the descriptions. The specification list entered after the prompting message
indicates that columns 12 through 72 should be copied and placed beginning in column
1, and that columns 1 through 9 should be copied beginning in column 70. 26 Verify the COPYFILE operation with the TYPE command.
27 Sort the file FUNCTION DATA so that the functional descriptions appear in alphabetic
order. You may also want to display the output file, FUNCTION SORT. Sample Terminal Session Using the CftS Editor and eftS File System Commands 357
Previous Page Next Page