Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
LINENUM—Query the Line Number of a Labeled Line z/OS ISPF Edit and Edit Macros SC19-3621-00 |
|
The LINENUM assignment statement retrieves the current relative line number of a specified label, and places it in a variable. SyntaxAssignment statement syntax >>-ISREDIT--(varname)-- = --LINENUM--label---------------------><
Return codes
DescriptionOnce the line number is retrieved and placed in a variable, it can be used in arithmetic operations. Note that line numbers are relative to the position of the line: first=1, second=2, and so on. Therefore, the value returned by the LINENUM assignment statement is not always be correct if lines are added or deleted before the line number is obtained. ExamplesTo determine the number of lines
in the data set and set variable &VAR to the last line number:
That number is 0 if there are no lines. To set variable &NUM
to the line number containing the label .MYLAB:
|
Copyright IBM Corporation 1990, 2014
|