Sorting and Searching Arrays Becomes More Manageable in V5R3
** This thread discusses the article: Sorting and Searching Arrays Becomes More Manageable in V5R3 **
Hi Dave400, Just so we're on the same page, there is no "NBRRCDS" on the SEQONLY parm. SEQONLY looks like this: SEQONLY(*YES 100). There is an individual NBRRCDS parm for OVRDBF, which David A used in his example. The NBRRCDS specifies how many records to read from disk into main memory and can work for both sequential and direct access. The SEQONLY parms specifies how many records to read from disk into the program buffer and only works for sequential processing. With either case, there's no guarantee that the record a program needs will still be in memory when the program needs that given record. A disk read may still be needed, even for a small file. If a program is blocking lots of different files or many jobs/programs are consuming lots of memory, something has to acquiesce at some point. Chris
** This thread discusses the article: Sorting and Searching Arrays Becomes More Manageable in V5R3 **
Hi Dave400, Just so we're on the same page, there is no "NBRRCDS" on the SEQONLY parm. SEQONLY looks like this: SEQONLY(*YES 100). There is an individual NBRRCDS parm for OVRDBF, which David A used in his example. The NBRRCDS specifies how many records to read from disk into main memory and can work for both sequential and direct access. The SEQONLY parms specifies how many records to read from disk into the program buffer and only works for sequential processing. With either case, there's no guarantee that the record a program needs will still be in memory when the program needs that given record. A disk read may still be needed, even for a small file. If a program is blocking lots of different files or many jobs/programs are consuming lots of memory, something has to acquiesce at some point. Chris
Comment