next previous up contents index
Next: SET Previous: SCOPE Up: The Commands in Detail



SEQUENCE   [col1 [col2]]/[base [incr]]/n [N|R] [F]
SE

This command inserts numbers in specified columns of n consecutive lines.

The default setting begins the numbering with 1 and increases it by 1 in each step. If, for example, you want to fill 5 lines with the numbers 1 to 5, you enter the command

Taking into account the default values, you could also write You can, of course, choose different values for the base number and for the stepping size.

The numbers are written right-justified. As long as not specified differently, the needed column width is defined by the largest number that will be inserted and the field begins in column 1. By specifying the parameter col1 you can determine the starting column for the inserted numbers. If you specify col2 additionally, you determine the column width. By specifying F (fill), you demand that the columns of the inserted field are filled with zeros to the left. An example:

results in the following content for the columns 5 to 7: The last remaining default to be described is N (new): After the current line, n new lines with the desired numbers are inserted. If you specify the parameter R (replace) instead, the respective columns (with the column width just as described above) in the next n lines, including the current line, are overwritten with the desired numbers. If there are not enough lines for this in the workfile, you get the message The largest of the newly created numbers has to fit in the field width and may not exceed 8 digits. If this is violated, you get the message
next previous up contents index
Next: SET Previous: SCOPE Up: The Commands in Detail