IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to know primary key of a table using qmf


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mfibm

New User


Joined: 12 Sep 2006
Posts: 13

PostPosted: Wed Sep 13, 2006 7:33 pm
Reply with quote

how to know primary key of a table using qmf.....

let me know the full process..

tanks in advans
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Wed Sep 13, 2006 8:34 pm
Reply with quote

Try this query:

SELECT *
FROM SYSIBM.SYSCOLUMNS
WHERE KEYSEQ > 0 AND TBNAME = 'TABLE NAME'
ORDER BY TBNAME , TBCREATOR , KEYSEQ

If you use PLATINUM, it is much easier.

Enter Table name in Item Name and RI in DB2 Object then select PK = Primary Key Columns in next options screen.

Hope this helps.
Back to top
View user's profile Send private message
mfibm

New User


Joined: 12 Sep 2006
Posts: 13

PostPosted: Thu Sep 14, 2006 10:26 am
Reply with quote

tanks for ur time rasheed , let me try and check...

Likki
Back to top
View user's profile Send private message
mfibm

New User


Joined: 12 Sep 2006
Posts: 13

PostPosted: Thu Sep 14, 2006 5:13 pm
Reply with quote

Hi rasheed......its fine .its working...........

tanks........
Likki
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Unload and Load ISPF Table TSO/ISPF 4
No new posts ISPF Table to add a new column TSO/ISPF 1
Search our Forums:


Back to Top