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


DISPLAY_COLS—Query Display Columns

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

The DISPLAY_COLS assignment statement retrieves the column numbers of the first and last data columns that you are seeing, and places them in variables.

Syntax

Read syntax diagramSkip visual syntax diagram
Assignment statement syntax

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

var1
The name of a variable containing the column number of the first data column visible to you. The column number is a 3-digit value that is left-padded with zeros. If the variable is VDEFINEd in character format, it should be defined with a length of 5. The returned value is left padded with zeros. For compatibility with previous releases of ISPF, a length of 3 or 4 is allowed in cases where no data loss will occur.
var2
The name of a variable containing the column number of the last data column visible to you. The column number is a 3-digit value that is left-padded with zeros. If the variable is VDEFINEd in character format, it should be defined with a length of 5. The returned value is left padded with zeros. For compatibility with previous releases of ISPF, a length of 3 or 4 is allowed in cases where no data loss will occur.

Description

Columns that contain sequence numbers are not considered data columns. Do not use this assignment statement in initial macros because the columns displayed are not known until the data first appears. See Referring to column positions for more information.

Return codes

0
Normal completion
12
Invalid command format
20
Severe error

Examples

To put the leftmost and rightmost column values displayed to you in variables &LEFT and &RIGHT:
ISREDIT (LEFT,RIGHT) = DISPLAY_COLS

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014