What is the physical storage length of TIMESTAMP data type?
TIMESTAMP data type takes 10 bytes and default is YYYY-MM-DD: HH: MM:SS-NNNNNN
What is SQLCA?
SQLCA stands for Server Query Language Communication Area. Basically, it is a collection of variables that may be updated after the execution of every SQL statement.
A program having SQL executable statement can provide maximum one SQLCA whereas in Java it is not applicable.
What is the COBOL picture clause of the DB2 data types DATE, TIME, TIMESTAMP?
DATE: PIC X(10)
TIME PIC X(08)
TIMESTAMP PIC X(26)
What is the maximum size of VARCHAR data type in DB2?
The maximum size of a VARCHAR data type in DB2 is 4046 bytes.
What is DCLGEN (Declaration Generator)?
The declaration generator provides an SQL Declare Table statement and language like COBOL, C data declaration for a particular table or view.
What is data manager?
Data manager is a DB2 component that is responsible to manage physical database. It performs logging and locking by invoking other system components.
What are the various data types available in DB2?
The data types available in DB2 are:
- SMALLINT
- INTEGER
- FLOAT
- DECIMAL
- CHAR
- VARCHAR
- DATE
- TIME
What is DB2? Explain.
DB2 also known IBM Db2 is a relational database management system (RDBMS) product form IBM. It is designed to store, analyse and retrieve data efficiently.
What is the maximum length of SQLCA?
136 is the maximum length of the SQLCA.
What is DCLGEN?
DCLGEN is stands for DeCLarations GENErator. It is used to create the host language copy books for the table definitions. It also creates the DECLARE table.