home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / datatl25.zip / DCTDSGN.Z / EWSQMICU.QRY < prev    next >
Text File  |  1997-09-11  |  916b  |  37 lines

  1. #NAME#
  2. DA_OS390ICFCatalogUsage
  3. #DESCRIPTION#
  4. The OS/390 ICF catalog usage impact query returns the names of all the storage groups, tablespaces and indexes which use the ICF catalog specified in the WHERE clause.
  5.  
  6. View type:  DAQICFCatalog
  7.  
  8. Modifications:
  9. Change the search criteria of the ICF catalog name using the = (equals), IN or LIKE elements in the SQL WHERE clause.
  10.  
  11. #MODIFIED#
  12.  
  13. #VERSION#
  14.  
  15. #SQL STATEMENT#
  16. --DA_OS390ICFCatalogUsage
  17. SELECT
  18.  i.ICFCatalog,
  19.  s.db2390Storagegroup,
  20.  t.db2390Tablespace,
  21.  tp.db2390Tablespace as partitionedTablespace,
  22.  i.tsPartNumber as partitionNumber,
  23.  x.db2390Index,
  24.  xp.db2390Index as indexPartition,
  25.  i.idxPartNumber as indexPartitionNumber
  26. FROM OUTER
  27.  DAQICFCatalog i,
  28.  (i.usedByStoragegroup) s,
  29.  (i.usedByTablespace) t,
  30.  (i.usedByPartTablespace) tp,
  31.  (i.usedByIndex) x,
  32.  (i.usedByPartIndex) xp
  33. WHERE
  34.  i.ICFCatalog LIKE '<>%'
  35. ORDER BY
  36.  1;
  37.