The LINE option can be specified only for PRINT files. The LINE option defines a new current line for the data set. The expression is evaluated and converted to an integer value, n. The new current line is the nth line of the current page. If at least n lines have already been written on the current page or if n exceeds the limits set by the PAGESIZE option of the OPEN statement, the ENDPAGE condition is raised. If n is less than or equal to zero, a value of 1 is used. If n specifies the current line, ENDPAGE is raised except when the file is positioned on column 1, in which case the effect is the same as if a SKIP(0) option were specified.
The LINE option takes effect before the transmission of any values defined by the data specification (if any). If both the PAGE option and the LINE option appear in the same statement, the PAGE option is applied first. For example:
put file(List) data(P,Q,R) line(34) page;
prints the values of the variables P, Q, and R in data-directed format on a new page, commencing at line 34.
For the effect of the LINE option when specified in the first GET statement following the opening of the file, see OPEN statement.
For output to a terminal in interactive mode, the LINE option skips three lines.