SQL Query Optimization

DBRM, Package, Collection and Plan

DBRM: DataBase Request Module has the SQL statements extracted from the host language program by the SQL precompile. The COBOL-DB2 program is preprocessed by DB2 to produce a DBRM that will be used to bind against a particular DB2 subsystem. The Db2 system uses the DBRM to optimize application program interaction. PACKAGE: A package contains control structures that DB2 uses […]

DBRM, Package, Collection and Plan Read More »

PL1 Oncode

The ONCODE built-in function provides a fixed-point binary value that depends on the cause of the last condition. ONCODE can be used to distinguish between the various circumstances that raise a particular condition—for instance, the ERROR condition. For codes corresponding to the conditions and errors detected, refer to the specific condition. 3 in a SELECT/WHEN/OTHERWISE

PL1 Oncode Read More »

EVALUATE

USAGE and COMP Declaration

USAGE and COMP: USAGE CLAUSE -There are two general forms of internal representation – computational and display (Usage and Comp). Only numeric data items can be displayed as computational, and as the name suggests, an item specified as computational can take part in arithmetic operations more efficiently.  Whether a data item is computational or display, it

USAGE and COMP Declaration Read More »

Scroll to Top