Pg. of GC20-1S19-2 Rev March 30, 1979 by Supp. SD23-9024-1 for 574S-XXS 2S 29 30 listfile COMMAND DATA A1 COMM2 DATA A1 COMMAND SORT A1 FUNCTION DATA A1 FUNCTION SORT A1
R;
erase command data
R;
rename cOllm2 data a command data a
R;
listfile
FILENAME FUNCTION COMMAND COMMAND FUNCTION R;
* * a ( label FILETYPE FM SORT A1
DATA A 1 SORT A1
DATA A 1 FORMAT F
F
F
F
LRECL SO SO SO SO RECS
22
22
22
22 ELOCKS 3
3
3
3
DATE 10/13/75 10/13/75 10/13/75 10/13/75 TIME 7:52:03 7:4S:52 7:4S:15 7:51:37
LABEL
ABC191
ABC191
ABC191
ABC191
31 edit function sort
EDIT:
32 zone
33
34
35
28
29 30 31
32
33
34
35
1 80 zone 60 change / // *
Alter the nalle of a cms file
Change the name of a CIIS file Verify the existence of a cms file on a read/write disk EOF: top TOF: find List NOT FOUND EOF: case U case m
find List
List information on a cms file RENAME RENAME STATEW LISTFILE
If these are the only files on your A-disk, the LISTFILE command entered with no
operands produces a list of the files created so far.
The file COMM2 was created for a workfile, in case any errors might have happened.
Since you no longer need the original file, COMMAND DATA, you can erase it. Use the RENAME co •• and to rename the workfile COMM2 DATA to have the name COMMAND DATA. The LISTFILE command verifies the change.
To begin altering the file FUNCTION SORT, invoke the editor again.
The ZONE command requests a display of the current zone settings, which are columns
1 and SO. When you issue the command ZONE 60, it changes the settings to columns 60 and SO, so that you cannot modify data in columns 1 through 59.
The CHANGE subcommand requests that the first appearance of five consecutive blanks
on each line in the file be compressed. The editor displays the results of this
CHANGE request by displaying each line changed (which is each line in the file). The
net effect is to shift the command column 5 spaces to the left.
Position the current line pointer at the top of the file, and then issue a FIND
subcommand to move the line pointer to the line that begins with "List". The editor indicates that the line is not founde Checking the current setting for
the CASE subcommand, you can see that it is U, or uppercase, which indicates that
the editor is translating your input data to uppercase. You can issue the CASE M subcommand to change this setting, then reissue the FIND subcommand. 35S IBM VM/370 CMS User's Guide
36 change Ion a cms/about a CMS NOT FOUND 37
38
= zone 1 *
List information about a CMS file
top TOF: change /cms/CMS/ *
Alter the name of a CMS file
Change the name of a CMS file Verify the existence of a CMS file on a read/write disk BOF: 39 save 40 41
42
43
44
EDIT:
top TOF: next
Alter the name of a CMS file
$dup
Alter the name of a CMS file
change /name/filetype/
Alter the filetype of a CMS file
next
Change the name of a CMS file
change /name/filename/
Change the filename of a CMS file
next
Compare the contents of CMS disk files
next Copy CMS find M Modify a CBS file
up
List information about a CMS file
i Make a copy of a CMS disk file
top TOF: RENIME RENIME STITEW RENIME RENIME RENIME RENIME RENIME COMPIRE COPYFILE EDIT LISTFILE COPYFILE 36 The editor locates the line and displays it. You want to change the character string
"on a cms" to "about a CMS". The editor does not find the string you specify because
the zone setting for columns 60 through 80 is still in effect. You can enter the ZONE subcommand, and reissue the CHINGE subcommand, or you can enter the = (REUSE) subcommand to stack the CHANGE subcommand, and enter the ZONE subcommand to execute
first.
37 The ZONE subcommand is executed, then the CHINGE subcommand. The editor displays the
changed line. . 38 At the top of the file, enter another global change request, to change lowercase
occurrences of the string cms to uppercase. The editor displays each line changed.
39 When the EOF: message indicates that the end of the file is reached, you can save
the changes made during this edit session with the SAVE subcommand before
continuing. 40 Move the current line pointer to point to the first line in the file. You want to
add an entry that is similar; use the $DUP edit macro to duplicate the line, then
change the copy that you made of the line. 41 You can change the word name to filename in the next line also.
42 You can scan a file, a line at a time, by issuing successive NEXT subcommands.
43 To insert a line beginning with the character M, and to maintain alphabetic
sequencing, use the FIND subcommand to find the first line beginning with an M. The
line to be inserted begins with the characters MI, so you want to move the line
pointer up.
44 You can insert a single line into a file with the INPUT subcommand. Here, the INPUT subcommand is truncated to I, so that when you space over to write the command name in the right column, you can align it (you only have to allow for the two character
spaces use by Hi ". . Sample Terminal Session Using the CMS Editor and CMS File System Commands 359
Previous Page Next Page