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

  1. #NAME#
  2. DA_OS390VolumeUsage
  3. #DESCRIPTION#
  4. The OS/390 volume usage impact query returns the names of all the storage groups which use the MVS Volume specified in the WHERE clause.
  5.  
  6. View type:  DAQMVSVolume
  7.  
  8.  
  9. Modifications:
  10. Change the search criteria of the OS/390 volume name or volumeID using the = (equals), IN or LIKE elements in the SQL WHERE clause.
  11.  
  12. #MODIFIED#
  13. #VERSION#
  14.  
  15. #SQL STATEMENT#
  16. --DA_OS390VolumeUsage
  17. SELECT DISTINCT
  18.   v.MVSVolume,
  19.   v.volumeID,
  20.   v.usedbyStoragegroup..db2390Storagegroup,
  21.   p.lastUpdate
  22. FROM
  23.   DAQMVSVolume v,
  24.   PartView p
  25. WHERE
  26.   v.MVSVolume LIKE '<>%' AND
  27.   v.MVSVolume=p.baseName
  28. ORDER BY
  29.   v.MVSVolume;
  30.