Sample Terminal Session Using Line-Number Editing
This terminal session shows how a terminal session using right-handed line-number editing might appear on a typewriter terminal. The commands function the same wayan a display
terminal, but the display is somewhat different. When you enter these input lines, you
should have physical tab stops set at your terminal at positions 16 and 22 (for assembler columns 10 and 16; the difference compensates for the line numbers, as you will see). On a display terminal, tab settings have no significance; once the line is in the output
display area, it has the proper number of spaces.
1
2
3
4
5
6
7
edit test assemble NEW FILE:
EDIT:
linemode right
input INPUT: 00010 * sample of linemode right 00020 test csect 00030 balr 12,0 00040 using *,12 00050 st 14,sav14 00060 wrterm testing ••• 00070 00080 00090 00100 EDIT: 60 I br
end 00060 WRTERM 14,sav14 1q c /testing ••• /·testing ••• 00060 WRTERM 80 00080 BR 14
input INPUT: TESTING ••• 'TESTING ••• '
1 Use the EDIT command to invoke the CMS editor. Since this a new file, the editor
issues the NEW FILE message.
2 Issue the LINEMODE subcommand to indicate that you want to begin line-number
editing. For ASSEMBLE files, you cannot have line numbers on the left, because the
assembler expects data in columns 1 through 7.
3 As soon as you issue the INPUT subcommand, the editor begins prompting you to enter
input lines. For convenience in entering lines, the line numbers appear on the left,
as they would if you were using left-handed line-number editing. In your ASSEMBLE file, however, the line numbers are actually on the right.
4 When you are have finished entering these input lines, enter a null line to return
to edit mode from input mode.
5 To locate lines when you are using line-number editing, you can enter the line
number of the line. In this case, enter 60 to position the current line pointer at
the line numbered 00060. The editor displays the line.
6 Issue the CHANGE subcommand to place quotation marks around the text line for the WRTERM macro. The editor redisplays the line, with the change.
7 Issue the nnnnn subcommand, specifying line number 80, and use the INPUT subcommand
so you can begin entering more input lines.
362 IBM VM/370 CMS User's Guide
8 00083 sav14 ds f 00085 wkarea ds 3d 00087 flag ds x 00088 runon equ x'80' 00089 runoff equ x'40' 9 RENUMBER LINES EDIT:
linemode off
serial on abc
save 10 EDIT:
11 linemode right
type 00030 RUNOFF EQU 1'40' 12 verify 1
*
type 00030 RUNOFF EQU X'40' ABC00130 13 135 runmix equ x'20' 14 50 00050 ST 14,SAV14 ABCOO050 input INPUT: 00053 tm flag,runon 00055 bcr 1,14 00057 15 EDIT:
top TOF: next
* SAMPLE OF LINE MODE RIGHT ABCOO010 16 restore
8 When you begin entering input lines between two existing lines, the editor uses an
algorithm to assign line numbers. 9 The editor ran out of line numbers, since the next line in the file is already
numbered 90. You must renumber the lines. Before you can renumber the lines, you
must turn line-number editing off. Before issuing the SAVE subcommand, which writes the file and its new line numbers onto disk, you can issue the SERIAL subcommand. SERIAL ABC indicates that you want the characters ABC to appear as the first three
characters of each serial number. 10 The EDIT message indicates that the SAVE request has completed.
11 Issue the LINE MODE subcommand to restore line-number editing. Use the TYPE subcommand to verify the position of the current line pointer.
12 If you want to see the serial numbers in columns 72 through 80, issue the VERIFY subcommand, specifying *, or the record length. Normally, the editor does not
display the columns containing serial numbers while you are editing.
13 You can use the nnnnn subcommand to insert individual lines of text. This subcommand
inserts a line that you want numbered 135, and places it in its proper position in
the file. Note that although, in this example, the current line pointer is
positioned at line 130, it does not need to be at the proper place in the file. When the subcommand is complete, however, the current line pointer is positioned
following the line just inserted.
14 Position the line pointer at the line numbered 50, and again begin entering the
input lines indicated.
15 Enter a null line to return to edit mode, move the current line pointer to the top
of the file, and display the first line.
16 The RESTORE subco.mand restores the default settings of the editor, and the the
verification columns are restored to 1 and 72, so that line numbers are not
displayed in columns 72 through 80. Sample Terminal Session Using Line-Number Editing 363
Previous Page Next Page