5 * Revision 1.1.1.1 1996/03/06 10:47:26 mclareni
9 #include "zebra/pilot.h"
10 #if defined(CERNLIB_QMUIX)
11 SUBROUTINE RZSTRIP(CHFILE,NST,NRS,LREC,ISTAT)
13 **********************************************************************
15 * Routine called by RZOPEN and RZIODO for striped files
17 * CHFILE Name of the header description file (Ascii)
18 * NST* Number of striped files
19 * NRS* Number of records in each file
20 * LREC* Record length in words of the files
21 * ISTAT* return sattus
23 * Description of the /RZCSTR/ structure
24 * ISLAST File number currently described in the structure
25 * ISTRIP Current striped file number for file ISLAST
26 * NSTRIP Number of striped files for ISLAST
27 * NRSTRIP Number of records in each file of file ISLAST
29 * Example of a descriptor file (starts in column 1)
30 * ============================
32 * The first line after the ###FTRIPE line contains
33 * nstrip, Total_number_of_records, Record_Length_in_words, File_size
36 * 5 3872 1024 15859712
37 * 775 3174400 /user/brun/hbook/hart.hbook_1
38 * 775 3174400 /user/brun/hbook/hart.hbook_2
39 * 775 3174400 /user/brun/hbook/hart.hbook_3
40 * 775 3174400 /user/brun/hbook/hart.hbook_4
41 * 772 3162112 /user/brun/hbook/hart.hbook_5
44 * Author : R.Brun CERN/CN
47 ************************************************************************
49 #include "zebra/rzcstr.inc"
54 parameter (lunhead=121)
56 *-----------------------------------------------------------------------
59 open(unit=lunhead,file=chfile,status='old')
60 read(lunhead,'(a)',err=20,end=20)strip
61 if(strip.ne.'###FSTRIPE')go to 20
62 read(lunhead,*,err=20,end=20)nst,nrtot,lrec,nwords
66 if(nst.ge.maxstrip)go to 20
68 read(lunhead,'(a)',err=20,end=20)file
73 rzsfile(maxstrip)=chfile