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

  1. #NAME#
  2. DA_DataElementDataCharacteristics
  3. #DESCRIPTION#
  4. The data element data characterstics glossary query returns the names of all shareable data elements which match the specified data specification.
  5.  
  6. View type:  DAQDataElement
  7.  
  8. Modifications:
  9. Change the search values (WHERE clause values) for:
  10. --typeCode
  11.     Possible values are:
  12.        0  Binary number
  13.        1  Packed decimal
  14.        2  Zoned decimal
  15.        3  Binary floating point
  16.        4  Decimal (or external) floating point
  17.        5  Bit string
  18.        6  Character string
  19.        7  Double byte (or graphic) string
  20.        8  Mixed SBCS/DBCS string
  21.        9  Date
  22.       10  Time
  23.       11  Timestamp
  24.       12  Index
  25.       13  Undefined
  26.       14  RowID (Oracle only)
  27.       15  MLSLabel (Oracle only)
  28. --stringLength
  29.     The data length for string data types: Bit string in bits, Character
  30.     string in bytes, DBCS or graphic string in double bytes, and mixed
  31.     SBCS/DBCS string in bytes.
  32. --numericPrecision
  33.     The data length for numeric data types: Fixed binary in bits, Packed
  34.     decimal in digits, zoned decimal in digits, binary floating point in
  35.     bits, and decimal floating point in digits of the mantissa.
  36. --scale
  37.     The position of the decimal point for numeric data types in digits.
  38. --genericPicture
  39.     The language independent representation of a COBOL or PL/I picture clause.
  40. --asBitData
  41.     A boolean value indicating whether the character string is treated
  42.     as bit (binary) data.
  43. --isComplex
  44.     A boolean value indicating whether the numeric data is real (0) or
  45.     complex (1).
  46. --isSigned
  47.     A boolean value indicating whether the numeric data is signed (0)
  48.     or not (1).
  49. --stringVaryingCode
  50.     A value indicating whether the string is of fixed length (1) or
  51.     variable length (2).
  52. --isLOB
  53.     A boolean value indicating whether the string is a large object (LOB)
  54. #MODIFIED#
  55.  
  56. #VERSION#
  57.  
  58. #SQL STATEMENT#
  59. SELECT
  60.   dataElement,
  61.   typeCode,
  62.   stringLength,
  63.   stringVaryingCode,
  64.   numericPrecision,
  65.   scale,
  66.   genericPicture,
  67.   asBitData,
  68.   isComplex,
  69.   isSigned,
  70.   isLOB
  71. FROM
  72.   DAQDataElement
  73. WHERE
  74. -- as specified, this looks for a character string with length
  75. -- less than 25 bytes
  76.   typeCode = 6 AND
  77.   stringLength < 25
  78. ORDER BY
  79.   dataElement;
  80.