Allocates afile unit from a pool of free units.
User-written PV-WAVE functions and procedures should use GET_LUN to reserve unit numbers to avoid conflicts with other routines. (Similarly, they should use FREE_LUN to free them when finished).
NOTE: The Get_Lun keyword, used with the OPENR, OPENU, and OPENW procedures, calls GET_LUN to allocate a file unit number.
GET_LUN, log_unit
OPENR, log_unit, 'test.dat'
READF, log_unit, my_var
FREE_LUN, log_unit
For background information, see Logical Unit Numbers (LUNs) in Chapter 8 of the PV-WAVE Programmer's Guide.