Following is the SQL I used to get what I needed --
SELECT TBCREATOR, TBNAME, NAME AS COLUMN_NAME,
KEYSEQ AS SEQ_#_OF_COL_IN_PK
FROM SYSIBM.SYSCOLUMNS
WHERE KEYSEQ > 0
AND TBNAME = 'table_name'
AND TBCREATOR = 'table_creator'
ORDER BY TBCREATOR, TBNAME...
I'm trying to gather DB2 table/column layout information to build a data dictionary. I'm doing this on the mainframe with SPUFI because I lack third party software like BMC or Candle. I'm okay SELECTing from SYSIBM.SYSCOLUMN & SYSIBM.SYSTABLE tables. My question is -
How do I determine the...
code:
-------------------------------------------------
SELECT M_YEAR, COUNT(*)
FROM TABLE_D D
WHERE D.PRODUCT_CD = 'PP'
AND D.LOCATION_CD = 'ZZ'
AND D.GROUP_CD = 'GG'
AND D.A-ID IN
(SELECT DISTINCT C.A_ID
FROM TABLE_C C
WHERE C.PRODUCT_CD = 'PP'
AND C.LOCATION_CD =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.