This mode is available only on machines running under UNIX, and only on machines where the CF package of KERNLIB has been implemented.
Assume that the name of the tape drive is /dev/mt12
.
Open the file and initialize FZ:
CALL CFOPEN (IQUEST(1), 1, 900, 'r ', 0, '/dev/mt12 ', ISTAT) CALL FZFILE (Lun, 900, 'TL')
Open the file and initialize FZ:
CALL CFOPEN (IQUEST(1), 1, 900, 'w ', 0, '/dev/mt12 ', ISTAT) CALL FZFILE (Lun, 900, 'TLO')
The record-length is given as the number of machine words per record, thus '900' is for 32-bit machines; on 64-bit machines this would be '450'.
Note the passing of the file-pointer returned from CFOPEN
to FZFILE via IQUEST(1)
.
If you are running ZEBRA version 3.66 with KERNLIB constructed from KERNFOR 4.26, note the following problem:
The CF routines delivered with KERNFOR 4.26 do not work correctly for on-line tapes; they have been re-written and version KERNFOR 4.27 has been released.