next up previous index
Next: IOPA300 Data structure Up: GEANT Previous: IOPA001 The I/O

IOPA200 ZEBRA sequential files handling

Routine ID: IOPA200
Author(s): Submitted: 01.06.83
Origin: R.BrunRevised: 16.12.93

CALL GOPEN (LUN,CHOPT,LEN,IER*)

LUN
( INTEGER) logical unit number, 1 LUN<100;
CHOPT
( CHARACTER*(*)) any valid combination of FZFILE options (see [,]), the most common being:
I
input file;
O
output file;
X
exchange mode file;
LEN
( INTEGER) maximum record length, for more details see routine FZFILE in the ZEBRA manual;
IER
( INTEGER) error flag:
0
legal open request;
1
attempt to open more than 5 ZEBRA sequential files;
Opens a ZEBRA FZ file for sequential I/O of GEANT data structures. No more than 5 files can be open at any one time.

CALL GCLOSE (LUN,IER*)

LUN
( INTEGER) logical unit to be closed, if 0 all ZEBRA FZ streams will be closed;
IER
( INTEGER) error flag:
0
legal close request;
1
no unit was found open;
This routine closes one or all ZEBRA FZ file(s). This is a mandatory routines for all open ZEBRA files before the end of the program. Failure to call this routine may cause files to be incompletely written to the storage media.

IOPA300


Janne Saarela
Mon Apr 3 12:46:29 METDST 1995