I am using a large DB2 table which contains data with LRECL of 710 bytes. The volume of records in this DB2 table is high in terms of millions.
Currenlty, we have a job to unload the entire table based on certain criteria. This process runs daily and selects the entrie 710 bytes of record into a flat file. But, my main routine/program that reads this file is only using few fields from DB2 table (roughly 110 bytes).
Can I write a only selective query(SELECT field1, field2 from table) for the fields that are used in my main routine instead of SELECT * from table; ?
Will this provide any CPU savings or execution time savings
Performance of DB2 select query
Moderators: Kalicharan, Moderator Group
-
- Member
- Posts: 2
- Joined: Sat Mar 19, 2011 9:02 pm
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
Can I write a only selective query(SELECT field1, field2 from table) for the fields that are used in my main routine instead of SELECT * from table; ?
Yes
(usually columns not fields)
Will this provide any CPU savings or execution time savings
Depends on what is selected
Yes
(usually columns not fields)
Will this provide any CPU savings or execution time savings
Depends on what is selected
If the code hasn't been changed, why is the LKED date today?
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page