I want to implement a multifetch access in a existing program that uses sequential(physical) read of Adabas records.
I think, Following parameters would be additionally required/set to make the existing ADABAS call
ISN lower limit (ACBISL) - 0 (To get as many records or 3)
Command Option 1 (ACBCOP1) ‘M’
Record buffer length (ACBRBL) reclength * 3
ISN buffer length (ACBIBL) 52(for 3 records, 16*3+4)
I have specified record buffer that has enough space to accomodate 3 records. record buffer length is set as 3 times length of record(9054*3).
But still I get a single record as a result of ADABAS CALL: Nr. of records in ISN buffer is 1, and returncode of ISN buffer records are 0. What would have been wrong in the implementation? I have checked the documentation , I couldnt find any examples other than the description of parmeters as described above.
Hello Marbod
Thanks for the reply.
Multifetch descriptor of first record seems to be corect.It’s length is
9524, which is the length of a single record. Record buffer length was 28572.
There wasn’t any user exits.Test environment is batch.
Record structure is fixed length(There is no OCCURS …VARYING clause).
Hello Marbod,
L2 command is being used in this case.
OS version is BS2000 / OSD Vers. 5.0
Adarep output shows “A D A R E P V7.4.”
But anyway, I need to improve the performance of a sequential Physical
read. What about using ADARUN and externally specifying prefetch
buffers. Would it improve the performance?
that looks like a problem then. Do you get more records with a smaller logical record size (ie. less fields in the format)?
With batch programs you certainly should try the ADARUN PREFETCH=YES features. There you can parameterize multifetch operation without changing your application program.
Since ADARUN multifetch uses the same M option as your application I am curious if it returns multiple records. If it doesn’t you should gather diagnostic information (i.e. nucleus DDPRINT, command log with layout 5 with FB and RB and an ADAREP with the used file’s FDT) and contact Adabas support…