I need to know the difference between Multifetch and Prefetch. I have read the documentation and I am confused.
Can I use MultiFetch in batch jobs running on Z/OS?
For Multifetch in batch jobs, do I need any special parameters in my JCL.
Which is more efficient Multifetch or PreFetch?
Can I use Multifetch in CICS online programs?
What is the difference between PREFETCH = YES and PREFETCH = OLD
I coded a batch job and put in production.
I used MultiFetch 10 on a read statement against a Adabas file.
Here is the main loop:
READ MULTI-FETCH 10 INS-UV1 BY INS-POLICY-EXP-DATE = #START-DATE
IF INS-UV1.INS-POLICY-EXP-DATE > #END-DATE
ESCAPE BOTTOM /* last rec for date range
IF INS-UV1.INS-POLICY-CANCL-DATE > 0
Ignore cancelled policy.
RESET APPL-UV1 ENDRS-UV1
#APPL-FOUND #REPORT-PI #REPORT-INS
END-READ /* Ins-policy read
This seems to work, but I did not code in the JCL any PREFETCH Commands. Do I need them? Am i really doing a MULTIFETCH in this batch program or is it being ignored.
Any help would be appreciated. THanks.