View previous topic :: View next topic |
Author |
Message |
mahesh_chv Beginner
Joined: 04 Aug 2005 Posts: 41 Topics: 16
|
Posted: Tue Mar 31, 2009 1:45 am Post subject: how to find out all nullable columns in a DB2 table ? |
|
|
We are currently using DB2 V7 and want to migrate to Db2 V9. So we are coming with a tool which can find out all the nullable columns in Db2 tables and
Currently we don't have null indicators for some of the fields, so we need to find the list of all the null columns which don't have null indicators in cobol programs.
In our DCLGEN we don't have null indicators. Most of the programs have declared working storage variables for null indicators.
Is there any way to find out all Nullable columns of all the tables in a DB2 |
|
Back to top |
|
 |
sriramla Beginner
Joined: 22 Feb 2003 Posts: 74 Topics: 1
|
Posted: Tue Mar 31, 2009 4:08 am Post subject: |
|
|
I believe sysibm.syscolumns table has this information. Look at the column named "NULLS". If it is "Y" then the column is nullable; otherwise not. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|