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

  1. #NAME#
  2. DA_DataStructureUsage
  3. #DESCRIPTION#
  4. The data structure usage impact analysis query returns the names of all the objects which directly use a Shareable Data Structure and may be impacted by changes to its specification.  
  5.  
  6. View type:  DataAtlasDataStructureImpact
  7.  
  8. Modifications:
  9. Change the search criteria of the Data Structure name using the = (equals), IN or LIKE elements in the SQL WHERE clause.
  10.  
  11. #MODIFIED#
  12.  
  13. #VERSION#
  14.  
  15. #SQL STATEMENT#
  16. SELECT
  17.   s.structureName,
  18.   'IMS Segment' as partType,
  19.   s.IMSSegment as usingPart,
  20.   s.DBD as containingPart
  21. FROM OUTER
  22.   DataAtlasDataStructureImpact s,
  23.   PartView p
  24. WHERE 
  25.   s.structureName LIKE '<>%' AND
  26.   s.DBD=p.baseName AND
  27.   p.partType='DSDBD'
  28. UNION
  29. SELECT
  30.   s.structureName,
  31.   'Data Structure' as partType,
  32.   s.ShareableDataStructure as usingPart,
  33.   ' ' as containingPart
  34. FROM OUTER
  35.   DataAtlasDataStructureImpact s,
  36.   PartView p
  37. WHERE
  38.   s.structureName LIKE '<>%' AND
  39.   s.ShareableDataStructure=p.baseName AND
  40.   p.partType='DSDataStructure'
  41. UNION
  42. SELECT
  43.   s.structureName,
  44.   'Included Source Def' as partType,
  45.   s.primaryIncludedSourceName as usingPart,
  46.   ' ' as containingPart
  47. FROM OUTER
  48.   DataAtlasDataStructureImpact s,
  49.   PartView p
  50. WHERE
  51.   s.structureName LIKE '<>%' AND
  52.   s.primaryIncludedSourceName=p.baseName AND
  53.   p.partType='DSIncludedSourceDef'
  54. ORDER BY
  55.   1,2,3;
  56.   
  57.