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

how to know primary key in a table?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
NAARAAYANAN

New User


Joined: 13 Aug 2012
Posts: 3
Location: INDIA

PostPosted: Wed Sep 26, 2012 4:18 pm
Reply with quote

Hello,

could someone suggest me how to find the primary key in a table?

Thanks,
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Sep 26, 2012 4:25 pm
Reply with quote

Retrieving info about Indexes
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 26, 2012 7:31 pm
Reply with quote

Hello,

Do you really mean a "database table" or do you mean a vsam file or something else?

As we repeat over and over - terminology is critical to effective q & a . . .
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 26, 2012 8:04 pm
Reply with quote

why not simply look at the application documentation/specifications ???
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Sep 26, 2012 8:10 pm
Reply with quote

my fault for providing a db2 solution to a 'potential' db2 inquiry
in the vsam forum.

as anyone with more than 2 days experience knows,
if we are talking about vsam and primary key,
then IDCAMS LISTCAT will provide the location of the primary key,
and from that,
one only needs to go to the vsam record stucture definition,
to determine what fields comprise the key.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top