.Top Statement--Make Current Line the Top Line
The .top statement changes the current output line to the top line in the current block.
This statement has the following format:
.top | .tp
Description
You can use the .top statement only while block mode is in effect (that is, after a .block statement, but before the corresponding .endblock statement). It moves the current output line to the first (topmost) line in the block.
The character position on the topmost line is the same as its previous position on the line when the last .newline statement affected the topmost line. To get to the left margin of the top line, use the .tab statement with no parameters. To get to the last nonblank character on the line, use the .lineend statement.
Example
Assume the following sequence of Report-Writer statements:
.block
.print 'Line 1' .newline
.print 'Line 2' .newline
.top
.tab + 2 .pr 'more line 1' .newline
.endblock
You would get the following output:
Line 1 more line 1
Line 2
Last modified date: 08/28/2024