12. Report-Writer Statements : Page Layout and Control Statements : .Need Statement--Keep Lines Together
 
Share this page                  
.Need Statement--Keep Lines Together
The .need statement ensures that a specified number of text lines is printed together on the same page.
.need | .ne nlines| expression
The parameters for the .need statement are as follows:
nlines
The number of lines in the text block to remain together.
expression
A numeric expression that evaluates to the total number of lines in the text block to remain together. Precede all variables that are part of the expression by a dollar sign ($).