Converting database records into an FZ file

                +----------------------------------------+
                |CALL  HDBTOFZ (PATH,LUN,ISEL,CHOPT,IRC*) |
                +----------------------------------------+
                                  

PATH
Pathname of the directory from where the data are to be retrieved.
LUN
Logical unit number for the FZ file.
CHOPT
Character variable containing a string of single character options
' '
Write retrieved record to a FZ file.
'C'
Write pathname into header vector (not valid for R option).
'P'
Write period of validity and NSTYPE in header vector.
'R'
Write start-of-run record.
'RP'
Write start-of-run record with header containing the period of validity.
'W'
Writes the directory and all subdirectories to a FZ file (using RZTOFZ). Other options are ignored.
IRC
Return status
0
Normal completion

Information from a HEPDB database may be copied to a ZEBRA FZ sequential file using the routine HDBTOFZ. This routine can output a single datastructure, the contents of a subdirectory or directory tree with optional selection on perid of validity. The required FZFILE statements must have previously been issued for the FZ file before calling this routine (see, for example, PROGRAM HDBTOFZ in the HEPDB PAM file).