Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to identify constraints specified on fields of a table?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Wed Aug 29, 2007 9:33 pm    Post subject: How to identify constraints specified on fields of a table?
Reply with quote

Hi,

Is there any inbuilt system tables or command to identify the constraints (integrity constraint) specfied on the particular field of the DB2 table?

I have tried the below commands in SPUFI and QMF but its not working,


DESCRIBE TABLE OWNERNAME.OBJNAME

regards,
Nagu
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Aug 29, 2007 10:19 pm    Post subject: Re: How to identify constraints specified on fields of a tab
Reply with quote

Nagendran wrote:
Hi,

Is there any inbuilt system tables or command to identify the constraints (integrity constraint) specfied on the particular field of the DB2 table?

I have tried the below commands in SPUFI and QMF but its not working,


DESCRIBE TABLE OWNERNAME.OBJNAME

regards,
Nagu

Try this
Code:
  SELECT TBNAME, CHECKNAME, CHECKCONDITION FROM SYSIBM.SYSCHECKS
WHERE TBNAME in ('abcdefgh', 'ijklmn')                               
ORDER BY TBNAME, CHECKNAME                                       
FOR FETCH ONLY WITH UR;                                         
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us