In which column of which DB2 catalog would you find the
length of the rows for all tables?

Answer Posted / vat

'RECLENGTH' column of SYSIBM.SYSTABLES would have the
record/row length of the table.

It's format: 8 + n + l where
8 accounts for 6 header bytes and 2 ID map entry bytes
n = 0 if there is no edit proc otherwise 10
l = Sum of max. col lengths (Add 1 byte for Null indicator
for nullable columns, 2 bytes for Varchar columns, 4 bytes
for LOB column)

and, RECLENGTH is 0 for auxilary tables, views and aliases

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain dclgen.

722


What is the difference between spufi and qmf?

637


What is meant by dclgen?

618


How do I delete a column in db2?

678


Explain in detail about buffer manager and its functionalities?

560






I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.

2757


Can one database have multiple instances?

580


How to test SQL -911 error while developing COB-DB2 program

6708


What is the maximum No of rows per page?

626


How do I create a view in db2?

599


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

2375


What is the difference between using bind () and rebind () methods of naming class?

788


What is dbrm in db2 database?

586


What is db2 bind?

636


What are bind parameters in db2?

611