Line commands are special commands designed to be used in the Edit/Browse Table screens. These commands allow you to perform operations on selected table rows. They allow you to specify not only which row you wish to edit, but also what edit operation you wish to perform. Line commands may be used by entering the letter code at the left edge of the screen next to the row you want to edit. Table 131 list the line command codes.
Command |
Description |
---|---|
S |
Select row |
U |
Update row (edit only) |
N |
Create new Row using this one as a template (edit only) |
I |
Insert new row initialized with spaces/zeroes (edit only) |
D |
Delete row (edit only) |
DD |
Delete a series of rows (edit only) |
Dn |
Delete n rows (edit only); where n is the number of rows |
M |
Move a row |
MM |
Move a series of rows |
Mn |
Move n rows; where n is the number of rows |
(blank) |
Repeat previous line command (S, U or N) for row at the current cursor position |
When you are creating a View, one of the options is whether you wish to edit key fields. You select this option using the Protect Keys Indicator. When this key is set to Y, the terminal user will not be allowed to edit key fields and the command will fail. Thus, if in the U, N, I or D commands you attempt to edit a key field and the indicator is on, the command will fail.
When you select a row with the S, U, N or I commands, the Edit/Browse Row screen appears (see Figure 131).