You already know how to read multiple records sequentially by using
the / line pointer control. Now let's look at reading multiple
records non-sequentially by using the #n line pointer control.
#n specifies the absolute
number of the line to which you want to move the input pointer. The
#n pointer control can read
records in any order; therefore, it must be specified before the instructions for reading
values in a specific record.
The INPUT statement below first reads the values for Department and
JobCode in the second record, then the values for Lname and Fname
in the first record. Finally, it reads the value for Salary in the
input #2 Department ...