Re: Reading sequential files in COBOL vs SQL
- From: CRPence <crpence@xxxxxxxxxxxx>
- Date: Thu, 30 Aug 2007 08:18:06 -0500
And the SQL can also take advantage of parallel read algorithms, built into the DB2 for i5/OS query engine, to obtain the results quicker. Whereas in the non-SQL case, any parallel read actions would have to be coded into/as part of the application itself. So just as it might be generally considered easier to code the SQL request, it is also easier for the SQL to take advantage of an optimizer and underlying query features.
If the files are all small [it is unclear if the 4K records was a statement of each file or the number of files as obtained from 4K rows identifying the files of an unknown number of records], then the command SETOBJACC may prove beneficial for either row level or SQL access.
Regards, Chuck
--
All comments provided "as is" with no warranties of any kind whatsoever and may not represent positions, strategies, nor views of my employer
.
- References:
- Reading sequential files in COBOL vs SQL
- From: Elliot
- Re: Reading sequential files in COBOL vs SQL
- From: Mike
- Re: Reading sequential files in COBOL vs SQL
- From: Mike
- Re: Reading sequential files in COBOL vs SQL
- From: Karl Hanson
- Reading sequential files in COBOL vs SQL
- Prev by Date: Free form date conversion
- Next by Date: Reading sequential files in COBOL vs SQL
- Previous by thread: Re: Reading sequential files in COBOL vs SQL
- Next by thread: Reading sequential files in COBOL vs SQL
- Index(es):
Relevant Pages
|
Loading