We have a partitioned DB2 table and I want to know if I can query the catalog tables to find out what column(s) are being used for the partitioning.
When I run a query against SYSIBM.SYSTABLEPART, I can find the below for the TSNAME.
TSNAME PARTITION IXNAME ROWS LIMITKEY
---------+---------+---------+---------+---------+--
BATT1S 1 BATT1SX2 45207 0
BATT1S 2 BATT1SX2 45160 1
BATT1S 3 BATT1SX2 46285 2
BATT1S 4 BATT1SX2 46770 3
BATT1S 5 BATT1SX2 47079 4
BATT1S 6 BATT1SX2 48837 5
BATT1S 7 BATT1SX2 46109 6
BATT1S 8 BATT1SX2 49172 7
BATT1S 9 BATT1SX2 45916 8
BATT1S 10 BATT1SX2 45392 9
SYSKEYS for index BATT1SX2 contains the following info
CLSTING CLSTED UNQ COLNAME COLSEQ ORDER IXTYP
--+---------+---------+---------+---------+---------+-
Y Y D BAT_PART_N 1 A 2
Y Y D MER_NUM 2 A 2
Y Y D BAT_PROC_D 3 A 2
Y Y D BAT_MER_TO 4 A 2
DB2 Catalog query assistance
Moderators: Kalicharan, Moderator Group
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page