$LINECNT

$LINECNT GroupName or NumericValue

The $LINECNT command defines the number of lines needed on the page to allow multiple groups to print on the same page. It ensures that the set of groups print without being split between two pages. (The Environment software already ensures that a single group will not split between two pages.) A $GROUP definition can have up to five $LINECNT commands.

For a relative definition, you can name up to five groups (GroupName, one for each command) that you want to print with this group, as in the following example. In this example, the group does not print unless there is enough room on the page to print both the GN3H-ACCOUNT-HEADING and GN3D-ACCOUNT-DETAIL groups.

$LINECNT   GN3H-ACCOUNT-HEADING
$LINECNT   GN3D-ACCOUNT-DETAIL

For a specific definition, type a value from 1 to 99 (NumericValue) for $LINECNT. NumericValue should include all the lines to be printed, plus all interline spacing required by this group, and the groups that print with it.

You cannot use the $LINECNT command in the definition of $STDHDR or $STDFTR groups.