NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
L-14
Examples—LINE_NUMBER
Examples—LINE_NUMBER
The following command produces a line that contains a line number, part number,
and part name. The line numbers start over at 1 on the first line of each page.
S> DETAIL LINE_NUMBER OVER PAGE, PARTNUM, PARTDESC;
(EXPR) PARTNUM PARTDESC
----------- ------- ------------------
1 212 SYSTEM 192KB CORE
2 244 SYSTEM 192KB SEMI
3 1403 PROC 96KB SEMI
...
(EXPR) PARTNUM PARTDESC
----------- ------- ------------------
1 2053 EDITOR
2 2267 TEXT FORMATTER
3 2598 C COMPILER
...
The following command prints the same information as the preceding command but
in a different format.
S> DETAIL LINE_NUMBER AS I4 NOHEAD, PARTNUM, PARTDESC;
PARTNUM PARTDESC
------- ------------------
1 212 SYSTEM 192KB CORE
2 244 SYSTEM 192KB SEMI
3 1403 PROC 96KB SEMI
...
LINE_SPACING Option
LINE_SPACING is an option of the SQLCI report writer SET LAYOUT command that
specifies how many lines to advance between report lines.