z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


DISPLAY_LINES—Query Display Lines

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The DISPLAY_LINES assignment statement retrieves the relative line numbers of the first and last data lines that would appear at this point if the macro ended, and places them in variables. Other non-data lines might be on the display. Do not use this assignment statement in an initial macro because the lines displayed are not known until the data is first displayed.

Syntax

Read syntax diagramSkip visual syntax diagram
Assignment statement syntax

>>-ISREDIT--(var1,var2)-- = --DISPLAY_LINES--------------------><

var1
The name of a variable containing the relative line number of either the first visible data line or block of excluded lines if the macro ended at this point. The relative line number is a 6-digit value that is left-padded with zeros. If the variable is VDEFINEd in character format, it should be defined with a length of 8. The returned value is left-padded with zeros. For compatibility with previous releases of ISPF, a length of 6 or 7 is allowed in cases where no data loss will occur.
var2
The name of a variable containing the relative line number of either the last visible data line or block of excluded lines. The relative line number is a 6-digit value that is left-padded with zeros. If the variable is VDEFINEd in character format, it should be defined with a length of 8. The returned value is left-padded with zeros. For compatibility with previous releases of ISPF, a length of 6 or 7 is allowed in cases where no data loss will occur.

Return codes

0
Normal completion
4
No visible data lines
8
No existing data lines
12
Invalid command format
20
Severe error

Examples

To place the top and bottom line numbers in variables &TOP and &BOT:
ISREDIT (TOP,BOT) = DISPLAY_LINES

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014