Indicates the number of rows currently allocated to this process window.
NCL procedures displaying multi-page output might want to determine the number of lines in the processing window. In this way, procedures is developed that cater for differing screen sizes.
It is good practice to write procedures that cater for the largest screen size (for example: 62 lines for a 3290) and that automatically adjust if used on a smaller screen.
The &LUROWS system variable is tested to determine the number of display lines available to a processing window.
When using split screen operation, the number of display lines available to the procedure might be less than the physical number for the screen. The &LUROWS system variable always reflects the number of display lines (rows) for that window.
When using &LUROWS, the NCL procedure must cater for any fixed overhead associated with a particular panel. For example, a panel can have a title on the top, followed by a line of column headings, and the third line blank. Data then commences on line 4 of the panel. The procedure must therefore allow for these three lines before attempting to calculate the number of display lines available for data.
Examples: &LUROWS
&IF &CNT LT &LUROWS &THEN + &GOTO .NEXTLINE
Notes:
When subtracting fixed panel overhead from &LUROWS, the NCL procedure must allow for &LUROWS having a value as low as when the window is not visible.
The dimensions of the physical terminal (regardless of the window dimensions) is determined from the &ZCOLS and &ZROWS system variables.
| Copyright © 2009 CA. All rights reserved. |
|