UD 6.0.7 on Windows
Does anyone know if Unidata is doing something special writing data with
long keys to a static file - and what that is?
Running the following...
KEYLENGTH=36
DTALENGTH=0
MODULO=1
SEP=1
NRECORDS=3
EXECUTE 'CLEAR-FILE DATA SRLTEMP1'
PCPERFORM 'memresize SRLTEMP1 ':MODULO:',':SEP:' TYPE 0 STATIC'
OPEN "SRLTEMP1" TO SRLTEMP1 ELSE STOP
FOR N=1 TO NRECORDS
WRITE STR('0',DTALENGTH) ON SRLTEMP1,OCONV(N,'MR%':KEYLENGTH)
NEXT N
PCPERFORM 'guide SRLTEMP1 -o'
...shows that the block is overflowed, even though it's only got 3 records
of less that 50 bytes each.
36 bytes looks like it's the cutoff on key length - below that the overflow
vanishes. Above that and any block with more than one item overflows. With
a block size of 2048, 86 bytes is the cutoff. Using a non-zero data length
makes no difference (ie 35 byte keys won't overflow even with 50 byte data).
I can't find anything in the manual saying what's going on, or recommending
different block sizes for files with long keys.
Cheers
Simon
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users