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

Is it possible to findout primary ID, multiple Secondary ID


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mbr_raja

New User


Joined: 15 Nov 2004
Posts: 26
Location: Chennai, India

PostPosted: Tue Sep 05, 2006 1:49 pm
Reply with quote

Is it possible to findout Primary ID and multiple Secondary ID through by means of SPUFI or anyother utility to find out.
Back to top
View user's profile Send private message
sushil_ach

New User


Joined: 01 May 2006
Posts: 6

PostPosted: Tue Sep 05, 2006 3:49 pm
Reply with quote

Yes it is possible , u can try this querry.... let me know if it doesn't work..


SELECT NAME FROM SYSIBM.SYSCOLOUMNS
WHERE TBCREATOR = <TABLE CREATOR NAME>
AND TBNAME = <TABLE NAME>
AND KEYSEQ > 0 ;

OR,

SELECT A.COLNAME,
A.COLSEQ,
A.ORDERING,
FROM SYSIBM.SYSKEYS A,
SYSIBM.SYSINDEXES B
WHERE A.IXNAME = B.NAME
AND A.IXCREATOR = B.CREATOR
AND B.TBNAME = <TABLE NAME>
AND B.TBCREATOR = <TBCREATOR>
AND B.UNIQUERULE = 'P' ;
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
No new posts Multiple INSPECTS on a big size file COBOL Programming 6
No new posts Comment multiple lines in JCL for Tem... JCL & VSAM 4
Search our Forums:


Back to Top