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

How can you quickly find out the # of rows updated after an update statement?

626


Explain various types of locks in db2?

685


Why do chiropractors use drop table?

656


can any one provide me the link for the db2 v7 & db2 v8 manual for Z/os? i need to know about the syntax of REORG in both versions & need to know the difference as well

1797


How many databases are there?

588






Explain the function of data manager.

632


Explain the contention situations caused by locks?

587


What are the two types of logging in the db2 database? Explain them.

570


What are the different types of base tables?

583


How do we specify index to include or not during bind process.

1674


What is the use of reorg in db2?

597


What is db2 bind process?

751


Mention the definition of cobol in varchar field.

684


How to retrieve rows from a db2 table in embedded sql?

714


If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2

1572