Messages DSQ30101 to DSQ36533

DSQ30101
Message:

Your Prompted Query is too complex for the database.

Explanation:

An internal QMF query needed to build or run the Prompted Query failed. This situation can occur if:

  1. The internal query was too long or too complex.
  2. The total number of columns for all tables used exceeded a database limit.

Your query cannot be completed or run using Prompted Query.

User Response:

Shorten your query or rewrite it as more than one query.

SQLCODE:  -00101   Database:  SQL/DS
QMF Function:  PQ
DSQ30102
Message:

Data is too long. Check your quotes.

Explanation:

A character constant must be enclosed in quotes. If you omit a closing quote, your data could exceed the maximum length: 254 characters normally, or 127 graphic characters if you are using the Double Byte Character Set under SQL/DS.

User Response:

Change your data and run the query again.

SQLCODE:  -00102   Database:  SQL/DS
QMF Function:  PQ
DSQ30103
Message:

&V1 starts with a digit, but is not a valid number.

Explanation:

&V1 starts with a digit, but is not a valid integer, decimal, or floating-point number. If it is meant to be a:

  1. floating-point number, be sure the "E" is followed by a plus or minus sign, and then the exponent.
  2. character constant, enclose it in single quotes.
  3. name, it must not start with a digit. Choose another name.
User Response:

Change &V1 and run the query again.

SQLCODE:  -00103   Database:  SQL/DS
QMF Function:  PQ
DSQ30104
Message:

Either &V1 or something near it is invalid.

Explanation:

Some of the possible causes are:

  1. Invalid character or characters.
  2. Extra input following the normal query.
  3. Name begins with underscore.
  4. Zero length name (inside double quotes).
  5. Nonnumeric value where numeric is needed.
  6. Something missing after the last word.
  7. A subquery after SET when using UPDATE.
User Response:

Examine your query, make the necessary changes, and run it again.

SQLCODE:  -00104   Database:  SQL/DS
QMF Function:  PQ
DSQ30105
Message:

Incorrect usage of &V1 or &V2..

Explanation:

Some possibilities are:

  1. You are missing an operator such as + or * (For example, there is no + between SALARY COMM).
  2. You used two operators consecutively. (For example, SALARY +* COMM)
  3. You used a reserved word incorrectly.
  4. You have an unequal number of left and right parentheses.
  5. You used an unrecognized operator.
  6. You used some keywords that are valid for other database system, but not in DB2.
User Response:

Make the correction and continue.

SQLCODE:  -00105   Database:  SQL/DS
QMF Function:  PQ
DSQ30106
Message:

An unmatched single quote appears in your expression.

Explanation:

You have inserted a single quote in an expression and do not have a matching single quote to end the quoted data.

User Response:

Insert the matching quote in the correct place.

SQLCODE:  -00106   Database:  SQL/DS
QMF Function:  PQ
DSQ30107
Message:

The name &V1 is to long. The maximum allowable length is &V2.

Explanation:

The query contains a name whose length exceeds the maximum length. When determining the length of this name, an EBCDIC character counts as one byte and a DBCS character counts as two bytes. A qualifier for a table or view name cannot be more than eight bytes long. This can also be caused by an unmatched double quote in your expression.

User Response:

Use a shorter name, or add the missing quote.

SQLCODE:  -00107   Database:  SQL/DS
QMF Function:  PQ
DSQ30108
Message:

The name &V1 is to long. The maximum allowable length is &V2.

Explanation:

The query contains a name whose length exceeds the maximum length. When determining the length of this name, an EBCDIC character counts as one byte and a DBCS character counts as two bytes. A qualifier for a table or view name cannot be more than eight bytes long. This can also be caused by an unmatched double quote in your expression.

User Response:

Use a shorter name, or add the missing quote.

SQLCODE:  -00108   Database:  SQL/DS
QMF Function:  PQ
DSQ30110
Message:

&V1 is not a function name.

Explanation:

Some of the functions are AVG, MAX, MIN, SUM, COUNT, DATE, TIME, TIMESTAMP, YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, MICROSECOND, CHAR, and DAYS. If &V1 is a valid function, be sure that the punctuation used with it is correct. For example:

MIN(PRICE), MAX(PRICE) is correct
DATE('1996-10-01') -10102433. is correct
User Response:

Check the QMF Reference manual to be sure you are using a valid function correctly.

SQLCODE:  -00110   Database:  SQL/DS
QMF Function:  PQ
DSQ30111
Message:

A summary function must specify a column name.

Explanation:

You specified a summary function that contains an expression without a column name. A summary function must refer to a column name. Examples:

AVG(COMM + SALARY) is correct.
AVG(1200 + 3498) is not correct.
User Response:

Correct the expression of the summary function.

SQLCODE:  -00111   Database:  SQL/DS
QMF Function:  PQ
DSQ30112
Message:

A summary function contains an invalid expression.

Explanation:

The summary functions are AVG, COUNT, MAX, MIN, and SUM. Any expressions used in a summary function cannot contain summary functions.

Correct:   AVG(UNITS * PRICE)
Incorrect: AVG(UNITS * MAX(PRICE))
User Response:

Change your query so that the summary function has the correct expression.

SQLCODE:  -00112   Database:  SQL/DS
QMF Function:  PQ
DSQ30115
Message:

&V1 is used incorrectly.

Explanation:

A simple comparison like '>' or '=' must not be followed by a list of items. ANY and ALL comparisons must be followed by a subselect, rather than an expression or a list of items. For Example:

Correct:
WHERE SALARY > ALL (SELECT COMM
   FROM Q.STAFF)

Incorrect:
WHERE SALARY > ALL (10000)
User Response:

Change the usage of &V1 and run your query again.

SQLCODE:  -00115   Database:  SQL/DS
QMF Function:  PQ
DSQ30116
Message:

The database label is too long.

Explanation:

The length of the label for a column or table exceeds the maximum of 30 bytes. An EBCDIC character counts as one byte and a DBCS character counts as two bytes.

User Response:

Shorten the label and run the query again.

SQLCODE:  -00116   Database:  SQL/DS
QMF Function:  PQ
DSQ30117
Message:

The number of values does not match the number of columns.

Explanation:

In a statement like INSERT INTO Q.STAFF, you must provide a value for every column that was defined as NOT NULL.

If you do not give a list of columns after the table name, then give a value for every column in the table, after VALUES.

If you do give a list of columns after the table name, then give a value for every column in that list, after VALUES.

Example:
INSERT INTO Q.STAFF (ID, NAME, DEPT)
    VALUES (400, 'HARRISON', 20)
User Response:

Provide a value for each column you want to INSERT INTO and run the query again.

SQLCODE:  -00117   Database:  SQL/DS
QMF Function:  PQ
DSQ30118
Message:

You cannot modify a table used in a subquery.

Explanation:

"Modify" includes INSERT, UPDATE, and DELETE.

Incorrect:
INSERT INTO Q.STAFF
SELECT * FROM Q.STAFF WHERE YEARS > 7

The example tries to modify the table from which it is receiving data.

User Response:

Change your query so that the same table used in the subquery is not modified or write a separate query to modify the table.

SQLCODE:  -00118   Database:  SQL/DS
QMF Function:  PQ
DSQ30119
Message:

The grouping is inconsistent.

Explanation:

One of the following has occurred:

  1. SELECT has a column name and column function, but no GROUP BY.
    Correct:
    SELECT DEPT, AVG(SALARY) FROM Q.STAFF
    GROUP BY DEPT
  2. Some columns listed after SELECT is not listed after GROUP BY.
    Correct:
    SELECT DEPT, JOB, AVG(SALARY)
    FROM Q.STAFF
    GROUP BY DEPT, JOB
    (Not: GROUP BY DEPT)
    (If you use * after SELECT, list all column names after GROUP BY.
  3. After the HAVING keyword, you use a condition that doesn't apply to a group.
          Correct:  HAVING MIN(YEARS) > 6
                    (Not: HAVING YEARS > 6)
  4. An expression mixes a group value with a single value.
    Correct:
    SELECT DEPT, AVG(SALARY) FROM Q.STAFF
    GROUP BY DEPT
  5. A column listed after GROUP BY is a view column derived from a constant, expression, or function.
  6. A HAVING is specified without a GROUP BY.
User Response:

Change the SQL statement and run your query again.

SQLCODE:  -00119   Database:  SQL/DS
QMF Function:  PQ
DSQ30120
Message:

A built-in function or grouped column is used incorrectly.

Explanation:

You cannot use a built-in function (AVG, COUNT, MAX, MIN or SUM) after WHERE or SET except as part of a subquery.

Correct:
WHERE YEARS > (SELECT AVG(YEARS)
    FROM Q.STAFF)

Incorrect:
WHERE YEARS > AVG(YEARS)

If your query refers to a view, a column named after GROUP BY in the view definition cannot be used in a condition in your query. For example, if DEPT is used after GROUP BY in defining VIEW, then the following is

Incorrect:
SELECT DEPT, SUMSALARY FROM VIEW
WHERE DEPT = 20
User Response:

Change your query and run it again. If your query uses a view, write a query to select from the table the view is based on.

SQLCODE:  -00120   Database:  SQL/DS
QMF Function:  PQ
DSQ30121
Message:

You cannot modify a column twice in the same query.

Explanation:

"Modify" includes INSERT and UPDATE. For example, in the following invalid statement, the column 'YEARS' cannot be modified more than once.

Incorrect:
INSERT INTO Q.STAFF (ID, YEARS, JOB,
    YEARS)
VALUES (400, 7, 'clerk', 8)
User Response:

Change the SQL statement so that there is only one modification and run it again.

SQLCODE:  -00121   Database:  SQL/DS
QMF Function:  PQ
DSQ30124
Message:

No more than 16 columns allowed after ORDER BY.

Explanation:

Your ORDER BY list contains more than 16 columns referred to by name or integer. The maximum allowed is 16.

User Response:

Reduce the number of columns referred to in the ORDER BY clause to 16 or less and run the query again.

SQLCODE:  -00124   Database:  SQL/DS
QMF Function:  PQ
DSQ30125
Message:

You cannot ORDER BY column &V1..

Explanation:

There is no column &V1 in the list after SELECT. (The column number refers to the place of a column in the list after SELECT. You cannot use column 8, for example, if fewer than eight columns are listed.)

User Response:

Correct the query and run it again.

SQLCODE:  -00125   Database:  SQL/DS
QMF Function:  PQ
DSQ30127
Message:

DISTINCT cannot be used more than once in a query.

Explanation:

DISTINCT was used more than once in your query. DISTINCT is implied if you chose to keep a single copy of selected rows. You may have done that and also used DISTINCT in a summary function.

User Response:

Use DISTINCT no more than once in your query.

SQLCODE:  -00127   Database:  SQL/DS
QMF Function:  PQ
DSQ30128
Message:

Use NULL with IS or IS NOT.

Explanation:

NULL cannot be used as an item in a list following IN in a WHERE clause. For example

WHERE AMT IN (20,50,NULL) is wrong, but
WHERE AMT IN (20,50) OR AMT IS NULL
is OK.
User Response:

Change the phrase with NULL and run your query again.

SQLCODE:  -00128   Database:  SQL/DS
QMF Function:  PQ
DSQ30129
Message:

You used too many tables or columns in your query.

Explanation:

In your query, one of the following items exceeds the limits listed:

      Table Names              15
      Selected columns        255
User Response:

Correct your query to conform to the limits, then rerun it.

SQLCODE:  -00129   Database:  SQL/DS
QMF Function:  PQ
DSQ30130
Message:

You use SELECT twice; parentheses needed.

Explanation:

Your query refers to a value or set of values computed by another query, called a subquery. The subquery portion of the complete query must be enclosed in parentheses.

User Response:

Place parentheses around the subquery (SELECT..........) and run the query again.

SQLCODE:  -00130   Database:  SQL/DS
QMF Function:  PQ
DSQ30132
Message:

LIKE is used incorrectly.

Explanation:

A condition written with LIKE is invalid. Follow LIKE by a character constant; you may use the symbols '%' and '_'.

Write   NAME LIKE 'JO%' , where NAME is
                          a column name.
User Response:

Change the condition using LIKE and run your query again.

SQLCODE:  -00132   Database:  SQL/DS
QMF Function:  PQ
DSQ30133
Message:

An expression is improperly used after a HAVING or WHERE clause.

Explanation:

You must use a column name, rather than an expression, as the argument of a built-in function, when that column is a correlated reference column in a WHERE or HAVING clause. For example:

SELECT DEPT,SUM(YEARS) FROM Q.STAFF VARX
GROUP BY DEPT HAVING SUM(YEARS) >
ANY (SELECT AVG(YEARS) FROM Q.STAFF
   GROUP BY DEPT HAVING MAX(YEARS) >
   MIN(1*VARX.YEARS))

is incorrect -- (1*VARX.YEARS) cannot be the argument of a built-in function MIN because it is an expression containing the correlated reference variable VARX.YEARS.

User Response:

Correct your query and rerun it.

SQLCODE:  -00133   Database:  SQL/DS
QMF Function:  PQ
DSQ30134
Message:

A LONG VARCHAR column is used incorrectly.

Explanation:

Several restrictions exist when using a column with data type LONG VARCHAR or LONG VARGRAPHIC. It cannot be selected in the Columns section of the query when the Duplicate Rows indicates to keep a single copy of each row. Some releases of the Relational Database manager do not allow it to be used in a Row Condition with an operator of Starting With, Ending With, or Containing.

User Response:

Change your use of the column with data type LONG VARCHAR or LONG VARGRAPHIC, or remove the Keep Single Copy line from the query.

SQLCODE:  -00134   Database:  SQL/DS
QMF Function:  PQ
DSQ30135
Message:

A LONG VARCHAR column is used incorrectly.

Explanation:

The following limitations apply to using a column of data type LONG VARCHAR or LONG VARGRAPHIC:

User Response:

Either comply with the previously listed conditions for columns of data type LONG VARCHAR or LONG VARGRAPHIC, or remove the column, and rerun the query.

SQLCODE:  -00135   Database:  SQL/DS
QMF Function:  PQ
DSQ30137
Message:

The length of the result from &V1 is greater than &V2..

Explanation:

The result of the &V1 operation is too long. It cannot be greater than &V2..

User Response:

Change your query to create a shorter result, and run the query again.

SQLCODE:  -00137   Database:  SQL/DS
QMF Function:  PQ
DSQ30150
Message:

You cannot modify the data in this view.

Explanation:

You cannot use INSERT, UPDATE, or DELETE a view that ...

  1. is based on more than one table.
  2. contains a column defined by an expression or built-in function. Examples: UNITS*PRICE, AVG(SALARY).
  3. is defined by a SELECT statement that uses DISTINCT or GROUP BY.
  4. does not contain all non-NULLable columns in the referenced table.
User Response:

Write separate queries to modify the tables used to create the view.

SQLCODE:  -00150   Database:  SQL/DS
QMF Function:  PQ
DSQ30151
Message:

You cannot modify the data in this view.

Explanation:

You cannot use INSERT, UPDATE, or DELETE a view that ...

  1. is based on more than one table.
  2. contains a column defined by an expression or built-in function. Examples: UNITS*PRICE, AVG(SALARY).
  3. is defined by a SELECT statement that uses DISTINCT or GROUP BY.
  4. does not contain all non-NULLable columns in the referenced table.
User Response:

Write separate queries to modify the tables used to create the view.

SQLCODE:  -00151   Database:  SQL/DS
QMF Function:  PQ
DSQ30152
Message:

Condition uses a column defined by a built-in function.

Explanation:

One of the tables used in your query is a view. After WHERE, a condition uses a column from that view that is defined in terms of one of the built-in functions (AVG, COUNT, MAX, MIN, SUM). Columns defined in that way cannot be used in conditions.

User Response:

Check the definition of the view to see what columns you cannot use after WHERE. Correct your query and run it again.

SQLCODE:  -00152   Database:  SQL/DS
QMF Function:  PQ
DSQ30153
Message:

View columns defined by expressions or functions need names.

Explanation:

Your CREATE VIEW statement includes a column defined from an expression, such as UNITS * PRICE; a built-in function, such as AVG(YEARS); or a constant, such as 'JUNE 1'. You must supply names for those columns, and so you must have a name list with a name for each column.

User Response:

Provide new names for all columns defined from functions or expressions in your CREATE VIEW query.

SQLCODE:  -00153   Database:  SQL/DS
QMF Function:  PQ
DSQ30154
Message:

Invalid definition or use of view.

Explanation:

The operation violates one of these rules:

User Response:

Make your command valid according to the rules on views and give it again.

SQLCODE:  -00154   Database:  SQL/DS
QMF Function:  PQ
DSQ30155
Message:

A view defined by GROUP BY or HAVING is named after FROM.

Explanation:

One of the tables named after FROM in your query is a view defined by a query that uses a GROUP BY or HAVING clause. That view cannot be named after FROM along with any other table.

User Response:

Rewrite your query so as not to name the view along with another table, after FROM. Run the query again.

SQLCODE:  -00155   Database:  SQL/DS
QMF Function:  PQ
DSQ30156
Message:

Invalid definition or use of view.

Explanation:

This view was created using DISTINCT or GROUP-BY. You must conform to the following rules in order to use the view.

User Response:

Change the query and run it again.

SQLCODE:  -00156   Database:  SQL/DS
QMF Function:  PQ
DSQ30158
Message:

The CREATE VIEW and SELECT lists need the same number of columns.

Explanation:

There must be a column name in your SELECT list for every column name in the CREATE VIEW list. If you replace the list of names in the SELECT list with an asterisk (*), the view will contain the same column names as the original table.

User Response:

Change the SELECT list column names to conform to the CREATE VIEW list and run the query again.

SQLCODE:  -00158   Database:  SQL/DS
QMF Function:  PQ
DSQ30163
Message:

Invalid use of colon (:).

Explanation:

Your query uses a name preceded by a colon, as in "WHERE NAME = :NAME (That usage has a meaning in a query submitted to the preprocessor program, but not in a query in QMF.)

User Response:

Correct your query. Use names of tables, columns, or views, or else character constants enclosed in single quotes.

SQLCODE:  -00163   Database:  SQL/DS
QMF Function:  PQ
DSQ30164
Message:

Invalid DBCS constant.

Explanation:

Your query included a "DBCS constant", a graphic literal that begins with G', N', or X' .

If you intended to use a character constant, enclose the entire constant in single quotes.

If you intended to use a DBCS constant, it should be in the following form:

   G'<aabbcc>'  or  N'<aabbcc>'

The < and > stand for shift-out (so) and shift-in (si). There must be an even number of characters between so and si.

User Response:

Change your query and run it again.

SQLCODE:  -00164   Database:  SQL/DS
QMF Function:  PQ
DSQ30165
Message:

Data within double quotes cannot begin with a blank.

Explanation:

In your expression you have a double quote followed by data that begins with a blank. This is not allowed. No valid name that must be placed within double quotes can begin with a blank.

User Response:

Change the expression so that the name within double quotes is correct.

SQLCODE:  -00165   Database:  SQL/DS
QMF Function:  PQ
DSQ30166
Message:

Invalid DBCS constant.

Explanation:

Your query included a "DBCS constant", a graphic literal that begins with G', N', or X' .

If you intended to use a character constant, enclose the entire constant in single quotes.

If you intended to use a DBCS constant, it should be in the following form:

   G'<aabbcc>'  or  N'<aabbcc>'

The < and > stand for shift-out (so) and shift-in (si). There must be an even number of characters between so and si.

User Response:

Change your query and run it again.

SQLCODE:  -00166   Database:  SQL/DS
QMF Function:  PQ
DSQ30167
Message:

Invalid hexadecimal literal.

Explanation:

Your query included a "hexadecimal literal", a constant that begins with X'.

If you intended to use a character constant, enclose the entire constant in single quotes.

If you intended to use a hexadecimal literal, use a valid hexadecimal code expressed with an even number of characters.

User Response:

Correct your query and run it again.

SQLCODE:  -00167   Database:  SQL/DS
QMF Function:  PQ
DSQ30169
Message:

Invalid DBCS constant.

Explanation:

Your query included a "DBCS constant", a graphic literal that begins with G', N', or X'.

If you intended to use a character constant, enclose the entire constant in single quotes.

If you intended to use a DBCS constant, it should be in the following form:

   G'<aabbcc>'  or  N'<aabbcc>'

The < and > stand for shift-out (so) and shift-in (si). There must be an even number of characters between so and si.

User Response:

Change your query and run it again.

SQLCODE:  -00169   Database:  SQL/DS
QMF Function:  PQ
DSQ30170
Message:

Invalid DBCS constant.

Explanation:

Your query included a "DBCS constant", a graphic literal that begins with G', N', or X'.

If you intended to use a character constant, enclose the entire constant in single quotes.

If you intended to use a DBCS constant, it should be in the following form:

   G'<aabbcc>'  or  N'<aabbcc>'

The < and > stand for shift-out (so) and shift-in (si). There must be an even number of characters between so and si.

User Response:

Change your query and run it again.

SQLCODE:  -00170   Database:  SQL/DS
QMF Function:  PQ
DSQ30171
Message:

Argument '&V1' of scalar function '&V2' is invalid.

Explanation:

The data type, length, or value specified for scalar function '&V2' is incorrect. Refer to SQL query publications for more information.

User Response:

Change the data type, length, or value of '&V2' function and run the query again.

SQLCODE:  -00171   Database:  SQL/DS
QMF Function:  PQ
DSQ30172
Message:

The number of arguments specified for scalar function '&V1' is invalid.

Explanation:

The SQL statement has specified the scalar function &V1 with either too many or too few arguments. The supported functions are:

DATE, TIME, TIMESTAMP, YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, MICROSECOND, CHAR, DAYS, AVG, MAX, MIN, COUNT.

User Response:

Examine the use of the scalar function &V1. Change the scalar function and run the query again.

SQLCODE:  -00172   Database:  SQL/DS
QMF Function:  PQ
DSQ30180
Message:

The datetime value has invalid syntax.

Explanation:

The string representation of a valid DATE has one of the following formats:

'mm/dd/yyyy'  'dd.mm.yyyy'  'yyyy-mm-dd'
 or   LOCAL format

The string representation of a valid TIME has one of the following formats:

'mm/dd/yyyy'  'dd.mm.yyyy'  'yyyy-mm-dd'
 or  LOCAL format

The string representation of a valid TIMESTAMP has the following format:

'yyyy-mm-dd-hh.mm.ss.nnnnnn'
User Response:

Correct the syntax for the datetime value and run the query again.

SQLCODE:  -00180   Database:  SQL/DS
QMF Function:  PQ
DSQ30181
Message:

The datetime value is not a valid value.

Explanation:

The string representation of a datetime value contains a value which is out of range. The proper ranges for datetime values are as follows:

Years   -  1  to  9999
Months  -  1  to    12
Days    -  1  to    31
Hours   -  0  to    24
Minutes -  0  to    59
Seconds -  0  to    59
User Response:

Correct the datetime value and run the query again.

SQLCODE:  -00181   Database:  SQL/DS
QMF Function:  PQ
DSQ30182
Message:

An arithmetic expression with a datetime value is invalid.

Explanation:

The specified arithmetic expression contains an improperly used datetime value or simple duration. Some correct examples are:

SELECT STARTD + 10102433. FROM Q.PROJECT
SELECT STARTD + 1 YEAR    FROM Q.PROJECT
User Response:

Correct the expression and run the query again.

SQLCODE:  -00182   Database:  SQL/DS
QMF Function:  PQ
DSQ30183
Message:

An arithmetic operation on a date or timestamp has a result that is invalid.

Explanation:

The result of an arithmetic operation is a date or timestamp that is not within the valid range. Valid dates are between 0001-01-01 and 9999-12-31.

User Response:

Correct the datetime value and run the query again.

SQLCODE:  -00183   Database:  SQL/DS
QMF Function:  PQ
DSQ30184
Message:

Invalid use of "?".

Explanation:

If the character "?" is part of the name of something in the database, the name must be enclosed in double quotes. Any other use of "?" for a name in a query is invalid. The character "?" can also be used as a character constant, but it must be enclosed in single quote.

User Response:

Correct your query and run the query again.

SQLCODE:  -00184   Database:  SQL/DS
QMF Function:  PQ
DSQ30185
Message:

The date or time value cannot be formatted.

Explanation:

One of the following has occurred:

  1. You used the LOCAL option to format a date or time value, but no local date or time routine is available.
  2. You specified a string representation of a date or time value. However, the string is not in one of the formats recognized by the database, and there is no local date or time routine available to process the string.
User Response:

Either change your string representation of the date or time value to be one of the recognized formats, or contact your QMF administrator for assistance in making the local date or time routine available to the database.

SQLCODE:  -00185   Database:  SQL/DS
QMF Function:  PQ
DSQ30187
Message:

A simple duration is not in a date/time arithmetic expression.

Explanation:

Simple durations such as 1 MONTH must be used in a correct date/time arithmetic context. For example, a WHERE clause for the statement:

SELECT PROJNO FROM Q.PROJECT could be:
  WHERE STARTD - 1 MONTH > '1987-05-05'
  WHERE STARTD > DATE('1987-05-05') +
    1 MONTH

DO NOT use them alone in an expression such as:

WHERE STARTD > 1 MONTH.

Or in an expression that is not identified as a date:

SELECT PROJNO FROM Q.PROJECT could be:
  WHERE STARTD - 1 MONTH > '1987-05-05'
  WHERE STARTD > DATE('1987-05-05') +
     1 MONTH
User Response:

Put the simple duration in a correct date/time arithmetic expression and run the query again.

SQLCODE:  -00187   Database:  SQL/DS
QMF Function:  PQ
DSQ30191
Message:

The mixed data consists of improper DBCS data value.

Explanation:

The mixed data may have a missing X'OE' (shift-out) or X'OF' (shift-in) or half of a DBCS character.

Refer to the SQL/DS Messages and codes manual for a detailed explanation of this error with reason code &V1..

User Response:

Verify that the referenced data values are correct. If not, make the necessary change and rerun the query.

SQLCODE:  -00191   Database:  SQL/DS
QMF Function:  PQ
DSQ30192
Message:

The first argument of the &V1 scalar function cannot be of MIXED subtype.

Explanation:

You cannot use an expression of MIXED subtype as the first argument of the &V1 scalar function.

User Response:

Correct your SQL statement and try again.

SQLCODE:  -00192   Database:  SQL/DS
QMF Function:  PQ
DSQ30201
Message:

&V1 is not a valid table name in this query.

Explanation:

A table name identifier, &V1, is used incorrectly in this expression. Table names in an expression may only be used to qualify a column name. For example,

Q.STAFF.SALARY
User Response:

Correct the expression so that the table name is used correctly or remove the table name from the expression.

SQLCODE:  -00201   Database:  SQL/DS
QMF Function:  PQ
DSQ30202
Message:

Column &V1 is not in any table named in the query.

Explanation:

&V1 is not a column in any table or view named in the query. If it is intended to be a character constant, enclose it in single quotes.

User Response:

Change the column name or add the table containing column &V1 to the query, and run the query again.

SQLCODE:  -00202   Database:  SQL/DS
QMF Function:  PQ
DSQ30203
Message:

Column &V1 is in more than one table.

Explanation:

An unqualified column name is ambiguous if more than one table or view in the FROM clause has a column with that name, or if more than one column of a nested table expression has that name. A qualified column name is ambiguous only if the correlation name for the column name and for a nested table expression is not unique.

User Response:

If the problem is caused by a non-unique column name in a nested table expression, change the nested table expression so that the column is unique. If the problem is caused by the use of an unqualified name, qualify it with a table, view or correlation name.

SQLCODE:  -00203   Database:  SQL/DS
QMF Function:  PQ
DSQ30204
Message:

&V1..&V2 not in system catalog.

Explanation:

The object named in your statement cannot be found in the system catalog. The name may be misspelled or you may have the wrong qualifier (&V1).

User Response:

Correct the name and run your query again.

SQLCODE:  -00204   Database:  SQL/DS
QMF Function:  PQ
DSQ30205
Message:

&V1 is not a column defined in a selected table.

Explanation:

&V1 has been specified as a column, and it could not be found in any of the tables you selected. You may have misspelled the name. If &V1 is intended to be a character constant, enclose it in single quotes.

User Response:

You can use the command DISPLAY Q.COLUMN_LIST to display a table of information about all the columns in tables you are authorized to use. Verify the spelling of the column name, and then correct the column name or add the table containing column &V1 to the query.

SQLCODE:  -00205   Database:  SQL/DS
QMF Function:  PQ
DSQ30207
Message:

Use column numbers with ORDER BY, not column names.

Explanation:

When using ORDER BY with UNION, do not use a column name after ORDER BY. Instead, use a number that tells the position of the column in the list after SELECT.

Example:
SELECT NAME, ID FROM Q.STAFF
UNION
SELECT NAME, TEMPID FROM Q.APPLICANT
ORDER BY 1
User Response:

Change the column names to column numbers and run the query again.

SQLCODE:  -00207   Database:  SQL/DS
QMF Function:  PQ
DSQ30208
Message:

&V1 must be in the SELECT list.

Explanation:

&V1 follows ORDER BY. Either &V1 was not included in the SELECT list or it is misspelled after ORDER BY.

User Response:

Add &V1 to the SELECT list; be sure it agrees with the column name after ORDER BY.

SQLCODE:  -00208   Database:  SQL/DS
QMF Function:  PQ
DSQ30209
Message:

Column &V1 appears after ORDER BY and twice after SELECT.

Explanation:

Your SELECT list contains the column name &V1 from more than one table. Which of the columns of the same name do you wish to ORDER BY?

User Response:

After ORDER BY, refer to the proper column by a number. Or add a qualifier to the column name.

SQLCODE:  -00209   Database:  SQL/DS
QMF Function:  PQ
DSQ30211
Message:

Table name &V1 is ambiguous.

Explanation:

The table name &V1 occurs two or more times in the query. Since the table name is not unique, the alternate identifier must be used. For example:

A.SALARY
User Response:

Use the alternate identifier to qualify the column name in your expression.

SQLCODE:  -00211   Database:  SQL/DS
QMF Function:  PQ
DSQ30312
Message:

Invalid use of colon (:).

Explanation:

Your query uses a name preceded by a colon, as in "WHERE NAME = :NAME (That usage has a meaning in a query submitted to the preprocessor program, but not in a query in QMF.)

User Response:

Correct your query. Use names of tables, columns, or views, or else character constants enclosed in single quotes.

SQLCODE:  -00312   Database:  SQL/DS
QMF Function:  PQ
DSQ30313
Message:

Invalid use of "?".

Explanation:

If the character "?" is part of the name of something in the database, the name must be enclosed in double quotes. Any other use of "?" for a name in a query is invalid. The character "?" can also be used as a character constant, but it must be enclosed in single quote.

User Response:

Correct your query and run the query again.

SQLCODE:  -00313   Database:  SQL/DS
QMF Function:  PQ
DSQ30330
Message:

One or more characters could not be converted into a usable code for the current server.

Explanation:

Your SQL statement referenced a character string, which must be converted to a code suitable for the application server. However, due to a mismatch in data representation, this was not possible. The character string is incompatible with the corresponding column data type. Consequently, you cannot use the character string as specified.

User Response:

Verify that the character columns and values you referenced are correct. If not, make the necessary change and try the query again. Otherwise, contact your QMF administrator.

SQLCODE:  -00330   Database:  SQL/DS
QMF Function:  PQ
DSQ30332
Message:

A character string could not be converted due to incompatible CCSIDs.

Explanation:

Your SQL statement referenced a character string that has a coded character set ID(CCSID) &V1 in a coded character set that differs from the current one. To use this character string at the current server, it must be converted from the source CCSID &V1 to the target CCSID &V2. However, this pair of CCSIDs conversion rule is not defined in the SYSSTRINGS system table. Therefore, the database system could not convert the character string to a code suitable for the application server.

Refer to the SQL/DS Messages and codes manual for a detailed explanation of this error with reason code &V3. Possible causes for this conversion error are:

User Response:

Verify that the referenced character columns and values that you referenced are correct. If not, make the necessary change and rerun the query again. Otherwise, contact your QMF administrator.

SQLCODE:  -00332   Database:  SQL/DS
QMF Function:  PQ
DSQ30351
Message:

Invalid data type in position &V1..

Explanation:

Some SQL data types are not supported by the application requester. &V1 is the position of the first element with an invalid data type in the SQLDA. A common cause for this error is that the application requester has attempted to describe large object data residing at the application server. Some of the SQLTYPEs that can cause this error are: LOB, BLOB, CLOB, and DBLOB.

User Response:

Remove the invalid data types and run the query again.

SQLCODE:  -00351   Database:  SQL/DS
QMF Function:  PQ
DSQ30401
Message:

Data of different types cannot be mixed or compared.

Explanation:

Either an expression mixes numeric with non-numeric data, an attempt is made to compare numeric and non-numeric data, or an attempt is made to compare character and graphic data.

Assuming SALARY is a numeric column and NAME is non-numeric, the following examples are invalid:

SALARY - NAME      - is an invalid
                     expression
NAME/2             - is an invalid
                     expression
If NAME Is Equal
To SALARY          - is an invalid
                     condition
User Response:

Change your expression so that it does not mix data of different types.

SQLCODE:  -00401   Database:  SQL/DS
QMF Function:  PQ
DSQ30402
Message:

Numeric data is required.

Explanation:

You used non-numeric data with a numeric operator or function. Two examples are:

NAME
AVG(NAME)

where NAME is column name not defined as numeric.

User Response:

Change your query to use only numeric data with the arithmetic expression or function.

SQLCODE:  -00402   Database:  SQL/DS
QMF Function:  PQ
DSQ30404
Message:

Some character value is too long for the corresponding column.

Explanation:

One of the values you are trying to insert is longer than the width of the column you want to insert it into.

User Response:

Change the value to fit the column and run the query again.

SQLCODE:  -00404   Database:  SQL/DS
QMF Function:  PQ
DSQ30405
Message:

Numeric value is outside allowable range for column.

Explanation:

Your query specifies a column that has an incorrect numeric value. The value might be the result of an expression.

The proper ranges for SQL values are as follows:

 FLOAT ...... -7.2E75 to -5.4E-79, 0,
              5.4E-79 to 7.2E75
 INTEGER .... -2147483648 to 2147483647
 SMALLINT ... -32768 to 32767
 DECIMAL .... The range depends on the
              precision and scale of
              the column.  For example,
              if the value is being
              specified for a decimal
              column defined with
              precision = 5 and
              scale = 2, the range is
              -999.99 to 999.99.
User Response:

Change the numeric value for the column and rerun your query.

SQLCODE:  -00405   Database:  SQL/DS
QMF Function:  PQ
DSQ30406
Message:

Numeric value is outside allowable range for column.

Explanation:

Your query specifies a column that has an incorrect numeric value. The value might be the result of an expression.

The proper ranges for SQL values are as follows:

 FLOAT ...... -7.2E75 to -5.4E-79, 0,
              5.4E-79 to 7.2E75
 INTEGER .... -2147483648 to 2147483647
 SMALLINT ... -32768 to 32767
 DECIMAL .... The range depends on the
              precision and scale of
              the column.  For example,
              if the value is being
              specified for a decimal
              column defined with
              precision = 5 and
              scale = 2, the range is
              -999.99 to 999.99.
User Response:

Change the numeric value for the column and rerun your query.

SQLCODE:  -00406   Database:  SQL/DS
QMF Function:  PQ
DSQ30407
Message:

You cannot update a NOT NULL column with a null value.

Explanation:

Some column you are updating does not allow NULL, and you want to update it with a null value. The null value could be from a subquery.

User Response:

Remove the invalid NULL from your query and run it again.

SQLCODE:  -00407   Database:  SQL/DS
QMF Function:  PQ
DSQ30408
Message:

A subquery returned an incompatible data type.

Explanation:

A value from a subquery used to update or insert was incompatible with the corresponding column. The subquery value and the corresponding column must have the same data type. For example, to update a numeric column, you must select only a numeric value in the subquery.

User Response:

Change the subquery and run the query again.

SQLCODE:  -00408   Database:  SQL/DS
QMF Function:  PQ
DSQ30409
Message:

DISTINCT must be used in the expression of a COUNT summary function.

Explanation:

In prompted query, the function COUNT can be used only with DISTINCT and a column name. Example of usage:

COUNT(DISTINCT column name)

gives the number of different values in the column.

User Response:

Change your use of COUNT.

SQLCODE:  -00409   Database:  SQL/DS
QMF Function:  PQ
DSQ30410
Message:

&V1 is not a valid numeric value.

Explanation:

Your query tried to assign &V1 to a numeric field. What it tried to assign is either a floating point constant of 31 characters or more, or a value containing non-numeric characters.

User Response:

Change &V1 and run your query again.

SQLCODE:  -00410   Database:  SQL/DS
QMF Function:  PQ
DSQ30411
Message:

Use of USER, CURRENT DATE/TIME, or CURRENT SQLID is invalid.

Explanation:

USER is not valid in Prompted Query. The CURRENT DATE/TIME or CURRENT SQLID is used in a way that is invalid for its data type:

  1. CURRENT DATE has an implied data type of DATE.
  2. CURRENT TIME has an implied data type of TIME.
  3. CURRENT TIMESTAMP has an implied data type of TIMESTAMP.
  4. CURRENT TIMEZONE has an implied data type of DECIMAL(6,0).
  5. CURRENT SQLID has an implied data type of CHAR(8).
  6. CURRENT SQLID cannot be used when accessing remote data.
User Response:

Change your query to conform to the above rules.

SQLCODE:  -00411   Database:  SQL/DS
QMF Function:  PQ
DSQ30412
Message:

Use only one column after SELECT in the subquery.

Explanation:

When SELECT is used in a subquery, (except after INSERT), it can select only one column name.

Incorrect: (SELECT PARTNO, PRICE.......)
User Response:

Change the SELECT list in your subquery and run the query again.

SQLCODE:  -00412   Database:  SQL/DS
QMF Function:  PQ
DSQ30413
Message:

Arithmetic overflow during change of data type.

Explanation:

The result of an arithmetic or insert operation is not valid because arithmetic overflow occurred. For example, you may have tried to INSERT values with a data type of INTEGER into a column with data type of SMALLINT. Conversion is possible so long as the INTEGER values are small enough. But a value larger than 32767 will cause arithmetic overflow.

User Response:

Change your operation and run the query again.

SQLCODE:  -00413   Database:  SQL/DS
QMF Function:  PQ
DSQ30414
Message:

LIKE requires character or graphic data, the column has numeric or datetime data.

Explanation:

You wrote something like this: LIKE '1%' or LIKE '%12.40.25', where LIKE compares a partial value to the values in some column. The column has a numeric or datetime data type and LIKE requires character or graphic data.

User Response:

Correct your query and run it again. With numeric data, use a numeric comparison, like "n >= 1000 and n < 2000".

SQLCODE:  -00414   Database:  SQL/DS
QMF Function:  PQ
DSQ30415
Message:

Column attributes in your SELECT lists do not agree.

Explanation:

You connected two or more queries by UNION or UNION ALL. The SELECT lists in each query must have the same number of columns. Corresponding columns in each SELECT list must have comparable data definitions for the SELECT to succeed. If corresponding columns have field procedures, the columns must have the same field procedure and column CCSID value.

User Response:

Rewrite your query with the SELECT lists of comparable columns, and rerun your query.

SQLCODE:  -00415   Database:  SQL/DS
QMF Function:  PQ
DSQ30416
Message:

Wide character columns cannot be used with UNION.

Explanation:

A column with data type LONG VARCHAR, or with a width greater than 254, cannot be listed after SELECT in a query that uses UNION. Columns with these data types can be used: INTEGER, SMALLINT, DECIMAL, FLOAT, CHAR. A VARCHAR column can be used if its width is less than 255.

User Response:

Remove any column wider than 254 characters from the SELECT list of any query used with UNION.

SQLCODE:  -00416   Database:  SQL/DS
QMF Function:  PQ
DSQ30417
Message:

Invalid use of "?".

Explanation:

If the character "?" is part of the name of something in the database, the name must be enclosed in double quotes. Any other use of "?" for a name in a query is invalid. The character "?" can also be used as a character constant, but it must be enclosed in single quote.

User Response:

Correct your query and run the query again.

SQLCODE:  -00417   Database:  SQL/DS
QMF Function:  PQ
DSQ30418
Message:

Invalid use of "?".

Explanation:

If the character "?" is part of the name of something in the database, the name must be enclosed in double quotes. Any other use of "?" for a name in a query is invalid. The character "?" can also be used as a character constant, but it must be enclosed in single quote.

User Response:

Correct your query and run the query again.

SQLCODE:  -00418   Database:  SQL/DS
QMF Function:  PQ
DSQ30419
Message:

Decimal division is not possible with the values used.

Explanation:

Either the precision of the numerator or the scale of the denominator is too large for decimal division.

User Response:

Change the precision or scale of your decimal division values and run the query again. Note that an integer or small integer value may have been converted to decimal for this calculation.

SQLCODE:  -00419   Database:  SQL/DS
QMF Function:  PQ
DSQ30421
Message:

Even number of hexadecimal characters needed.

Explanation:

Your query included a "hexadecimal literal", a constant that begins with X'. The constant is associated with a column that has a GRAPHIC data type, and so must represent an even number of hexadecimal characters. Check that the length of the constant (between the single quotes) is divisible by four.

User Response:

Correct your query and run it again.

SQLCODE:  -00421   Database:  SQL/DS
QMF Function:  PQ
DSQ30422
Message:

SELECT lists do not have the same number of columns.

Explanation:

You connected two or more queries by UNION. The SELECT lists in each query must have the same number of columns.

User Response:

Correct the query and run it again.

SQLCODE:  -00422   Database:  SQL/DS
QMF Function:  PQ
DSQ30423
Message:

Invalid hexadecimal literal after IN.

Explanation:

Your query included a "hexadecimal literal", a constant that begins with X'. If there is a hexadecimal literal before IN, the first item in the list after IN may NOT be a hexadecimal literal.

Incorrect:
  X'C9C4' IN (X'F1F0', X'F2F0')

Correct:
  X'C9C4' IN (10, X'F2F0')
User Response:

Correct your query and run it again.

SQLCODE:  -00423   Database:  SQL/DS
QMF Function:  PQ
DSQ30516
Message:

A subquery using a GROUP BY or HAVING clause needs ALL, ANY, EXISTS, or IN.

Explanation:

A subquery that uses a GROUP BY or HAVING clause can be expected to produce more than one value. It should be preceded by one of the keywords ALL, ANY, EXISTS, or IN.

User Response:

Change the query and run the query again.

SQLCODE:  -00516   Database:  SQL/DS
QMF Function:  PQ
DSQ30550
Message:

You cannot create &V1 for the owner "SYSTEM".

Explanation:

For example, you cannot run a query that contains a statement like this:

   CREATE TABLE SYSTEM.&V1 .....
User Response:

Do not attempt this operation.

SQLCODE:  -00550   Database:  SQL/DS
QMF Function:  PQ
DSQ30551
Message:

The specified object does not exist, or you lack needed authority.

Explanation:

The specified object does not exist, or it is a read-only view, or you lack some needed authority:

  1. SELECT authority to SELECT from another's table or view.
  2. INSERT, UPDATE, DELETE, or ALTER authority for another's table or view. INDEX authority is needed to CREATE an index.
  3. GRANT authority (via the WITH GRANT OPTION) to GRANT authority to another's table or view.
  4. ALTER authority to perform a FOREIGN KEY, or DROP FOREIGN KEY, or DROP PRIMARY KEY operation.
  5. Specific authority needed to CREATE a table, SAVE DATA, or reserve space in the database.
User Response:

If you misnamed an existing object, use the correct name. If you lack needed authority, contact your QMF administrator.

SQLCODE:  -00551   Database:  SQL/DS
QMF Function:  PQ
DSQ30552
Message:

The specified object does not exist, or you lack needed authority.

Explanation:

The specified object does not exist, or it's a read-only view, or you lack some needed authority, as follows:

  1. SELECT authority to SELECT from another's table or view.
  2. INSERT, UPDATE, DELETE, or ALTER authority for another's table or view. INDEX authority is needed to CREATE an index.
  3. GRANT authority (via the WITH GRANT OPTION) to GRANT authority to another's table or view.
  4. ALTER authority to perform a FOREIGN KEY, or DROP FOREIGN KEY, or DROP PRIMARY KEY operation.
  5. Specific authority needed to CREATE a table, SAVE DATA, or reserve space in the database.
User Response:

If you misnamed an existing object, use the correct name. If you lack needed authority, contact your QMF administrator.

SQLCODE:  -00552   Database:  SQL/DS
QMF Function:  PQ
DSQ30554
Message:

You cannot grant a privilege to yourself.

Explanation:

The database manager does not allow you to grant your own privileges or set your password even though you have been granted CONNECT authority implicitly through the command "GRANT CONNECT TO ALL USERS". You can only change your password after the DBA has granted CONNECT authority to you explicitly and set you initial password.

User Response:

Correct the statement and run it again.

SQLCODE:  -00554   Database:  SQL/DS
QMF Function:  PQ
DSQ30555
Message:

You cannot revoke a privilege from yourself.

Explanation:

Privileges can only be revoked by one user with the proper authority from another user. However, if SQLRULES(STD) is in effect or CURRENT RULES contains STD, GRANT to self is allowed.

User Response:

Contact your QMF administrator if you want any database privileges reduced.

SQLCODE:  -00555   Database:  SQL/DS
QMF Function:  PQ
DSQ30556
Message:

You cannot revoke this privilege from &V1..

Explanation:

Either &V1 does not have the privilege you are trying to revoke, or it was granted by a user with a different authorization identifier from yours. You can revoke only privileges granted under your authorization identifier.

User Response:

Proceed to another operation.

SQLCODE:  -00556   Database:  SQL/DS
QMF Function:  PQ
DSQ30557
Message:

You cannot grant or revoke this combination of privileges.

Explanation:

One privilege you want to grant or revoke conflicts with the granting or revoking of another privilege in the same statement.

User Response:

Break up your GRANT or REVOKE statement into separate statements and run the query again.

SQLCODE:  -00557   Database:  SQL/DS
QMF Function:  PQ
DSQ30558
Message:

You cannot revoke a "special" privilege from a DBA.

Explanation:

Users cannot revoke "special" privileges , such as RESOURCE, from those with DBA authority.

User Response:

Don't attempt this operation.

SQLCODE:  -00558   Database:  SQL/DS
QMF Function:  PQ
DSQ30561
Message:

You cannot use the database without CONNECT authority.

Explanation:

In order to use the database, you need CONNECT authority. If you have already used the database during this session, another user may have revoked your CONNECT authority while you were running.

User Response:

Report your problem to your QMF administrator.

SQLCODE:  -00561   Database:  SQL/DS
QMF Function:  PQ
DSQ30564
Message:

Statement references an invalid userid.

Explanation:

A SQL userid must begin with an alphabetic character and contain eight or fewer alphabetic or numeric characters. It must contain no embedded blanks or special characters.

The userids PUBLIC and SYSTEM can be used only in certain restricted contexts.

In particular, the special privileges (CONNECT, DBA, and RESOURCE) cannot be GRANTed to or REVOKEd from PUBLIC or SYSTEM.

User Response:

Do not attempt this operation unless you can change the userid it names.

SQLCODE:  -00564   Database:  SQL/DS
QMF Function:  PQ
DSQ30601
Message:

The name of the object you are creating already exists.

Explanation:

The object you are creating or acquiring has a name that already exists.

User Response:

Change the name to one that doesn't exist in the data base and run your query again.

SQLCODE:  -00601   Database:  SQL/DS
QMF Function:  PQ
DSQ30602
Message:

Your table or view contains too many columns.

Explanation:

Your query would create a table or view with more than the maximum number of columns allowed.

User Response:

Change your query so that the table or view you are creating will have less than 256 columns.

SQLCODE:  -00602   Database:  SQL/DS
QMF Function:  PQ
DSQ30603
Message:

The &V1 column contains duplicate values.

Explanation:

You cannot create a &V1 column that contains duplicate values. One of the columns you named does so. If a column has a type of VARCHAR or VARGRAPHIC, two columns that differ only in the number of trailing blanks might cause duplication.

User Response:

Change your CREATE statement so that it does not refer to a column with duplicate values, or else delete rows with duplicate values from the table.

SQLCODE:  -00603   Database:  SQL/DS
QMF Function:  PQ
DSQ30604
Message:

You used a constant that exceeds maximum width allowed.

Explanation:

You specifies a constant that has a length, precision, or scale outside the data type limit. Some possible causes of the error are:

User Response:

Change the constant specification to conform to the data type limit and run your query again. See the SQL Reference manual for your database for a detailed explanation on the data type limits.

SQLCODE:  -00604   Database:  SQL/DS
QMF Function:  PQ
DSQ30606
Message:

The table or column named does not exist or is owned by another user.

Explanation:

The table or column named in your COMMENT ON statement or LABEL ON statement does not exist or it is owned by another user. You can only use the statement(s) for tables you have created. You may COMMENT ON or LABEL ON another user's tables only if you have DBA authority.

User Response:

Continue with another operation.

SQLCODE:  -00606   Database:  SQL/DS
QMF Function:  PQ
DSQ30607
Message:

You cannot add more tables to this DBSPACE.

Explanation:

The maximum number of tables for a DBSPACE is 255.

User Response:

Either create your table in a different DBSPACE, or drop a table in the named DBSPACE to free space for an entry.

SQLCODE:  -00607   Database:  SQL/DS
QMF Function:  PQ
DSQ30608
Message:

DBSPACE not found.

Explanation:

If you used IN with a DBSPACE name, either

  1. The DBSPACE does not exist; or
  2. You are not authorized to use it; or
  3. The DBSPACE is full.

If you didn't use IN, either

  1. There is no default DBSPACE; or
  2. The default DBSPACE is full.
User Response:

Enter the name of a DBSPACE that you can use and run your SQL query again.

SQLCODE:  -00608   Database:  SQL/DS
QMF Function:  PQ
DSQ30609
Message:

You cannot ALTER a SYSTEM DBSPACE.

Explanation:

No user can ALTER a SYSTEM DBSPACE. The information in this storage area is vital to the operation of the system and cannot be changed by the user.

User Response:

Do not attempt this operation.

SQLCODE:  -00609   Database:  SQL/DS
QMF Function:  PQ
DSQ30610
Message:

You cannot create a table in the specified DBSPACE.

Explanation:

You must have the proper authority to create a table in a DBSPACE owned by another user or by the system.

User Response:

Use another DBSPACE to create your table. Follow your local procedures if you need authorization to use a DBSPACE owned by another user or by the system.

SQLCODE:  -00610   Database:  SQL/DS
QMF Function:  PQ
DSQ30611
Message:

You cannot use NOT NULL with ALTER TABLE.

Explanation:

The ALTER TABLE statement adds one new column to a table. All existing rows are expanded with a null value for the new column. The NOT NULL option cannot be used.

User Response:

Remove the NOT NULL option from your ALTER TABLE statement and run the query again.

SQLCODE:  -00611   Database:  SQL/DS
QMF Function:  PQ
DSQ30612
Message:

You used column name &V1 twice.

Explanation:

A table cannot contain two columns with the same name. In CREATE TABLE, CREATE VIEW, or CREATE INDEX you used column name &V1 more than once. In ALTER TABLE, &V1 is already the name of a column in the table.

User Response:

Choose another column name and run your query again.

SQLCODE:  -00612   Database:  SQL/DS
QMF Function:  PQ
DSQ30614
Message:

Columns chosen cannot be indexed.

Explanation:

Under CMS, you cannot index a LONG VARCHAR or LONG VARGRAPHIC column.

Under TSO, you cannot index a VARCHAR column whose maximum allowable length is over 254 characters.

Under either CMS or TSO, you cannot index a group of columns if the sum of their internal lengths exceeds 255 characters.

User Response:

Revise your index or primary key definition, either by omitting one or more of the columns or by replacing long columns with shorter ones.

SQLCODE:  -00614   Database:  SQL/DS
QMF Function:  PQ
DSQ30617
Message:

The CREATE INDEX or PRIMARY KEY statement specifies to many columns.

Explanation:

The number or columns specified in the CREATE INDEX or PRIMARY KEY statement exceeds the maximum number of columns allowed.

User Response:

Change your CREATE INDEX or PRIMARY KEY statement to conform to the column limit.

SQLCODE:  -00617   Database:  SQL/DS
QMF Function:  PQ
DSQ30620
Message:

There is no private, recoverable DBSPACE available.

Explanation:

The DBSPACE name was not specified in the CREATE TABLE command, so a search was done to find a private DBSPACE owned by &V1..

Either there were no DBSPACEs found, they were full, or they were located in non-recoverable storage pools.

User Response:

Either acquire a private DBSPACE, make room in an existing space, or explicitly specify the DBSPACE you want.

SQLCODE:  -00620   Database:  SQL/DS
QMF Function:  PQ
DSQ30640
Message:

Graphic and Mixed data types are not supported by the current server.

Explanation:

Your SQL statement referenced the clause or scalar function, &V1, and the current server does not support it.

This may happen because:

User Response:

Issue the SQL statement on a server that supports Mixed, Graphic and Vargraphic data types. If you use these data types at the current server, contact your QMF administrator to reset the system default CCSIDs.

SQLCODE:  -00640   Database:  SQL/DS
QMF Function:  PQ
DSQ30657
Message:

UPDATE STATISTICS does not work with a view.

Explanation:

The UPDATE STATISTICS statement cannot be used with a view. It can only be used with one table.

User Response:

Write queries to operate on the tables that make up the view and run the query again. Example:

   UPDATE STATISTICS FOR TABLE PRICES

SQLCODE:  -00657   Database:  SQL/DS
QMF Function:  PQ
DSQ30687
Message:

Invalid comparison with a column defined with a field procedure.

Explanation:

The value that is compared to a column defined with a field procedure does not have the same field type. The comparison is performed on the encoded form of the value in the column. For example, if the encoded value of the column is INTEGER, the data type of the value being compared must be identical. If they are strings, their data types must be compatible.

User Response:

Correct the SQL statement and run the query again.

SQLCODE:  -00687   Database:  SQL/DS
QMF Function:  PQ
DSQ30701
Message:

Space allocated for data in your DBSPACE is full.

Explanation:

Your query will not run because there is not enough space for data in your DBSPACE.

User Response:

If you are creating a table, specify a different DBSPACE. Otherwise, contact your QMF administrator for procedures to provide more data space and run the query again.

SQLCODE:  -00701   Database:  SQL/DS
QMF Function:  PQ
DSQ30702
Message:

Space assigned for indexes in your DBSPACE is full.

Explanation:

Your query cannot be processed until more DBSPACE is added for indexes.

User Response:

If you are creating a table, specify a different DBSPACE. Otherwise, contact your QMF administrator for procedures to provide more index space and run the query again.

SQLCODE:  -00702   Database:  SQL/DS
QMF Function:  PQ
DSQ30703
Message:

Space for header information in your DBSPACE is full.

Explanation:

The space allocated in your DBSPACE by the parameter NHEADER for header information is full. Your query cannot be processed unless additional DBSPACE space is obtained.

User Response:

If you are creating a table, specify a different DBSPACE. Otherwise, contact your QMF administrator for procedures to provide more header space and run the query again.

SQLCODE:  -00703   Database:  SQL/DS
QMF Function:  PQ
DSQ30704
Message:

No DBSPACE available of the requested size and type.

Explanation:

Your ACQUIRE DBSPACE statement was not processed. One of the following has occurred:

User Response:

If a storage pool was specified, verify that the storage pool exists by contacting your QMF administrator. If the storage pool exists, reduce the number of pages in your PAGES option or ask for another type of DBSPACE. If this does not work, contact your QMF administrator to request more DBSPACE and enter your ACQUIRE DBSPACE statement again when a DBSPACE has been added.

SQLCODE:  -00704   Database:  SQL/DS
QMF Function:  PQ
DSQ30705
Message:

The value given for &V1 is invalid.

Explanation:

For an ACQUIRE or ALTER DBSPACE statement, the following values are used if the associated parameter is not specified:

    NHEADER  -  8       PAGES  - 128
    PCTFREE  - 15       LOCK   - PAGE
    PCTINDEX - 33

For CREATE INDEX or when adding a primary key to a table, a default of 10 is used for PCTFREE if it is not specified.

The maximum and minimum values for &V1 depend upon the application. Contact your QMF administrator for specific information.

User Response:

Change the value of &V1 and rerun the query.

SQLCODE:  -00705   Database:  SQL/DS
QMF Function:  PQ
DSQ30708
Message:

You cannot drop, lock, or alter a PUBLIC DBSPACE.

Explanation:

A PUBLIC DBSPACE can only be dropped, locked, or altered by a user with the proper authority.

User Response:

Contact a user in your installation with the required authority and request the drop or alter action.

SQLCODE:  -00708   Database:  SQL/DS
QMF Function:  PQ
DSQ30709
Message:

This DBSPACE contains system catalog tables.

Explanation:

No user can drop a DBSPACE containing system catalog tables.

User Response:

Don't attempt to drop this DBSPACE.

SQLCODE:  -00709   Database:  SQL/DS
QMF Function:  PQ
DSQ30710
Message:

The PRIVATE DBSPACE needed by your query is in use.

Explanation:

A PRIVATE DBSPACE can be accessed by only one user at any time. The table you requested in your query is in a PRIVATE DBSPACE now in use.

User Response:

Run your query again when the PRIVATE DBSPACE is available.

SQLCODE:  -00710   Database:  SQL/DS
QMF Function:  PQ
DSQ30712
Message:

There is not enough room in INTERNAL DBSPACEs to run the query.

Explanation:

QMF was not able to acquire sufficiently many, or sufficiently large, INTERNAL DBSPACEs. You may be able to simplify your query or break it up into two queries or more.

User Response:

Ask your QMF administrator to acquire more INTERNAL DBSPACE for QMF.

SQLCODE:  -00712   Database:  SQL/DS
QMF Function:  PQ
DSQ30801
Message:

An arithmetic operation in the SQL statement has resulted in an error.

Explanation:

You are trying to use a view, but an arithmetic operation in the subselect clause of the view definition has resulted in an error. The exception type is &V1, the operation type is &V2, and the data type is &V3.

User Response:

Contact the owner of the view to examine the arithmetic operation and the columns within the subselect clause of the view to determine what data may be causing the program exception.

SQLCODE:  -00801   Database:  SQL/DS
QMF Function:  PQ
DSQ30802
Message:

An Arithmetic operation in the SQL command has resulted in an error.

Explanation:

The SQL command attempted an Arithmetic operation such as Multiplication or Division. However, the computer detected that one or more of the values in the columns selected was invalid. For example: the result of multiplication exceeds internal computer storage or division-by-zero.

User Response:

Examine the Arithmetic operation and the columns within the command to determine what data may be causing the program exception.

SQLCODE:  -00802   Database:  SQL/DS
QMF Function:  PQ
DSQ30803
Message:

Duplicate value in a unique index column.

Explanation:

One of the columns into which you are inserting or updating a new value contains that same value already. That column is a 'Unique Index' column. Unique Index columns cannot have duplicate values.

User Response:

Change the value so that it does not duplicate a value already existing. Run your query again.

SQLCODE:  -00803   Database:  SQL/DS
QMF Function:  PQ
DSQ30805
Message:

The package &V1 is not found in the catalog table.

Explanation:

When SQL/DS tried to run the QMF program, it could not find the package in the catalog table SYSTEM.SYSACCESS. This can happen because:

User Response:

Refer to the SQL/DS Messages and Codes manual for a detailed explanation and report this problem to your QMF administrator.

SQLCODE:  -00805   Database:  SQL/DS
QMF Function:  PQ
DSQ30808
Message:

You do not have authorization to modify system catalogs.

Explanation:

You cannot modify system catalogs unless you have been granted authority. You may read the system catalogs and retrieve data using queries or DISPLAY commands.

User Response:

Follow your QMF administrator procedures if authority is required.

SQLCODE:  -00808   Database:  SQL/DS
QMF Function:  PQ
DSQ30809
Message:

Row is too long.

Explanation:

The result of your insert or update operation would be to create a row longer than is allowed. The maximum length is 4,070 positions, unless there are LONG VARCHAR or LONG VARGRAPHIC columns.

User Response:

Change your query to create a shorter row, and run the query again.

SQLCODE:  -00809   Database:  SQL/DS
QMF Function:  PQ
DSQ30810
Message:

A subquery produces more than one value.

Explanation:

A subquery should not produce values from more than one column of a table; in many cases it should not produce values from more than one row. Use ALL, ANY, EXISTS, or IN with a subquery that produces more than one value.

Examples:
WHERE DEPT = ANY (SELECT DEPTNUMB
  FROM Q.ORG)

HAVING AVG(X) > ALL (SELECT X FROM Y)

WHERE EXISTS (SELECT * FROM X
  WHERE N1 = N2)
User Response:

Change your query and run it again.

SQLCODE:  -00810   Database:  SQL/DS
QMF Function:  PQ
DSQ30813
Message:

You cannot LOCK a view.

Explanation:

LOCK is used only to lock a table or dbspace. Views are not stored as tables are, and cannot be locked.

User Response:

You may LOCK one or more of the tables that make up the view.

SQLCODE:  -00813   Database:  SQL/DS
QMF Function:  PQ
DSQ30814
Message:

Cannot LOCK a system catalog table or a system DBSPACE.

Explanation:

Your LOCK statement attempted to LOCK a system catalog or a DBSPACE containing the system catalog tables. No user, regardless of authority, can LOCK these items.

User Response:

If exclusive access to the systems catalogs is required, contact your QMF administrator and request exclusive use of the database. LOCK is not necessary if no other users are active.

SQLCODE:  -00814   Database:  SQL/DS
QMF Function:  PQ
DSQ30815
Message:

CONNECT denied by accounting user exit routine.

Explanation:

Your attempt to connect to SQL/DS was rejected by your installation's accounting user exit routine.

User Response:

See your QMF administrator.

SQLCODE:  -00815   Database:  SQL/DS
QMF Function:  PQ
DSQ30823
Message:

You cannot perform this operation with a system catalog.

Explanation:

Your request specified a system catalog. Users cannot delete from a system catalog, add a primary or foreign key to a system catalog, or refer to a system catalog as a parent of a foreign key.

User Response:

To drop the object "name1" from the database, give the command ERASE name1.

SQLCODE:  -00823   Database:  SQL/DS
QMF Function:  PQ
DSQ30911
Message:

The portion of the database you require is in use.

Explanation:

The object you need in the database cannot be accessed until another user has completed processing.

User Response:

End your QMF session and sign on again at a later time.

SQLCODE:  -00911   Database:  SQL/DS
QMF Function:  PQ
DSQ30912
Message:

The portion of the database you require is in use.

Explanation:

The object you need in the database cannot be accessed until another user has completed processing.

User Response:

End your QMF session and sign on again at a later time.

SQLCODE:  -00912   Database:  SQL/DS
QMF Function:  PQ
DSQ30914
Message:

A CANCEL request has been issued.

Explanation:

The CANCEL could have been issued by the user or by the system. The CANCEL issued by the system is a result of reaching the limit on lock request blocks.

User Response:

Redo your changes as necessary. If you did not issue the CANCEL request, and you continue to get SQLCODE -914, contact your system programmer about increasing the NLRBU or the NLRBS parameters when starting the application server.

SQLCODE:  -00914   Database:  SQL/DS
QMF Function:  PQ
DSQ30915
Message:

Your query was not processed because of the system work load.

Explanation:

Your query cannot be processed now because of the work load on the database system.

User Response:

Continue with another operation and try to run your query at a later time. Contact your QMF administrator for more details about the current system work load.

SQLCODE:  -00915   Database:  SQL/DS
QMF Function:  PQ
DSQ30916
Message:

Your query was not processed because of operator action.

Explanation:

The system operator interrupted the processing of your query. This was not due to an error in the query.

User Response:

Run the query again.

SQLCODE:  -00916   Database:  SQL/DS
QMF Function:  PQ
DSQ30930
Message:

The database manager program ran out of storage.

Explanation:

The database manager program does not have enough virtual storage to run your query.

User Response:

Try later when there is less activity on QMF. If the condition persists, inform your QMF administrator.

SQLCODE:  -00930   Database:  SQL/DS
QMF Function:  PQ
DSQ30933
Message:

The communications path to &V1. is not available.

Explanation:

You cannot access database &V1. for one of the following reasons:

User Response:

Verify that the database name, &V1., is correct. If not, use a correct database name and retry your request.

The limit on the number of connections allowed to the SQL/DS virtual machine is set by the MAXCONN value in the SQL/DS virtual machine directory. If this limit has been exceeded, try your request later when the system activity is lighter. If this condition occurs frequently, contact your QMF administrator to get the MAXCONN value increased.

If the "CONNECT TO <location>" command is supported, QMF may have reconnected you to the current location. If so, you can continue to use QMF. If QMF cannot reconnect you, the Lost Connection Prompt panel prompts you to connect to another location.

SQLCODE:  -00933   Database:  SQL/DS
QMF Function:  PQ
DSQ30939
Message:

The database manager program ran out of storage.

Explanation:

The database manager program does not have enough virtual storage to run your query.

User Response:

Try later when there is less activity on QMF. If the condition persists, inform your QMF administrator.

SQLCODE:  -00939   Database:  SQL/DS
QMF Function:  PQ
DSQ30940
Message:

The database &V1 is not ready or cannot be found.

Explanation:

You cannot access the database for one of the following reasons:

User Response:

Verify that the database name, &V1., is correct. If not, use a correct database name and retry your request.

If the "CONNECT TO <location>" command is supported, QMF may have reconnected you to the current location. If so, you can continue to use QMF. If QMF cannot reconnect you, the Lost Connection Prompt panel prompts you to connect to another location.

SQLCODE:  -00940   Database:  SQL/DS
QMF Function:  PQ
DSQ30942
Message:

The database manager program ran out of storage.

Explanation:

The database manager program does not have enough virtual storage to run your query.

User Response:

Try later when there is less activity on QMF. If the condition persists, inform your QMF administrator.

SQLCODE:  -00942   Database:  SQL/DS
QMF Function:  PQ
DSQ30943
Message:

The QMF virtual machine, &V2, cannot access database &V1..

Explanation:

The QMF virtual machine is not properly defined. The file ARISRMBT MODULE, on the QMF machine's A-disk, does not describe the database program that QMF is attempting to access.

User Response:

Tell your QMF administrator about this message and wait for their response. There is nothing you can do until the QMF virtual machine is properly defined.

SQLCODE:  -00943   Database:  SQL/DS
QMF Function:  PQ
DSQ30948
Message:

Your connection to SQL/DS was severed because of operator action.

Explanation:

The SQL/DS virtual-machine operator entered the FORCE command to cause ROLLBACK of the current logical unit of work and to sever your connection to the SQL/DS system. The userid, password, and database name are reset to their default values.

User Response:

You can continue. Any explicit CONNECTs you have issued have been lost. You must issue another explicit CONNECT request, using the same USER ID, to reestablish your original connection.

SQLCODE:  -00948   Database:  SQL/DS
QMF Function:  PQ
DSQ31101
Message:

Your SEARCH request contains too many columns or values.

Explanation:

Your search request could not be completed because:

  1. The table or view you are editing contains too many columns.
  2. Or you have specified too many search values.
User Response:

Create a view which contains only those columns which you need to update, or specify fewer values for your search criteria.

SQLCODE:  -00101   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31102
Message:

Some character value is too long for the corresponding column.

Explanation:

One of the values you are trying to insert is longer than the width of the column you want to insert it into.

User Response:

Change the value to fit the column and run the query again.

SQLCODE:  -00102   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31103
Message:

&V1 starts with a digit, but is not a valid number.

Explanation:

&V1 starts with a digit, but is not a valid integer, decimal, or floating-point number. If it is meant to be a...

  1. floating-point number, be sure the "E" is followed by a plus or minus sign, and then the exponent.
  2. character constant, enclose it in single quotes.
  3. name, it must not start with a digit. Choose another name.
User Response:

Change &V1 and run the query again.

SQLCODE:  -00103   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31104
- DSQ31128
Message:

Non end-user SQLCODE returned from DBM.

Explanation:

The computer has detected an internal SQL error. The error code is shown at the bottom of this panel.

User Response:

Report the error following your installation's procedures and check if your command executed correctly. You may continue to use QMF.

DSQ31129
Message:

You used too many tables or columns in your query.

Explanation:

In your query, one of the following items exceeds the limits listed:

      Table Names              15
      Selected columns        255
User Response:

Correct your query to conform to the limits, then rerun it.

SQLCODE:  -00129   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31130
- DSQ31140
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31141
Message:

Insert or update value does not satisfy view definition.

Explanation:

Your &V1 command attempted to insert or update a view that uses the "WITH CHECK OPTION" clause. All attempts to insert or update rows into this view are checked to ensure that the results conform to the view definition. A value that you attempted to insert or update does not satisfy that definition.

User Response:

Examine the view definition to determine why the change was rejected. Then, change the value that your &V1 command attempted to process.

SQLCODE:  -00141   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31142
- DSQ31148
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31149
Message:

You cannot modify the specified object.

Explanation:

The specified object is a view based on more than one table. INSERT, DELETE, or UPDATE of a view is not permitted if the VIEW is based on more than one table.

User Response:

Verify that the table/view name you specified is correct.

SQLCODE:  -00149   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31150
Message:

You cannot modify the data in this view.

Explanation:

You cannot use INSERT, UPDATE, or DELETE a view that:

  1. is based on more than one table.
  2. contains a column defined by an expression or built-in function. Examples: UNITS*PRICE, AVG(SALARY).
  3. is defined by a SELECT statement that uses DISTINCT or GROUP BY.
  4. does not contain all non-NULLable columns in the referenced table.
User Response:

Write separate queries to modify the tables used to create the view.

SQLCODE:  -00150   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31151
Message:

You cannot modify the data in this view.

Explanation:

You cannot use INSERT, UPDATE, or DELETE a view that:

  1. is based on more than one table.
  2. contains a column defined by an expression or built-in function. Examples: UNITS*PRICE, AVG(SALARY).
  3. is defined by a SELECT statement that uses DISTINCT or GROUP BY.
  4. does not contain all non-NULLable columns in the referenced table.
User Response:

Write separate queries to modify the tables used to create the view.

SQLCODE:  -00151   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31152
Message:

Invalid definition or use of view.

Explanation:

The operation violates one of these rules:

User Response:

Make your command valid according to the rules on views and give it again.

SQLCODE:  -00152   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31153
Message:

Invalid definition or use of view.

Explanation:

The operation violates one of these rules:

User Response:

Make your command valid according to the rules on views and give it again.

SQLCODE:  -00153   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31154
Message:

Invalid definition or use of view.

Explanation:

The operation violates one of these rules:

User Response:

Make your command valid according to the rules on views and give it again.

SQLCODE:  -00154   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31155
Message:

Invalid definition or use of view.

Explanation:

The operation violates one of these rules:

User Response:

Make your command valid according to the rules on views and give it again.

SQLCODE:  -00155   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31156
Message:

Invalid definition or use of view.

Explanation:

The operation violates one of these rules:

User Response:

Make your command valid according to the rules on views and give it again.

SQLCODE:  -00156   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31157
- DSQ31163
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31164
Message:

Invalid DBCS constant.

Explanation:

Your query included a "DBCS constant", a graphic literal that begins with G', N', or X' .

If you intended to use a character constant, enclose the entire constant in single quotes.

If you intended to use a DBCS constant, it should be in the following form:

   G'<aabbcc>'  or  N'<aabbcc>'

The < and > stand for shift-out (so) and shift-in (si). There must be an even number of characters between so and si.

User Response:

Change your query and run it again.

SQLCODE:  -00164   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31165
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31166
Message:

Invalid DBCS constant.

Explanation:

Your query included a "DBCS constant", a graphic literal that begins with G', N', or X' .

If you intended to use a character constant, enclose the entire constant in single quotes.

If you intended to use a DBCS constant, it should be in the following form:

   G'<aabbcc>'  or  N'<aabbcc>'

The < and > stand for shift-out (so) and shift-in (si). There must be an even number of characters between so and si.

User Response:

Change your query and run it again.

SQLCODE:  -00166   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31167
- DSQ31168
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31169
Message:

Invalid DBCS constant.

Explanation:

Your query included a "DBCS constant", a graphic literal that begins with G', N', or X' .

If you intended to use a character constant, enclose the entire constant in single quotes.

If you intended to use a DBCS constant, it should be in the following form:

   G'<aabbcc>'  or  N'<aabbcc>'

The < and > stand for shift-out (so) and shift-in (si). There must be an even number of characters between so and si.

User Response:

Change your query and run it again.

SQLCODE:  -00169   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31170
Message:

Invalid DBCS constant.

Explanation:

Your query included a "DBCS constant", a graphic literal that begins with G', N', or X' .

If you intended to use a character constant, enclose the entire constant in single quotes.

If you intended to use a DBCS constant, it should be in the following form:

   G'<aabbcc>'  or  N'<aabbcc>'

The < and > stand for shift-out (so) and shift-in (si). There must be an even number of characters between so and si.

User Response:

Change your query and run it again.

SQLCODE:  -00170   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31171
- DSQ31179
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31180
Message:

The datetime value has invalid syntax.

Explanation:

The string representation of a valid DATE has one of the following formats:

'mm/dd/yyyy'  'dd.mm.yyyy'  'yyyy-mm-dd'
 or   LOCAL format

The string representation of a valid TIME has one of the following formats:

'mm/dd/yyyy'  'dd.mm.yyyy'  'yyyy-mm-dd'
 or  LOCAL format

The string representation of a valid TIMESTAMP has the following format:

'yyyy-mm-dd-hh.mm.ss.nnnnnn'
User Response:

Correct the syntax for the datetime value and run the query again.

SQLCODE:  -00180   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31181
Message:

The datetime value is not a valid value.

Explanation:

The string representation of a datetime value contains a value which is out of range. The proper ranges for datetime values are as follows:

Years   -  1  to  9999
Months  -  1  to    12
Days    -  1  to    31
Hours   -  0  to    24
Minutes -  0  to    59
Seconds -  0  to    59
User Response:

Correct the datetime value and run the query again.

SQLCODE:  -00181   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31182
- DSQ31190
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31191
Message:

The mixed data consists of improper DBCS data value.

Explanation:

The mixed data may have a missing X'OE' (shift-out) or X'OF' (shift-in) or half of a DBCS character.

Refer to the SQL/DS Messages and codes manual for a detailed explanation of this error with reason code &V1..

User Response:

Verify that the referenced data values are correct. If not, make the necessary change and rerun the query.

SQLCODE:  -00191   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31192
- DSQ31329
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31330
Message:

One or more characters could not be converted into a usable code for the current server.

Explanation:

Your SQL statement referenced a character string, which must be converted to a code suitable for the application server. However, due to a mismatch in data representation, this was not possible. The character string is incompatible with the corresponding column data type. Consequently, you cannot use the character string as specified.

User Response:

Verify that the character columns and values you referenced are correct. If not, make the necessary change and try the query again. Otherwise, contact your QMF administrator.

SQLCODE:  -00330   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31331
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31332
Message:

A character string could not be converted due to incompatible CCSIDs.

Explanation:

Your SQL statement referenced a character string that has a coded character set ID(CCSID) &V1 in a coded character set that differs from the current one. To use this character string at the current server, it must be converted from the source CCSID &V1 to the target CCSID &V2. However, this pair of CCSIDs conversion rule is not defined in the SYSSTRINGS system table. Therefore, the database system could not convert the character string to a code suitable for the application server.

Refer to the SQL/DS Messages and codes manual for a detailed explanation of this error with reason code &V3. Possible causes for this conversion error are:

User Response:

Verify that the referenced character columns and values that you referenced are correct. If not, make the necessary change and rerun the query again. Otherwise, contact your QMF administrator.

SQLCODE:  -00332   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31333
- DSQ31350
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31351
Message:

Invalid data type in position &V1..

Explanation:

Some SQL data types are not supported by the application requester. &V1 is the position of the first element with an invalid data type in the SQLDA. A common cause for this error is that the application requester has attempted to describe large object data residing at the application server. Some of the SQLTYPEs that can cause this error are: LOB, BLOB, CLOB, and DBLOB.

User Response:

Remove the invalid data types and run the query again.

SQLCODE:  -00351   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31352
- DSQ31403
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31404
Message:

Some character value is too long for the corresponding column.

Explanation:

One of the values you are trying to insert is longer than the width of the column you want to insert it into.

User Response:

Change the value to fit the column and run the query again.

SQLCODE:  -00404   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31405
Message:

Numeric value is outside allowable range for column.

Explanation:

Your query specifies a column that has an incorrect numeric value. The value might be the result of an expression.

The proper ranges for SQL values are as follows:

 FLOAT ...... -7.2E75 to -5.4E-79, 0,
              5.4E-79 to 7.2E75
 INTEGER .... -2147483648 to 2147483647
 SMALLINT ... -32768 to 32767
 DECIMAL .... The range depends on the
              precision and scale of
              the column.  For example,
              if the value is being
              specified for a decimal
              column defined with
              precision = 5 and
              scale = 2, the range is
              -999.99 to 999.99.
User Response:

Change the numeric value for the column and rerun your query.

SQLCODE:  -00405   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31406
Message:

Numeric value is outside allowable range for column.

Explanation:

Your query specifies a column that has an incorrect numeric value. The value might be the result of an expression.

The proper ranges for SQL values are as follows:

 FLOAT ...... -7.2E75 to -5.4E-79, 0,
              5.4E-79 to 7.2E75
 INTEGER .... -2147483648 to 2147483647
 SMALLINT ... -32768 to 32767
 DECIMAL .... The range depends on the
              precision and scale of
              the column.  For example,
              if the value is being
              specified for a decimal
              column defined with
              precision = 5 and
              scale = 2, the range is
              -999.99 to 999.99.
User Response:

Change the numeric value for the column and rerun your query.

SQLCODE:  -00406   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31407
Message:

You cannot update a NOT NULL column with a null value.

Explanation:

Some column you are updating does not allow NULL, and you want to update it with a null value. The null value could be from a subquery.

User Response:

Remove the invalid NULL from your query and run it again.

SQLCODE:  -00407   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31408
Message:

A subquery returned an incompatible data type.

Explanation:

A value from a subquery used to update or insert was incompatible with the corresponding column. The subquery value and the corresponding column must have the same data type. For example, to update a numeric column, you must select only a numeric value in the subquery.

User Response:

Change the subquery and run the query again.

SQLCODE:  -00408   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31409
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31410
Message:

&V1 is not a valid numeric value.

Explanation:

Your query tried to assign &V1 to a numeric field. What it tried to assign is either a floating point constant of 31 characters or more, or a value containing non-numeric characters.

User Response:

Change &V1 and run your query again.

SQLCODE:  -00410   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31411
- DSQ31412
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31413
Message:

Arithmetic overflow during change of data type.

Explanation:

The result of an arithmetic or insert operation is not valid because arithmetic overflow occurred. For example, you may have tried to INSERT values with a data type of INTEGER into a column with data type of SMALLINT. Conversion is possible so long as the INTEGER values are small enough. But a value larger than 32767 will cause arithmetic overflow.

User Response:

Change your operation and run the query again.

SQLCODE:  -00413   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31414
Message:

LIKE requires character or graphic data, the column has numeric or datetime data.

Explanation:

You wrote something like this: LIKE '1%' or LIKE '%12.40.25', where LIKE compares a partial value to the values in some column. The column has a numeric or datetime data type and LIKE requires character or graphic data.

User Response:

Correct your query and run it again. With numeric data, use a numeric comparison, like "n >= 1000 and n < 2000".

SQLCODE:  -00414   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31415
- DSQ31510
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31511
Message:

You cannot modify the data in this view.

Explanation:

You cannot use INSERT, UPDATE, or DELETE a view that ...

  1. is based on more than one table.
  2. contains a column defined by an expression or built-in function. Examples: UNITS*PRICE, AVG(SALARY).
  3. is defined by a SELECT statement that uses DISTINCT or GROUP BY.
  4. does not contain all non-NULLable columns in the referenced table.
User Response:

Write separate queries to modify the tables used to create the view.

SQLCODE:  -00511   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31512
- DSQ31529
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31530
Message:

The foreign key value is not valid.

Explanation:

An update or insert query specified a value for a foreign key. However, the value is not equal to any of the primary key values of the parent table.

If the name of the referential constraint for the foreign key was provided by the database, that name is as follows: &V1..&V2..

User Response:

Use a value for the foreign key that matches one of the primary key values.

SQLCODE:  -00530   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31531
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31532
Message:

The row cannot be updated or deleted because of a dependent row.

Explanation:

The attempt to update or delete a parent row failed, because the parent row has a dependent row or cascades to a dependent row that has been restricted using the RESTRICT rule.

If the name of the referential constraint for the foreign key was provided by the database, that name is as follows: &V1..&V2..

User Response:

Make sure you selected the correct row. If you did, update or delete the dependent rows for which RESTRICT was specified. Then update or delete the parent row.

SQLCODE:  -00532   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31533
- DSQ31549
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31550
Message:

You cannot create &V1 for the owner "SYSTEM".

Explanation:

For example, you cannot run a query that contains a statement like this:

   CREATE TABLE SYSTEM.&V1 .....
User Response:

Do not attempt this operation.

SQLCODE:  -00550   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31551
Message:

You do not have the authority to do this.

Explanation:

The authority you need depends on what you are doing:

  1. ADD mode requires SELECT and INSERT authority on the table or view being edited.
  2. SEARCH mode requires SELECT authority on the table or view.
  3. CHANGE mode requires SELECT authority on the table or view AND:
    • UPDATE authority for at least one column (to change a row)
    • DELETE authority (to delete a row)
  4. You cannot add, change, or delete rows in a read-only view, but you can search for and browse through rows.
User Response:

See your QMF administrator to obtain the necessary authorization.

SQLCODE:  -00551   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31552
Message:

The specified object does not exist, or you lack needed authority.

Explanation:

The specified object does not exist, or it's a read-only view, or you lack some needed authority, as follows:

  1. SELECT authority to SELECT from another's table or view.
  2. INSERT, UPDATE, DELETE, or ALTER authority for another's table or view. INDEX authority is needed to CREATE an index.
  3. GRANT authority (via the WITH GRANT OPTION) to GRANT authority to another's table or view.
  4. ALTER authority to perform a FOREIGN KEY, or DROP FOREIGN KEY, or DROP PRIMARY KEY operation.
  5. Specific authority needed to CREATE a table, SAVE DATA, or reserve space in the database.
User Response:

If you misnamed an existing object, use the correct name. If you lack needed authority, contact your QMF administrator.

SQLCODE:  -00552   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31553
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31554
Message:

You cannot grant a privilege to yourself.

Explanation:

The database manager does not allow you to grant your own privileges or set your password even though you have been granted CONNECT authority implicitly through the command "GRANT CONNECT TO ALL USERS". You can only change your password after the DBA has granted CONNECT authority to you explicitly and set you initial password.

User Response:

Correct the statement and run it again.

SQLCODE:  -00554   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31555
Message:

You cannot revoke a privilege from yourself.

Explanation:

Privileges can only be revoked by one user with the proper authority from another user. However, if SQLRULES(STD) is in effect or CURRENT RULES contains STD, GRANT to self is allowed.

User Response:

Contact your QMF administrator if you want any database privileges reduced.

SQLCODE:  -00555   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31556
Message:

You cannot revoke this privilege from &V1..

Explanation:

Either &V1 does not have the privilege you are trying to revoke, or it was granted by a user with a different authorization identifier from yours. You can revoke only privileges granted under your authorization identifier.

User Response:

Proceed to another operation.

SQLCODE:  -00556   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31557
Message:

You cannot grant or revoke this combination of privileges.

Explanation:

One privilege you want to grant or revoke conflicts with the granting or revoking of another privilege in the same statement.

User Response:

Break up your GRANT or REVOKE statement into separate statements and run the query again.

SQLCODE:  -00557   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31558
Message:

You cannot revoke a "special" privilege from a DBA.

Explanation:

Users cannot revoke "special" privileges , such as RESOURCE, from those with DBA authority.

User Response:

Don't attempt this operation.

SQLCODE:  -00558   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31559
- DSQ31560
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31561
Message:

You cannot use the database without CONNECT authority.

Explanation:

In order to use the database, you need CONNECT authority. If you have already used the database during this session, another user may have revoked your CONNECT authority while you were running.

User Response:

Report your problem to your QMF administrator.

SQLCODE:  -00561   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31562
- DSQ31563
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31564
Message:

Statement references an invalid userid.

Explanation:

A SQL userid must begin with an alphabetic character and contain eight or fewer alphabetic or numeric characters. It must contain no embedded blanks or special characters.

The userids PUBLIC and SYSTEM can be used only in certain restricted contexts.

In particular, the special privileges (CONNECT, DBA, and RESOURCE) cannot be GRANTed to or REVOKEd from PUBLIC or SYSTEM.

User Response:

Do not attempt this operation unless you can change the userid it names.

SQLCODE:  -00564   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31565
- DSQ31600
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31601
Message:

The name of the object you are creating already exists.

Explanation:

The object you are creating or acquiring has a name that already exists.

User Response:

Change the name to one that doesn't exist in the data base and run your query again.

SQLCODE:  -00601   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31602
Message:

Your table or view contains too many columns.

Explanation:

Your query would create a table or view with more than the maximum number of columns allowed.

User Response:

Change your query so that the table or view you are creating will have less than 256 columns.

SQLCODE:  -00602   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31603
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31604
Message:

You used a constant that exceeds maximum width allowed.

Explanation:

You specifies a constant that has a length, precision, or scale outside the data type limit. Some possible causes of the error are:

User Response:

Change the constant specification to conform to the data type limit and run your query again. See the SQL Reference manual for your database for a detailed explanation on the data type limits.

SQLCODE:  -00604   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31605
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31606
Message:

The table or column named does not exist or is owned by another user.

Explanation:

The table or column named in your COMMENT ON statement or LABEL ON statement does not exist or it is owned by another user. You can only use the statement(s) for tables you have created. You may COMMENT ON or LABEL ON another user's tables only if you have DBA authority.

User Response:

Continue with another operation.

SQLCODE:  -00606   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31607
Message:

You cannot add more tables to this DBSPACE.

Explanation:

The maximum number of tables for a DBSPACE is 255.

User Response:

Either create your table in a different DBSPACE, or drop a table in the named DBSPACE to free space for an entry.

SQLCODE:  -00607   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31608
Message:

DBSPACE not found.

Explanation:

If you used IN with a DBSPACE name, either

  1. The DBSPACE doesn't exist; or
  2. You are not authorized to use it; or
  3. The DBSPACE is full.

If you didn't use IN, either

  1. There is no default DBSPACE; or
  2. The default DBSPACE is full.
User Response:

Enter the name of a DBSPACE that you can use and run your SQL query again.

SQLCODE:  -00608   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31609
Message:

You cannot ALTER a SYSTEM DBSPACE.

Explanation:

No user can ALTER a SYSTEM DBSPACE. The information in this storage area is vital to the operation of the system and cannot be changed by the user.

User Response:

Do not attempt this operation.

SQLCODE:  -00609   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31610
Message:

You cannot create a table in the specified DBSPACE.

Explanation:

You must have the proper authority to create a table in a DBSPACE owned by another user or by the system.

User Response:

Use another DBSPACE to create your table. Follow your local procedures if you need authorization to use a DBSPACE owned by another user or by the system.

SQLCODE:  -00610   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31611
- DSQ31639
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31640
Message:

Graphic and Mixed data types are not supported by the current server.

Explanation:

Your SQL statement referenced the clause or scalar function, &V1, and the current server does not support it.

This may happen because:

User Response:

Issue the SQL statement on a server that supports Mixed, Graphic and Vargraphic data types. If you use these data types at the current server, contact your QMF administrator to reset the system default CCSIDs.

SQLCODE:  -00640   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31641
- DSQ31648
Message:

See DSQ31104

User Response:

Follow the directions in the referenced message.

DSQ31649
- DSQ31700
Message:

Non end-user SQLCODE returned from DBM.

Explanation:

The computer has detected an internal SQL error. The error code is shown at the bottom of this panel.

User Response:

Report the error following your installation's procedures and check if your command executed correctly. You may continue to use QMF.

DSQ31701
Message:

Space allocated for data in your DBSPACE is full.

Explanation:

Your query will not run because there is not enough space for data in your DBSPACE.

User Response:

If you are creating a table, specify a different DBSPACE. Otherwise, contact your QMF administrator for procedures to provide more data space and run the query again.

SQLCODE:  -00701   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31702
- DSQ31708
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31709
Message:

This DBSPACE contains system catalog tables.

Explanation:

No user can drop a DBSPACE containing system catalog tables.

User Response:

Don't attempt to drop this DBSPACE.

SQLCODE:  -00709   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31710
Message:

The PRIVATE DBSPACE needed by your query is in use.

Explanation:

A PRIVATE DBSPACE can be accessed by only one user at any time. The table you requested in your query is in a PRIVATE DBSPACE now in use.

User Response:

Run your query again when the PRIVATE DBSPACE is available.

SQLCODE:  -00710   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31711
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31712
Message:

There is not enough room in INTERNAL DBSPACEs to run the query.

Explanation:

QMF was not able to acquire sufficiently many, or sufficiently large, INTERNAL DBSPACEs. You may be able to simplify your query or break it up into two queries or more.

User Response:

Ask your QMF administrator to acquire more INTERNAL DBSPACE for QMF.

SQLCODE:  -00712   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31713
- DSQ31800
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31801
Message:

An arithmetic operation in the SQL statement has resulted in an error.

Explanation:

You are trying to use a view, but an arithmetic operation in the subselect clause of the view definition has resulted in an error. The exception type is &V1, the operation type is &V2, and the data type is &V3.

User Response:

Contact the owner of the view to examine the arithmetic operation and the columns within the subselect clause of the view to determine what data may be causing the program exception.

SQLCODE:  -00801   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31802
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31803
Message:

Duplicate value in a unique index column.

Explanation:

One of the columns into which you are inserting or updating a new value contains that same value already. That column is a 'Unique Index' column. Unique Index columns cannot have duplicate values.

User Response:

Change the value so that it does not duplicate a value already existing. Run your query again.

SQLCODE:  -00803   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31804
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31805
Message:

The package &V1 is not found in the catalog table.

Explanation:

When SQL/DS tried to run the QMF program, it could not find the package in the catalog table SYSTEM.SYSACCESS. This can happen because:

User Response:

Refer to the SQL/DS Messages and Codes manual for a detailed explanation and report this problem to your QMF administrator.

SQLCODE:  -00805   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31806
- DSQ31807
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31808
Message:

You do not have authorization to modify system catalogs.

Explanation:

You cannot modify system catalogs unless you have been granted authority. You may read the system catalogs and retrieve data using queries or DISPLAY commands.

User Response:

Follow your QMF administrator procedures if authority is required.

SQLCODE:  -00808   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31809
Message:

Row is too long.

Explanation:

The result of your insert or update operation would be to create a row longer than is allowed. The maximum length is 4070 positions, unless there are LONG VARCHAR or LONG VARGRAPHIC columns.

User Response:

Change your query to create a shorter row, and run the query again.

SQLCODE:  -00809   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31810
- DSQ31812
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31813
Message:

You cannot LOCK a view.

Explanation:

LOCK is used only to lock a table or dbspace. Views are not stored as tables are, and cannot be locked.

User Response:

You may LOCK one or more of the tables that make up the view.

SQLCODE:  -00813   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31814
Message:

Cannot LOCK a system catalog table or a system DBSPACE.

Explanation:

Your LOCK statement attempted to LOCK a system catalog or a DBSPACE containing the system catalog tables. No user, regardless of authority, can LOCK these items.

User Response:

If exclusive access to the systems catalogs is required, contact your QMF administrator and request exclusive use of the database. LOCK is not necessary if no other users are active.

SQLCODE:  -00814   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31815
Message:

CONNECT denied by accounting user exit routine.

Explanation:

Your attempt to connect to SQL/DS was rejected by your installation's accounting user exit routine.

User Response:

See your QMF administrator.

SQLCODE:  -00815   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31816
- DSQ31822
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31823
Message:

You cannot perform this operation with a system catalog.

Explanation:

Your request specified a system catalog. Users cannot delete from a system catalog, add a primary or foreign key to a system catalog, or refer to a system catalog as a parent of a foreign key.

User Response:

To drop the object "name1" from the database, give the command ERASE name1.

SQLCODE:  -00823   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31824
- DSQ31910
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31911
Message:

Sorry, your database changes have been lost.

Explanation:

Due to excessive locking or a locking conflict, the database manager has cancelled your database changes. Any additions, updates, or deletions to the table being edited have been lost.

User Response:

End your Table Editor session and redo your changes at a later time.

SQLCODE:  -00911   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31912
Message:

Sorry, your database changes have been lost.

Explanation:

Due to excessive locking or a locking conflict, the database manager has cancelled your database changes. Any additions, updates, or deletions to the table being edited have been lost.

User Response:

End your Table Editor session and redo your changes at a later time.

SQLCODE:  -00912   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31913
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31914
Message:

Sorry, your database changes have been lost.

Explanation:

A cancel request has been issued. The CANCEL could have been issued by you or by the system. The CANCEL issued by the system is a result of reaching the limit on lock request blocks.

User Response:

Redo your changes as necessary. If you did not issue the CANCEL request, and you continue to get SQLCODE -914, contact your system programmer about increasing the NLRBU or the NLRBS parameters when starting the application server.

SQLCODE:  -00914   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31915
Message:

Sorry, your database changes have been lost.

Explanation:

Due to excessive locking or a locking conflict, the database manager has cancelled your database changes. Any additions, updates, or deletions to the table being edited have been lost.

User Response:

End your Table Editor session and redo your changes at a later time.

SQLCODE:  -00915   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31916
Message:

Your query was not processed because of operator action.

Explanation:

The system operator interrupted the processing of your query. This was not due to an error in the query.

User Response:

Run the query again.

SQLCODE:  -00916   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31917
- DSQ31929
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31930
Message:

The database manager program ran out of storage.

Explanation:

The database manager program does not have enough virtual storage to run your query.

User Response:

Try later when there is less activity on QMF. If the condition persists, inform your QMF administrator.

SQLCODE:  -00930   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31931
- DSQ31932
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31933
Message:

The communications path to &V1. is not available.

Explanation:

You cannot access database &V1. for one of the following reasons:

User Response:

Verify that the database name, &V1., is correct. If not, use a correct database name and retry your request.

The limit on the number of connections allowed to the SQL/DS virtual machine is set by the MAXCONN value in the SQL/DS virtual machine directory. If this limit has been exceeded, try your request later when the system activity is lighter. If this condition occurs frequently, contact your QMF administrator to get the MAXCONN value increased.

If the "CONNECT TO <location>" command is supported, QMF may have reconnected you to the current location. If so, you can continue to use QMF. If QMF cannot reconnect you, the Lost Connection Prompt panel prompts you to connect to another location.

SQLCODE:  -00933   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31934
- DSQ31938
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31939
Message:

The database manager program ran out of storage.

Explanation:

The database manager program does not have enough virtual storage to run your query.

User Response:

Try later when there is less activity on QMF. If the condition persists, inform your QMF administrator.

SQLCODE:  -00939   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31940
Message:

The database &V1 is not ready or cannot be found.

Explanation:

You cannot access the database for one of the following reasons:

User Response:

Verify that the database name, &V1., is correct. If not, use a correct database name and retry your request.

If the "CONNECT TO <location>" command is supported, QMF may have reconnected you to the current location. If so, you can continue to use QMF. If QMF cannot reconnect you, the Lost Connection Prompt panel prompts you to connect to another location.

SQLCODE:  -00940   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31941
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31942
Message:

The database manager program ran out of storage.

Explanation:

The database manager program does not have enough virtual storage to run your query.

User Response:

Try later when there is less activity on QMF. If the condition persists, inform your QMF administrator.

SQLCODE:  -00942   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31943
Message:

The QMF virtual machine, &V2, cannot access database &V1..

Explanation:

The QMF virtual machine is not properly defined. The file ARISRMBT MODULE, on the QMF machine's A-disk, does not describe the database program that QMF is attempting to access.

User Response:

Tell your QMF administrator about this message and wait for their response. There is nothing you can do until the QMF virtual machine is properly defined.

SQLCODE:  -00943   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31944
- DSQ31946
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ31948
Message:

Your connection to SQL/DS was severed because of operator action.

Explanation:

The SQL/DS virtual-machine operator entered the FORCE command to cause ROLLBACK of the current logical unit of work and to sever your connection to the SQL/DS system. The userid, password, and database name are reset to their default values.

User Response:

You can continue. Any explicit CONNECTs you have issued have been lost. You must issue another explicit CONNECT request, using the same USER ID, to reestablish your original connection.

SQLCODE:  -00948   Database:  SQL/DS
QMF Function:  Table Edit
DSQ31949
- DSQ31999
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ32001
Message:

SQL error has been detected.

Explanation:

Refer to the DB2/400 Messages and Codes for a detailed explanation of this error.

The SQLCA is: &V1.

DSQ32002
Message:

Argument of function too long.

Explanation:

The argument of a MIN or MAX function or the argument of a COUNT function is too long. The argument of a MIN or MAX column or scalar function cannot be more than 256 bytes. If the argument is graphic, then the argument cannot be longer than 128 DBCS characters. The argument of a COUNT function cannot be longer than 2000 bytes if DISTINCT is specified. If the argument is graphic, then the argument cannot be longer than 1000 DBCS characters.

User Response:

Change the argument of the function so the length does not exceed the maximum. Try the request again.

DSQ32003
Message:

ORDER BY or GROUP BY columns too long.

Explanation:

The maximum number of elements in an ORDER BY list is 10,000. The total length of all the ORDER BY elements cannot exceed 10,000 bytes. The maximum number of columns in a GROUP BY list is 120. The total length of all the GROUP BY columns cannot exceed 2,000 bytes. If the ORDER BY or GROUP BY list contains null capable columns, then an additional byte is required for each null capable column. If the ORDER or GROUP BY list contains variable length character columns, then the 2 byte length is included in the total length.

User Response:

The statement must be changed so that the length of the ORDER BY or GROUP BY values does not exceed their limits. One or more column names must be removed from the clause. Try the request again.

DSQ32004
Message:

Constraint type not valid for constraint &V1. in &V2..

Explanation:

An attempt was made to drop constraint &V1. in &V2. using an ALTER TABLE statement. The constraint was specified as UNIQUE, PRIMARY, or FOREIGN KEY and is not the same as the constraint found.

User Response:

Verify the name and type of the constraint you want to drop. Try the request again.

DSQ32005
Message:

&V1. in &V2. not valid in FOREIGN KEY clause.

Explanation:

View or table &V1. in &V2. was specified in the REFERENCES clause in the definition of a FOREIGN KEY referential constraint on a CREATE TABLE or an ALTER TABLE statement. Views and tables cannot be specified in a FOREIGN KEY clause.

User Response:

Specify the base table that contains the parent key in the FOREIGN KEY clause. Try the request again.

DSQ32006
Message:

ORDER BY expression is not valid.

Explanation:

The expression in the ORDER BY clause in position &V1. is not valid for reason code &V3..

User Response:

Make the change listed for reason &V3. and try the request again:

DSQ32007
- DSQ32008
Message:

See DSQ32001

User Response:

Follow the directions in the referenced message.

DSQ32009
Message:

Column attributes in your SELECT lists do not agree.

Explanation:

You connected two or more queries by UNION or UNION ALL. The SELECT lists in each query must have the same number of columns. Corresponding columns in each SELECT list must have comparable data definitions for the SELECT to succeed. If corresponding columns have field procedures, the columns must have the same field procedure and column CCSID value.

User Response:

Rewrite your query with the SELECT lists of comparable columns, and rerun your query.

DSQ32010
- DSQ32014
Message:

See DSQ32001

User Response:

Follow the directions in the referenced message.

DSQ32015
Message:

Update prevented by referential constraint &V1. in &V2..

Explanation:

Constraint &V1. in &V2. identifies the table being updated as the parent table in a relationship with dependent table &V3. in &V4., with an update rule of RESTRICT or NO ACTION. The update of a parent key is prevented when there are rows in the dependent table with matching values.

User Response:

In order to perform this update, you must either drop the constraint, or delete the rows in the dependent table that are dependent on this row.

DSQ32016
Message:

The FOREIGN key in constraint &V1. not same as the parent key.

Explanation:

The FOREIGN key in constraint &V1. in &V2. is not the same as the parent key of table &V3. in &V4.. The FOREIGN key must have the same number of columns as the parent key and the data type and attributes of the FOREIGN must be identical to the data type and attributes of the corresponding column of the parent key.

User Response:

Correct the statement so that the description of the FOREIGN key conforms to that of the parent key of the specified table.

DSQ32017
Message:

Table &V1..&V2 does not have a primary key.

Explanation:

You specified table &V1..&V2 as a parent table in a FOREIGN KEY clause, but it cannot be defined as a parent table because it does not have a primary key.

User Response:

Define a primary key for the table using ALTER TABLE.

DSQ32018
Message:

You lack the authorization necessary to run your command.

Explanation:

An operation was attempted on object &V1. in &V2.. This operation cannot be performed without the required authority.

User Response:

Obtain the required authority from either the security officer or the object owner. Try the operation again.

DSQ32019
Message:

Privilege not valid for table or view &V1. in &V2..

Explanation:

The specified privilege is not valid for one of the following reasons:

User Response:

Specify a table or view that has the correct capability or remove the privilege that is not valid from the SQL statement.

DSQ32020
Message:

&V1. in &V2. type &V3. already exists.

Explanation:

An attempt was made to create &V1. in &V2. or to rename a table, view, or index to &V1., but &V1. already exists. All tables, views, indexes, SQL packages, and constraints in the same library must have unique names. If the library name is *N, this is a CREATE COLLECTION statement, If this is a CREATE TABLE or ALTER TABLE statement and the type is *N, &V1. is a constraint.

User Response:

Change &V1. to a name that does not exist, or delete, move, or rename the existing object. Try the request again.

DSQ32021
Message:

Operation not allowed on system table &V1. in &V2..

Explanation:

The table or view &V1. in &V2. is a catalog or system table. Catalog and system tables cannot be changed or locked by the user.

User Response:

Change the SQL statement to refer to a table that is not a system table. Try the request again.

DSQ32022
Message:

&V1. in &V2. type &V3. cannot be dropped with RESTRICT.

Explanation:

An attempt was made to drop &V1. in &V2. with the RESTRICT option. &V1. cannot be dropped because a view, a constraint, or an index is dependent on it.

User Response:

Specify CASCADE on the ALTER TABLE statement to drop &V1. and the views, constraints, or indexes that are dependent on it. Try the request again.

DSQ32023
Message:

Table &V1. in &V2. already has a primary key.

Explanation:

An attempt was made to add a primary or unique key to table &V1. in &V2.. Either a primary key is already defined for this table, or the table has an access path which does not match the key being added. A table can only have one primary key. The constraint cannot be added.

User Response:

Drop the primary key currently defined on the table or add the constraint as a UNIQUE constraint. If the table's access path does not match, make sure that the number of columns in the constraint match the number of columns in the access path. Try the request again.

DSQ32024
Message:

SET NULL not allowed for referential constraint &V1..

Explanation:

SET NULL was specified in the REFERENCES clause for referential constraint &V1.. None of the columns in the foreign key allows null values.

User Response:

Create the table so that at least one of the columns in the foreign key allows null values or specify a different default action on the ON DELETE clause. Try the request again.

DSQ32025
Message:

Foreign key for referential constraint &V1. in &V2. too long.

Explanation:

The FOREIGN key cannot be created for constraint &V1. in &V2.. Either more than 120 columns were specified in a FOREIGN KEY clause or the sum of the lengths of the columns specified in the key exceeds the maximum of 2000 bytes. If the list contains null capable columns then an additional byte is required for the length of each null capable column. If the list contains variable length columns, then the 2-byte length of the column is included in the total length.

User Response:

Remove some of the columns from the FOREIGN KEY clause. Try the request again.

DSQ32026
Message:

Estimated query processing time &V1. exceeds limit &V2..

Explanation:

Estimated query processing time exceeds limit. The limit is &V2. seconds. An SQL query was about to be started which was estimated to require a longer elapsed time to run than that allowed by the query time limit attribute. The estimated elapsed time was &V1. seconds.

User Response:

The following changes to the query could reduce the estimated elapsed time to be less than the query time limit.

DSQ32027
- DSQ32028
Message:

See DSQ32001

User Response:

Follow the directions in the referenced message.

DSQ32029
Message:

Your command invoked a program not found in the current plan.

Explanation:

A remote request was attempted to &V3. for SQL package &V1. in &V2.. The SQL package was not found.

User Response:

Check the invocation procedure. Perhaps you spelled the PLANID incorrectly.

DSQ32030
Message:

Resource limit exceeded.

Explanation:

Resource limit type &V1. exceeded. A list of the limit types follows:

User Response:

Do one of the following:

DSQ32031
Message:

Row or object &V1. in &V2. type &V3. in use.

Explanation:

The requested object &V1. in &V2. type &V3. is either in use by another application process or a row in the object is in use by another application process.

User Response:

Retry the operation later.

DSQ32032
Message:

The database does not support three-part names.

Explanation:

The name you specified has a location qualifier "&V1". The database you are using does not support location qualifiers.

User Response:

Remove the location qualifier "&V1" and retry your command. See your QMF administrator to make sure you are using the correct database.

DSQ33104
Message:

Incorrect usage of &V1..

Explanation:

Some possibilities are:

  1. You are missing an operator such as + or * (For example, there is no + between SALARY COMM).
  2. You used two operators consecutively. (For example, SALARY +* COMM)
  3. You used a reserved word incorrectly.
  4. You have an unequal number of left and right parentheses.
  5. You used an unrecognized operator.
  6. You used some keywords that are valid for another database system, but not in DB2.
User Response:

Make the correction and continue.

DSQ33440
Message:

&V1. &V2. was not found.

Explanation:

No routine was was found with compatible arguments for &V1. &V2..

This occurs when the database manager cannot find a routine it can use to implement the reference to &V1. &V2.. There are several reasons why this could occur:

User Response:

Correct the statement and run the query again.

DSQ33557
Message:

The specified combination of privileges cannot be granted or revoked.

Explanation:

One of the following occurred:

User Response:

Correct the statement and run it again.

DSQ33632
Message:

FOREIGN KEY &V1 is not valid.

Explanation:

FOREIGN KEY &V1 is not valid. The table cannot be defined as a dependent of table &V2 because of delete rule restrictions (reason code = &V3). A referential constraint cannot be defined because the object table of the CREATE TABLE or ALTER TABLE statement cannot be defined as a dependent of table &V2 for one of the following reason codes:

The delete rules of the existing relationships cause an error, not the delete rule specified in the FOREIGN KEY clause of the CREATE TABLE or ALTER TABLE statement. &V1 is the constraint name specified in the FOREIGN KEY clause from the CREATE TABLE or ALTER TABLE statement.

User Response:

Eliminate the particular FOREIGN KEY clause from the CREATE TABLE or ALTER TABLE statement and run the statement again.

DSQ33633
Message:

The delete rule of FOREIGN KEY &V1 must be &V2..

Explanation:

The delete rule specified in a FOREIGN KEY clause of the CREATE TABLE or ALTER TABLE statement is not valid. Reason code &V3 was given. The indicated delete rule is required for one of the following reason codes:

&V1 is the constraint name specified in the FOREIGN KEY clause from the CREATE TABLE or ALTER TABLE statement.

User Response:

Change the delete rule and run the statement again.

DSQ34104
Message:

See DSQ33104

User Response:

Follow the directions in the referenced message.

DSQ34440
Message:

See DSQ33440

User Response:

Follow the directions in the referenced message.

DSQ34557
Message:

See DSQ33557

User Response:

Follow the directions in the referenced message.

DSQ34632
Message:

See DSQ33632

User Response:

Follow the directions in the referenced message.

DSQ34633
Message:

See DSQ33633

User Response:

Follow the directions in the referenced message.

DSQ35007
Message:

Character "&V1" in your query is invalid.

Explanation:

Your query cannot be processed because something is wrong with the character "&V1". It could be misplaced or invalid in the context in which it is being used.

User Response:

Remove "&V1" or change it to a valid character.

SQLCODE:  -00007   Database:  DB2
QMF Function:  PQ
DSQ35010
Message:

Value needs an end quote.

Explanation:

Character constants must be enclosed in single quotes (like 'SANDERS'), and names of objects in the database, such as tables and columns, may be enclosed in double quotes (like "MYTABLE"). Without the final quote, there is no way to know where the constant or name is supposed to end. When a quote is used inside another quoted string, it must be shown as two consecutive quotes. For example:

Correct:    ... WHERE NAME = 'O''CONNOR'
Incorrect:  ... WHERE NAME = 'O'CONNOR'
User Response:

If the value is meant to be a character constant or double- quoted name, add an end quote or duplicate some quote inside it. Otherwise, remove the opening quote.

SQLCODE:  -00010   Database:  DB2
QMF Function:  PQ
DSQ35060
Message:

The &V1. value of &V2. is invalid.

Explanation:

Your query specifies a data type that has an incorrect &V1 specification of &V2.. The &V1 specification for that data type must not exceed the limit.

Some possible causes of your query error are:

User Response:

Change the &V1 specification so that it is within the data type limit, and run the query again. See the SQL Reference manual for your database for a detailed explanation on the data type limits.

SQLCODE:  -00060   Database:  DB2
QMF Function:  PQ
DSQ35084
Message:

The statement is not valid in this database manager.

Explanation:

The statement you just attempted to execute is not valid in DB2, though it may be valid with other database manager programs. A full list of SQL statements and options that are not allowed in DB2 is contained in the DB2 Reference Manual.

User Response:

Use only DB2 statements while using this database manager.

SQLCODE:  -00084   Database:  DB2
QMF Function:  PQ
DSQ35101
Message:

Your query is too long.

Explanation:

The statement is too long or too complex to be interpreted. Your nesting of subqueries and correlated queries could be too complex for SQL processing.

User Response:

Shorten your query or rewrite it as more than one query. If this problem continues, contact your QMF administrator.

SQLCODE:  -00101   Database:  DB2
QMF Function:  PQ
DSQ35102
Message:

Constant beginning '&V3.' &V1. is too long.

Reference line: ==>&V2.

Explanation:

The constant is longer than the maximum allowed. A character constant must be enclosed in quotes. If you omit a closing quote, your data could exceed the maximum length. Normally, character string length is 254 characters or 124 graphic characters if you use double byte character set; CURRENT SQLID value is 8 characters and CURRENT DEGREE value is 3 characters.

User Response:

Correct the constant and run the query again.

SQLCODE:  -00102   Database:  DB2
QMF Function:  PQ
DSQ35103
Message:

&V1 is not a valid number.

Explanation:

&V1 starts with a digit, but is not a valid integer, decimal, or floating-point number. If it is meant to be a:

  1. Floating-point number, be sure the "E" is followed by a plus or minus sign, and then the exponent.
  2. Character constant, enclose it in single quotes.
  3. Name, it must not start with a digit. Choose another name.
User Response:

Change &V1 and run the query again.

SQLCODE:  -00103   Database:  DB2
QMF Function:  PQ
DSQ35104
Message:

Incorrect usage of &V1 or &V2..

Explanation:

Some possibilities are:

  1. You are missing an operator such as + or * (For example, there is no + between SALARY COMM).
  2. You used two operators consecutively. (For example, SALARY +* COMM)
  3. You used a reserved word incorrectly.
  4. You have an unequal number of left and right parentheses.
  5. You used an unrecognized operator.
  6. You used some keywords that are valid for other database system, but not in DB2.
User Response:

Make the correction and continue.

SQLCODE:  -00104   Database:  DB2
QMF Function:  PQ
DSQ35105
Message:

The statement contains an invalid string.

Explanation:

The statement contains an invalid string. Only a character string or a graphic string is valid.

User Response:

Specify the correct format of string. For graphic data check for paired delimiters, the character G, and an even number of bytes within the string.

SQLCODE:  -00105   Database:  DB2
QMF Function:  PQ
DSQ35107
Message:

Name starting '&V1' is over &V2 characters long.

Explanation:

If this name specifies a column, table, view, index, alias, synonym, collection ID, or check constraints it cannot exceed 18 characters.

If this name specifies a location, it cannot exceed 16 characters .

If this name specifies a table, view qualifier, database, table space, storage group, bufferpool, referential constraint names specified in the CREATE or ALTER TABLE statement. or package ID, it cannot exceed 8 characters.

User Response:

Use a shorter name and continue to use QMF.

SQLCODE:  -00107   Database:  DB2
QMF Function:  PQ
DSQ35109
Message:

&V1 is not valid in its context.

Explanation:

Some SQL keywords may not appear in some contexts. For example, ORDER BY, INTO, and FOR UPDATE may not be used with CREATE VIEW. INTO may not appear in any SELECT statement.

User Response:

Correct the query and run it again.

SQLCODE:  -00109   Database:  DB2
QMF Function:  PQ
DSQ35110
Message:

Incorrect hexadecimal data found in value starting &V3.&V1..

Reference line: ==>&V2.

Explanation:

A single hexadecimal character is expressed by two letters or digits, so a hexadecimal value must be expressed by an even number of the digits 0 through 9 or the letters A, B, C, D, E, or F. The incorrect hexadecimal value either has an odd number of digits or letters, or contains an invalid letter or other character.

User Response:

Correct the invalid value and run the query again.

SQLCODE:  -00110   Database:  DB2
QMF Function:  PQ
DSQ35111
Message:

A summary function must specify a column name.

Explanation:

You specified a summary function that contains an expression without a column name. A summary function must refer to a column name. Examples:

AVG(COMM + SALARY) is correct.
AVG(1200 + 3498) is not correct.
User Response:

Correct the expression of the summary function.

SQLCODE:  -00111   Database:  DB2
QMF Function:  PQ
DSQ35112
Message:

A summary function contains an invalid expression.

Explanation:

The summary functions are AVG, COUNT, MAX, MIN, and SUM. Any expressions used in a summary function cannot contain summary functions.

Correct:   AVG(UNITS * PRICE)
Incorrect: AVG(UNITS * MAX(PRICE))
User Response:

Change your query so that the summary function has the correct expression.

SQLCODE:  -00112   Database:  DB2
QMF Function:  PQ
DSQ35113
Message:

Name &V3.&V1. contains an invalid character.

Reference line: ==>&V2.

Explanation:

The names for databases, storage groups, tablespaces, and bufferpools can contain only upper-case alphabetic, national (*, &, or @), or numeric characters. The first character must be alphabetic or a national character.

User Response:

Correct the invalid character in name &V3. and run the query again.

SQLCODE:  -00113   Database:  DB2
QMF Function:  PQ
DSQ35115
Message:

Incorrect use of &V3.&V1..

Reference line: ==>&V2.

Explanation:

A simple comparison like '>' or '=' must not be followed by a list of items. ANY and ALL comparisons must be followed by a subselect, rather than an expression or a list of items. For Example:

Correct: WHERE SALARY > ALL (SELECT COMM
            FROM Q.STAFF)

Incorrect: WHERE SALARY > ALL (10000)
User Response:

Change the usage of &V3. and run your query again.

SQLCODE:  -00115   Database:  DB2
QMF Function:  PQ
DSQ35117
Message:

The number of values does not match the number of columns.

Explanation:

In a statement like INSERT INTO Q.STAFF, you must provide a value for every column that was defined as NOT NULL.

If you do not give a list of columns after the table name, then give a value for every column in the table, after VALUES.

If you do give a list of columns after the table name, then give a value for every column in that list, after VALUES.

Example:
INSERT INTO Q.STAFF (ID, NAME, DEPT)
    VALUES (400, 'HARRISON', 20)
User Response:

Provide a value for each column you want to INSERT INTO and run the query again.

SQLCODE:  -00117   Database:  DB2
QMF Function:  PQ
DSQ35118
Message:

You cannot modify a table used in a subquery.

Explanation:

"Modify" includes INSERT, UPDATE, and DELETE.

Incorrect:
INSERT INTO Q.STAFF
SELECT * FROM Q.STAFF WHERE YEARS > 7

The example tries to modify the table from which it is receiving data.

User Response:

Change your query so that the same table used in the subquery is not modified or write a separate query to modify the table.

SQLCODE:  -00118   Database:  DB2
QMF Function:  PQ
DSQ35119
Message:

The grouping is inconsistent.

Explanation:

One of the following has occurred:

  1. SELECT has a column name and column function, but no GROUP BY.
    Correct:
    SELECT DEPT, AVG(SALARY) FROM Q.STAFF
    GROUP BY DEPT
  2. Some columns listed after SELECT is not listed after GROUP BY.
    Correct:
    SELECT DEPT, JOB, AVG(SALARY)
    FROM Q.STAFF
    GROUP BY DEPT, JOB
    (Not: GROUP BY DEPT)
    (If you use * after SELECT, list all column names after GROUP BY.
  3. After the HAVING keyword, you use a condition that doesn't apply to a group.
          Correct:  HAVING MIN(YEARS) > 6
                    (Not: HAVING YEARS > 6)
  4. An expression mixes a group value with a single value.
    Correct:
    SELECT DEPT, AVG(SALARY) FROM Q.STAFF
    GROUP BY DEPT
  5. A column listed after GROUP BY is a view column derived from a constant, expression, or function.
  6. A HAVING is specified without a GROUP BY.
User Response:

Change the SQL statement and run your query again.

SQLCODE:  -00119   Database:  DB2
QMF Function:  PQ
DSQ35120
Message:

A built-in function or grouped column is used incorrectly.

Explanation:

You cannot use a built-in function (AVG, COUNT, MAX, MIN or SUM) after WHERE or SET except as part of a subquery.

Correct:
WHERE YEARS > (SELECT AVG(YEARS)
    FROM Q.STAFF)

Incorrect:
WHERE YEARS > AVG(YEARS)

If your query refers to a view, a column named after GROUP BY in the view definition cannot be used in a condition in your query. For example, if DEPT is used after GROUP BY in defining VIEW, then the following is

Incorrect:
SELECT DEPT, SUMSALARY FROM VIEW
WHERE DEPT = 20
User Response:

Change your query and run it again. If your query uses a view, write a query to select from the table the view is based on.

SQLCODE:  -00120   Database:  DB2
QMF Function:  PQ
DSQ35121
Message:

You cannot modify a column twice in the same query.

Explanation:

"Modify" includes INSERT and UPDATE. For example, in the following invalid statement, the column 'YEARS' cannot be modified more than once.

Incorrect:
INSERT INTO Q.STAFF (ID, YEARS, JOB,
    YEARS)
VALUES (400, 7, 'clerk', 8)
User Response:

Change the SQL statement so that there is only one modification and run it again.

SQLCODE:  -00121   Database:  DB2
QMF Function:  PQ
DSQ35122
Message:

The grouping is inconsistent.

Explanation:

One of the following has occurred:

  1. SELECT has a column name and column function, but no GROUP BY.
    Correct:
    SELECT DEPT, AVG(SALARY) FROM Q.STAFF
    GROUP BY DEPT
  2. Some columns listed after SELECT is not listed after GROUP BY.
    Correct:
    SELECT DEPT, JOB, AVG(SALARY)
    FROM Q.STAFF
    GROUP BY DEPT, JOB
    (Not: GROUP BY DEPT)
    (If you use * after SELECT, list all column names after GROUP BY.
  3. After the HAVING keyword, you use a condition that doesn't apply to a group.
          Correct:  HAVING MIN(YEARS) > 6
                    (Not: HAVING YEARS > 6)
  4. An expression mixes a group value with a single value.
    Correct:
    SELECT DEPT, AVG(SALARY) FROM Q.STAFF
    GROUP BY DEPT
  5. A column listed after GROUP BY is a view column derived from a constant, expression, or function.
  6. A HAVING is specified without a GROUP BY.
User Response:

Change the SQL statement and run your query again.

SQLCODE:  -00122   Database:  DB2
QMF Function:  PQ
DSQ35123
Message:

The parameter in position &V1 must be a constant or keyword.

Explanation:

The parameter in position &V1 of the function &V2 is not a constant when it is required to be a constant or a keyword when it is required to be a keyword.

User Response:

Correct the function call and run the query again.

SQLCODE:  -00123   Database:  DB2
QMF Function:  PQ
DSQ35125
Message:

The number in the SELECT list does not identify a column.

Explanation:

The column number in error may be 0, or it may be larger than the number of columns listed after SELECT.

Incorrect Examples:
  ORDER BY 5   means ordering by the
               fifth item in the
               SELECT list; it won't
               work if the SELECT
               list has only four items.
  ORDER BY 0   will never work.
User Response:

Change the column number following ORDER BY to agree with the SELECT list and run the query again.

SQLCODE:  -00125   Database:  DB2
QMF Function:  PQ
DSQ35127
Message:

DISTINCT cannot be used more than once in a query.

Explanation:

DISTINCT was used more than once in your query. DISTINCT is implied if you chose to keep a single copy of selected rows. You may have done that and also used DISTINCT in a summary function.

User Response:

Use DISTINCT no more than once in your query.

SQLCODE:  -00127   Database:  DB2
QMF Function:  PQ
DSQ35128
Message:

Use NULL with IS or IS NOT.

Explanation:

NULL cannot be used as an item in a list following IN in a WHERE clause. For example

WHERE AMT IN (20,50,NULL) is wrong, but
WHERE AMT IN (20,50) OR AMT IS NULL
is OK.
User Response:

Change the phrase with NULL and run your query again.

SQLCODE:  -00128   Database:  DB2
QMF Function:  PQ
DSQ35129
Message:

Query uses more than 15 table references.

Explanation:

One query may not make more than 15 references to tables.

User Response:

Divide your query into two or more queries, each with 15 or fewer table references.

SQLCODE:  -00129   Database:  DB2
QMF Function:  PQ
DSQ35131
Message:

Statement with LIKE has incompatible data types.

Explanation:

If the column name to the left of LIKE or NOT LIKE is of type CHARACTER, the expression at the right must be of type CHARACTER. If the column name is of type GRAPHIC, the expression at the right must be of type GRAPHIC.

If the expression to the right of LIKE or NOT LIKE contains ESCAPE character, the data type of the ESCAPE character must be compatible with the type of the column name to the left.

User Response:

Check the data type of every operand and run the query again.

SQLCODE:  -00131   Database:  DB2
QMF Function:  PQ
DSQ35132
Message:

LIKE is used incorrectly.

Explanation:

A condition written with LIKE is invalid. Follow LIKE by a character constant; you may use the symbols '%' and '_'.

Write   NAME LIKE 'JO%' , where NAME is
                          a column name.
User Response:

Change the condition using LIKE and run your query again.

SQLCODE:  -00132   Database:  DB2
QMF Function:  PQ
DSQ35133
Message:

An expression is improperly used after a HAVING or WHERE clause.

Explanation:

You must use a column name, rather than an expression, as the argument of a built-in function, when that column is a correlated reference column in a WHERE or HAVING clause. For example:

SELECT DEPT,SUM(YEARS) FROM Q.STAFF VARX
GROUP BY DEPT HAVING SUM(YEARS) >
ANY (SELECT AVG(YEARS) FROM Q.STAFF
   GROUP BY DEPT HAVING MAX(YEARS) >
   MIN(1*VARX.YEARS))

is incorrect -- (1*VARX.YEARS) cannot be the argument of a built-in function MIN because it is an expression containing the correlated reference variable VARX.YEARS.

User Response:

Correct your query and rerun it.

SQLCODE:  -00133   Database:  DB2
QMF Function:  PQ
DSQ35134
Message:

A wide character column is used incorrectly.

Explanation:

Several restrictions exist when using a column that has a character data type and a width greater than 254 characters. It cannot be selected in the Columns section of the query when the Duplicate Rows indicates to keep a single copy of each row. Some releases of the Relational Database manager do not allow it to be used in a Row Condition with an operator of Starting With, Ending With, or Containing.

User Response:

Change your use of the wide character column or remove the Keep Single Copy line from the query.

SQLCODE:  -00134   Database:  DB2
QMF Function:  PQ
DSQ35136
Message:

Sort key length cannot exceed 4000 bytes.

Explanation:

The sort key is made up of the list of columns specified following DISTINCT, or in an ORDER BY or GROUP BY clause. If both DISINCT and ORDER BY or GROUP BY are present, the sort key is made from the combination of both column lists.

User Response:

Change your statement so that the internal length of the sort key will not exceed 4000 bytes. One or more column names must be deleted from the ORDER BY or GROUP BY clause, or the list following the DISTINCT qualifier.

SQLCODE:  -00136   Database:  DB2
QMF Function:  PQ
DSQ35137
Message:

The result of concatenation is too long.

Explanation:

The length of the result of a concatenation (two vertical bars "||") exceeds 32,764 characters or 16,382 graphic characters.

User Response:

Change your query to create a shorter string, and run the query again.

SQLCODE:  -00137   Database:  DB2
QMF Function:  PQ
DSQ35138
Message:

The second or third argument of the SUBSTR function is out of range.

Explanation:

SUBSTR(ARG1, ARG2, ARG3)

ARG1: must be a character or graphic
      string
ARG2: must be an integer and
      1 <= ARG2 <= L
ARG3: must be an integer and
      0 <= ARG3 <= L-N+1

Where L : the length of ARG1
      N : the value of  ARG2
User Response:

Change the second or third argument of SUBSTR and run the query again.

SQLCODE:  -00138   Database:  DB2
QMF Function:  PQ
DSQ35150
Message:

You cannot modify the data in this view.

Explanation:

You cannot use INSERT, UPDATE, or DELETE a view that:

  1. is based on more than one table.
  2. contains a column defined by an expression or built-in function. Examples: UNITS*PRICE, AVG(SALARY).
  3. is defined by a SELECT statement that uses DISTINCT or GROUP BY.
  4. does not contain all non-NULLable columns in the referenced table.
User Response:

Write separate queries to modify the tables used to create the view.

SQLCODE:  -00150   Database:  DB2
QMF Function:  PQ
DSQ35151
Message:

Column &V1 cannot be changed.

Explanation:

You cannot use INSERT, UPDATE, or DELETE (in SQL) or I., U., or D. (in QBE) to change a column in:

  1. A view based on more than one table.
  2. A view containing a column defined by an expression or built-in function, such as UNITS*PRICE or AVG(SALARY).
  3. A view defined by a SELECT statement that uses DISTINCT or GROUP BY.
  4. A partitioning key of a table space.
  5. A catalog table that no columns can be updated.
User Response:

Write separate queries to modify the tables used to create the view.

SQLCODE:  -00151   Database:  DB2
QMF Function:  PQ
DSQ35153
Message:

View columns defined by expressions or functions need names.

Explanation:

Your CREATE VIEW statement includes a column defined from an expression, such as UNITS * PRICE; a built-in function, such as AVG(YEARS); or a constant, such as 'JUNE 1'. You must supply names for those columns, and so you must have a name list with a name for each column.

User Response:

Provide new names for all columns defined from functions or expressions in your CREATE VIEW query.

SQLCODE:  -00153   Database:  DB2
QMF Function:  PQ
DSQ35154
Message:

You cannot create a view that uses UNION or contains a remote object.

Explanation:

The definition of the view to be created uses the keyword UNION or contains a remote object. This is not permitted in the definition of a view.

User Response:

Define the view in some other way.

SQLCODE:  -00154   Database:  DB2
QMF Function:  PQ
DSQ35155
Message:

A view defined by GROUP BY or HAVING is named after FROM.

Explanation:

One of the tables named after FROM in your query is a view defined by a query that uses a GROUP BY or HAVING clause. That view cannot be named after FROM along with any other table.

User Response:

Rewrite your query so as not to name the view along with another table, after FROM. Run the query again.

SQLCODE:  -00155   Database:  DB2
QMF Function:  PQ
DSQ35156
Message:

Query does not identify a table.

Explanation:

ALTER TABLE, DROP TABLE, LOCK TABLE, or CREATE INDEX may be used only with tables. Names of a view or remote object cannot be used after these statements.

User Response:

Be sure that the proper table name was used in the query. Do not use the name of a view or remote object after the statements listed above.

SQLCODE:  -00156   Database:  DB2
QMF Function:  PQ
DSQ35158
Message:

The CREATE VIEW and SELECT lists need the same number of columns.

Explanation:

There must be a column name in your SELECT list for every column name in the CREATE VIEW list. If you replace the list of names in the SELECT list with an asterisk (*), the view will contain the same column names as the original table.

User Response:

Change the SELECT list column names to conform to the CREATE VIEW list and run the query again.

SQLCODE:  -00158   Database:  DB2
QMF Function:  PQ
DSQ35159
Message:

Name used is a table, not a view or an alias.

Explanation:

DROP VIEW is used only to drop a view.
DROP ALIAS is used only to drop an
   alias.
COMMENT ON ALIAS is used only to comment
   on an alias.

You cannot drop or comment on a table using DROP VIEW, DROP ALIAS or COMMENT ON ALIAS.

User Response:

If you want to drop or comment on a table, use the DROP TABLE or COMMENT ON TABLE statement.

SQLCODE:  -00159   Database:  DB2
QMF Function:  PQ
DSQ35160
Message:

WITH CHECK cannot be used with this view.

Explanation:

The WITH CHECK option cannot be used if...

  1. The view is defined as "read only." (for example, the view definition includes DISTINCT GROUP BY or JOIN).
  2. The view includes a subquery.
User Response:

Continue with another operation.

SQLCODE:  -00160   Database:  DB2
QMF Function:  PQ
DSQ35161
Message:

Insert or update value does not satisfy view definition.

Explanation:

WITH CHECK OPTION was used in the definition of the view whose data you are trying to change. All attempts to insert or update rows in the view are checked to make sure that the results will conform to the definition of the view. Some value in your query does not satisfy a condition in that definition.

User Response:

Examine the definition of the view to determine why the change was rejected, and change the value in the query.

SQLCODE:  -00161   Database:  DB2
QMF Function:  PQ
DSQ35164
Message:

You cannot create a view in another user's name.

Explanation:

Your query attempted to create a view with a qualified name (a name of the form USERID.TABLENAME), and the qualifier of the name was not your own DB2 authorization ID. You can only create a view using an authorization ID other than your own if you have "SYSADM" authority.

User Response:

Correct the query and run it again or obtain the authorization needed to create a view for someone else.

SQLCODE:  -00164   Database:  DB2
QMF Function:  PQ
DSQ35170
Message:

The number of arguments specified for scalar function '&V1' is invalid.

Explanation:

The SQL statement has specified the scalar function &V1 with either too many or too few arguments. The supported scalar functions are:

DECIMAL, DIGITS, FLOAT, HEX, INTEGER,
VARGRAPHIC, DATE, TIME, TIMESTAMP, DAYS,
YEAR, MONTH, DAY, HOUR, MINUTE, SECOND,
MICROSECOND, LENGTH, SUBSTR, and VALUE.
User Response:

Examine the use of the scalar function &V1. Change the scalar function and run the query again.

SQLCODE:  -00170   Database:  DB2
QMF Function:  PQ
DSQ35171
Message:

Argument '&V1' of scalar function '&V2' is invalid.

Explanation:

The data type, length, or value specified for scalar function '&V2' is incorrect. Refer to SQL query publications for more information.

User Response:

Change the data type, length, or value of '&V2' function and run the query again.

SQLCODE:  -00171   Database:  DB2
QMF Function:  PQ
DSQ35180
Message:

The datetime value &V1 is invalid.

Explanation:

The string representation of a valid DATE has one of the following formats:

'mm/dd/yyyy'  'dd.mm.yyyy'  'yyyy-mm-dd'
 or  LOCAL format

The string representation of a valid TIME has one of the following formats:

'mm/dd/yyyy'  'dd.mm.yyyy'  'yyyy-mm-dd'
or  LOCAL format

The string representation of a valid TIMESTAMP has the following format:

'yyyy-mm-dd-hh.mm.ss.nnnnnn'
User Response:

Correct the syntax for the datetime value and run the query again.

SQLCODE:  -00180   Database:  DB2
QMF Function:  PQ
DSQ35181
Message:

The datetime value is not a valid value.

Explanation:

The string representation of a datetime value contains a value which is out of range. The proper ranges for datetime values are as follows:

Years   -  1  to  9999
Months  -  1  to    12
Days    -  1  to    31
Hours   -  0  to    24
Minutes -  0  to    59
Seconds -  0  to    59
User Response:

Correct the datetime value and run the query again.

SQLCODE:  -00181   Database:  DB2
QMF Function:  PQ
DSQ35182
Message:

An arithmetic expression with a datetime value is invalid.

Explanation:

The specified arithmetic expression contains an improperly used datetime value or simple duration. Some correct examples are:

SELECT STARTD + 10102433. FROM Q.PROJECT
SELECT STARTD + 1 YEAR    FROM Q.PROJECT
User Response:

Correct the expression and run the query again.

SQLCODE:  -00182   Database:  DB2
QMF Function:  PQ
DSQ35183
Message:

An arithmetic operation on a date or timestamp has a result that is invalid.

Explanation:

The result of an arithmetic operation is a date or timestamp that is not within the valid range. Valid dates are between 0001-01-01 and 9999-12-31.

User Response:

Correct the datetime value and run the query again.

SQLCODE:  -00183   Database:  DB2
QMF Function:  PQ
DSQ35184
Message:

Invalid use of "?".

Explanation:

If the character "?" is part of the name of something in the database, the name must be enclosed in double quotes. Any other use of "?" for a name in a query is invalid. The character "?" can also be used as a character constant, but it must be enclosed in single quote.

User Response:

Correct your query and run the query again.

SQLCODE:  -00184   Database:  DB2
QMF Function:  PQ
DSQ35185
Message:

The date or time value cannot be formatted.

Explanation:

One of the following has occurred:

  1. You used the LOCAL option to format a date or time value, but no local date or time routine is available.
  2. You specified a string representation of a date or time value. However, the string is not in one of the formats recognized by the database, and there is no local date or time routine available to process the string.
User Response:

Either change your string representation of the date or time value to be one of the recognized formats, or contact your QMF administrator for assistance in making the local date or time routine available to the database.

SQLCODE:  -00185   Database:  DB2
QMF Function:  PQ
DSQ35197
Message:

Do not use qualified column names with ORDER BY.

Explanation:

When using ORDER BY with UNION or UNION ALL, do not use a qualified column name after the ORDER BY. Instead, use an unqualified name or a number that tells the position of the column in the list after SELECT.

Example 1:
SELECT NAME, ID FROM Q.STAFF
UNION
SELECT NAME, TEMPID FROM Q.APPLICANT
ORDER BY 1

Example 2:
SELECT NAME, ID FROM Q.STAFF
UNION
SELECT NAME, TEMPID FROM Q.APPLICANT
ORDER BY NAME
User Response:

Change the statement so that qualified column names are not being used and run the query again.

SQLCODE:  -00197   Database:  DB2
QMF Function:  PQ
DSQ35198
Message:

The query is empty or contains only comments.

Explanation:

An empty query, or one containing only comments, contains no instructions to do anything. It cannot be run.

User Response:

Write another query.

SQLCODE:  -00198   Database:  DB2
QMF Function:  PQ
DSQ35199
Message:

SQL error at or before &V1..

Explanation:

Some common errors that produce this message are:

  1. Use of the word DISTINCT more than once in a subquery.
  2. Missing or extra punctuation.
  3. Omission of a required keyword or use of an inappropriate one.
  4. An unparenthesized subquery after SELECT.
User Response:

Correct the query and run it again.

SQLCODE:  -00199   Database:  DB2
QMF Function:  PQ
DSQ35203
Message:

Column &V1 is in more than one table.

Explanation:

An unqualified column name is ambiguous if more than one table or view in the FROM clause has a column with that name, or if more than one column of a nested table expression has that name. A qualified column name is ambiguous only if the correlation name for the column name and for a nested table expression is not unique.

User Response:

If the problem is caused by a non-unique column name in a nested table expression, change the nested table expression so that the column is unique. If the problem is caused by the use of an unqualified name, qualify it with a table, view or correlation name.

SQLCODE:  -00203   Database:  DB2
QMF Function:  PQ
DSQ35204
Message:

&V1 could not be found.

Explanation:

The query refers to &V1.. Nothing with this name exists in the database.

User Response:

Check for a spelling error.

SQLCODE:  -00204   Database:  DB2
QMF Function:  PQ
DSQ35205
Message:

&V1 is not a column defined in a selected table.

Explanation:

&V1 has been specified as a column, and it could not be found in any of the tables you selected. You may have misspelled the name. If &V1 is intended to be a character constant, enclose it in single quotes.

User Response:

You can use the command DISPLAY Q.COLUMN_LIST to display a table of information about all the columns in tables you are authorized to use. Verify the spelling of the column name, and then correct the column name or add the table containing column &V1 to the query.

SQLCODE:  -00205   Database:  DB2
QMF Function:  PQ
DSQ35206
Message:

Column &V1 is not in any table named in the query.

Explanation:

&V1 is not a column in any table or view named in the query. If it is intended to be a character constant, enclose it in single quotes.

User Response:

Change the column name or add the table containing column &V1 to the query, and run the query again.

SQLCODE:  -00206   Database:  DB2
QMF Function:  PQ
DSQ35207
Message:

Use column numbers with ORDER BY, not column names.

Explanation:

When using ORDER BY with UNION, do not use a column name after ORDER BY. Instead, use a number that tells the position of the column in the list after SELECT.

Example:
SELECT NAME, ID FROM Q.STAFF
UNION
SELECT NAME, TEMPID FROM Q.APPLICANT
ORDER BY 1
User Response:

Change the column names to column numbers and run the query again.

SQLCODE:  -00207   Database:  DB2
QMF Function:  PQ
DSQ35208
Message:

&V1 must be in the SELECT list.

Explanation:

&V1 follows ORDER BY. Either &V1 was not included in the SELECT list or it is misspelled after ORDER BY.

User Response:

Add &V1 to the SELECT list; be sure it agrees with the column name after ORDER BY.

SQLCODE:  -00208   Database:  DB2
QMF Function:  PQ
DSQ35250
Message:

The location qualifier cannot be used.

Explanation:

The name you specified has a location qualifier. A three-part object name cannot be used until the local location name is defined.

User Response:

Remove the location qualifier and retry your query. See your QMF administrator to make sure you are using the correct database, or to define the local location name.

SQLCODE:  -00250   Database:  DB2
QMF Function:  PQ
DSQ35251
Message:

&V1 is not a valid location name.

Explanation:

&V1 contains an alphabetic extender (#, @, $). Alphabetic extenders are not allowed in location names.

User Response:

Correct the location name and try again.

SQLCODE:  -00251   Database:  DB2
QMF Function:  PQ
DSQ35270
Message:

Function is not supported (reason code = &V1).

Explanation:

The statement cannot be processed because it violates a restriction as indicated by the following reason codes:

User Response:

The action corresponding to the reason code is:

SQLCODE:  -00270   Database:  DB2
QMF Function:  PQ
DSQ35312
Message:

Invalid use of colon (:).

Explanation:

Your query uses a name preceded by a colon, as in "WHERE NAME = :NAME (That usage has a meaning in a query submitted to the preprocessor program, but not in a query in QMF.)

User Response:

Correct your query. Use names of tables, columns, or views, or else character constants enclosed in single quotes.

SQLCODE:  -00312   Database:  DB2
QMF Function:  PQ
DSQ35313
Message:

Invalid use of "?".

Explanation:

If the character "?" is part of the name of something in the database, the name must be enclosed in double quotes. Any other use of "?" for a name in a query is invalid. The character "?" can also be used as a character constant, but it must be enclosed in single quote.

User Response:

Correct your query and run the query again.

SQLCODE:  -00313   Database:  DB2
QMF Function:  PQ
DSQ35332
Message:

A character string could not be converted due to undefined CCSIDs.

Explanation:

Your SQL statement referenced a character string with a coded character set ID(CCSID) &V1 in a coded character set that differs from the current one. To use this character string at the current server, this character string must be translated from the source CCSID &V1 to the target CCSID &V2. However, this pair of CCSIDs conversion rule is not defined in the SYSSTRINGS system table. Therefore, the database system could not convert the character string to a code suitable for the application server.

User Response:

Verify that the character columns and values you referenced are correct. If not, make the necessary change and try the query again. Otherwise, contact your QMF administrator.

SQLCODE:  -00332   Database:  DB2
QMF Function:  PQ
DSQ35338
Message:

Invalid use of the ON clause.

Explanation:

The ON clause is being used incorrectly for one of the following reasons:

User Response:

Correct the syntax of the ON clause and run the query again.

SQLCODE:  -00338   Database:  DB2
QMF Function:  PQ
DSQ35351
Message:

Invalid data type in position &V1..

Explanation:

Some SQL data types are not supported by the application requester. &V1 is the position of the first element with an invalid data type in the SQLDA. A common cause for this error is that the application requester has attempted to describe large object data residing at the application server. Some of the SQLTYPEs that can cause this error are: LOB, BLOB, CLOB, and DBLOB.

User Response:

Remove the invalid data types and run the query again.

SQLCODE:  -00351   Database:  DB2
QMF Function:  PQ
DSQ35401
Message:

Data of different types cannot be mixed or compared.

Explanation:

Either an expression mixes numeric with non-numeric data, an attempt is made to compare numeric and non-numeric data, or an attempt is made to compare character and graphic data.

Assuming SALARY is a numeric column and NAME is non-numeric, the following examples are invalid:

SALARY - NAME      - is an invalid
                     expression
NAME/2             - is an invalid
                     expression
If NAME Is Equal
To SALARY          - is an invalid
                     condition
User Response:

Change your expression so that it does not mix data of different types.

SQLCODE:  -00401   Database:  DB2
QMF Function:  PQ
DSQ35402
Message:

Numeric data is required.

Explanation:

You used non-numeric data with a numeric operator or function. Two examples are:

NAME
AVG(NAME)

where NAME is column name not defined as numeric.

User Response:

Change your query to use only numeric data with the arithmetic expression or function.

SQLCODE:  -00402   Database:  DB2
QMF Function:  PQ
DSQ35404
Message:

Value given is too long for column &V1..

Explanation:

The maximum width of column &V1 is less than the number of characters you are trying to put into it.

User Response:

Change the value to fit the column and run the query again.

SQLCODE:  -00404   Database:  DB2
QMF Function:  PQ
DSQ35405
Message:

Numeric value &V1 is outside the allowable range for your column.

Explanation:

&V1 is outside the range of values allowed for the associated column.

The proper ranges for SQL values are as follows:

FLOAT ...... -7.2E75 to -5.4E-79, 0,
             5.4E-79 to 7.2E75
INTEGER .... -2147483648 to 2147483647
SMALLINT ... -32768 to 32767
DECIMAL .... The range depends on the
             precision and scale of the
             column.  For example, if
             the value is being
             specified for a decimal
             column defined with
             precision = 5 and
             scale = 2, the range is
             -999.99 to 999.99.
User Response:

Change &V1 and continue.

SQLCODE:  -00405   Database:  DB2
QMF Function:  PQ
DSQ35406
Message:

Numeric value is outside allowable range for column.

Explanation:

Your query specifies a column that has an incorrect numeric value. The value might be the result of an expression.

The proper ranges for SQL values are as follows:

FLOAT ...... -7.2E75 to -5.4E-79, 0,
             5.4E-79 to 7.2E75
INTEGER .... -2147483648 to 2147483647
SMALLINT ... -32768 to 32767
DECIMAL .... The range depends on the
             precision and scale of the
             column.  For example, if
             the value is being
             specified for a decimal
             column defined with
             precision = 5 and
             scale = 2, the range is
             -999.99 to 999.99.
User Response:

Change the numeric value for the column and rerun the query.

SQLCODE:  -00406   Database:  DB2
QMF Function:  PQ
DSQ35407
Message:

Column &V1 cannot contain a NULL value.

Explanation:

The update or insert value for column &V1 was NULL. However, column &V1 was made NOT NULL in the table definition. If you are inserting a row, the failure to specify a value for a column implies that you want to insert NULL in it.

User Response:

Enter a value for column &V1..

SQLCODE:  -00407   Database:  DB2
QMF Function:  PQ
DSQ35408
Message:

New value has wrong data type for column &V1..

Explanation:

The data type of the new value in column &V1 does not agree with the data type of the column. Both must be numbers, character strings, graphic strings, dates, times, or time stamps.

User Response:

Enter some other value for column &V1 and run the query again.

SQLCODE:  -00408   Database:  DB2
QMF Function:  PQ
DSQ35409
Message:

DISTINCT must be used in the expression of a COUNT summary function.

Explanation:

In prompted query, the function COUNT can be used only with DISTINCT and a column name. Example of usage:

COUNT(DISTINCT column name)

gives the number of different values in the column.

User Response:

Change your use of COUNT.

SQLCODE:  -00409   Database:  DB2
QMF Function:  PQ
DSQ35410
Message:

Value starting '&V1' is longer than 30 characters.

Explanation:

A floating-point constant cannot be more than 30 characters long.

User Response:

Round &V1 so that it can be written with 30 characters or fewer.

SQLCODE:  -00410   Database:  DB2
QMF Function:  PQ
DSQ35411
Message:

Use of USER, CURRENT DATE/TIME, or CURRENT SQLID is invalid.

Explanation:

USER is not valid in Prompted Query. The CURRENT DATE/TIME or CURRENT SQLID is used in a way that is invalid for its data type:

  1. CURRENT DATE has an implied data type of DATE.
  2. CURRENT TIME has an implied data type of TIME.
  3. CURRENT TIMESTAMP has an implied data type of TIMESTAMP.
  4. CURRENT TIMEZONE has an implied data type of DECIMAL(6,0).
  5. CURRENT SQLID has an implied data type of CHAR(8).
  6. CURRENT SQLID cannot be used when accessing remote data.
User Response:

Change your query to conform to the above rules.

SQLCODE:  -00411   Database:  DB2
QMF Function:  PQ
DSQ35412
Message:

Use only one column after SELECT in the subquery.

Explanation:

When SELECT is used in a subquery, (except after INSERT), it can select only one column name.

Incorrect: (SELECT PARTNO, PRICE.......)
User Response:

Change the SELECT list in your subquery and run the query again.

SQLCODE:  -00412   Database:  DB2
QMF Function:  PQ
DSQ35413
Message:

Arithmetic overflow during change of data type.

Explanation:

The result of an arithmetic or insert operation is not valid because arithmetic overflow occurred. For example, you may have tried to INSERT values with a data type of INTEGER into a column with data type of SMALLINT. Conversion is possible so long as the INTEGER values are small enough. But a value larger than 32,767 will cause arithmetic overflow.

User Response:

Change your operation and run the query again.

SQLCODE:  -00413   Database:  DB2
QMF Function:  PQ
DSQ35414
Message:

LIKE requires character or graphic data, the column has numeric or datetime data.

Explanation:

You wrote something like this: LIKE '1%' or LIKE '%12.40.25', where LIKE compares a partial value to the values in some column. The column has a numeric or datetime data type and LIKE requires character or graphic data.

User Response:

Correct your query and run it again. With numeric data, use a numeric comparison, like "n >= 1000 and n < 2000".

SQLCODE:  -00414   Database:  DB2
QMF Function:  PQ
DSQ35415
Message:

Column attributes in your SELECT lists do not agree.

Explanation:

You connected two or more queries by UNION or UNION ALL. The SELECT lists in each query must have the same number of columns. Corresponding columns in each SELECT list must have comparable data definitions for the SELECT to succeed. If corresponding columns have field procedures, the columns must have the same field procedure and column CCSID value.

User Response:

Rewrite your query with the SELECT lists of comparable columns, and rerun your query.

SQLCODE:  -00415   Database:  DB2
QMF Function:  PQ
DSQ35416
Message:

Wide character columns cannot be used with UNION.

Explanation:

A column with data type LONG VARCHAR, or with a width greater than 254, cannot be listed after SELECT in a query that uses UNION. Columns with these data types can be used: INTEGER, SMALLINT, DECIMAL, FLOAT, CHAR. A VARCHAR column can be used if its width is less than 255.

User Response:

Remove any column wider than 254 characters from the SELECT list of any query used with UNION.

SQLCODE:  -00416   Database:  DB2
QMF Function:  PQ
DSQ35417
Message:

Invalid use of "?".

Explanation:

If the character "?" is part of the name of something in the database, the name must be enclosed in double quotes. Any other use of "?" for a name in a query is invalid. The character "?" can also be used as a character constant, but it must be enclosed in single quote.

User Response:

Correct your query and run the query again.

SQLCODE:  -00417   Database:  DB2
QMF Function:  PQ
DSQ35418
Message:

Invalid use of "?".

Explanation:

If the character "?" is part of the name of something in the database, the name must be enclosed in double quotes. Any other use of "?" for a name in a query is invalid. The character "?" can also be used as a character constant, but it must be enclosed in single quote.

User Response:

Correct your query and run the query again.

SQLCODE:  -00418   Database:  DB2
QMF Function:  PQ
DSQ35419
Message:

Decimal division is not possible with the values used.

Explanation:

Either the precision of the numerator or the scale of the denominator is too large for decimal division.

User Response:

Change the precision or scale of your decimal division values and run the query again. Note that an integer or small integer value may have been converted to decimal for this calculation.

SQLCODE:  -00419   Database:  DB2
QMF Function:  PQ
DSQ35420
Message:

An invalid character string argument was used with the &V1 function.

Explanation:

A character string argument did not conform to the requirements of the function. For example, a character string passed to the DECIMAL function did not conform to the rules for forming an SQL integer or decimal constant.

User Response:

Change the value of the argument so that it conforms to the requirements of the function.

SQLCODE:  -00420   Database:  DB2
QMF Function:  PQ
DSQ35421
Message:

SELECT lists do not have the same number of columns.

Explanation:

You connected two or more queries by UNION. The SELECT lists in each query must have the same number of columns.

User Response:

Correct the query and run it again.

SQLCODE:  -00421   Database:  DB2
QMF Function:  PQ
DSQ35441
Message:

Invalid use of DISTINCT or ALL with &V1..

Explanation:

The keyword DISTINCT or ALL was detected within the parentheses in a reference to the function &V1.. This function was recognized as a scalar function.

User Response:

If a scalar function is being used then remove the keyword DISTINCT or ALL. It is invalid for a scalar function.

If a column function is being used, then there is a problem with function resolution. Check the value of special register CURRENT FUNCTION PATH. Also check the spelling of the function name and the number and types of parameters in both the query and the system catalog.

SQLCODE:  -00441   Database:  DB2
QMF Function:  PQ
DSQ35442
Message:

The function &V1 has too many arguments.

Explanation:

Too many arguments were specified in the reference to function &V1. The maximum allowable is 90.

User Response:

Correct the statement by ensuring the correct number of arguments was used and run the query again.

SQLCODE:  -00442   Database:  DB2
QMF Function:  PQ
DSQ35495
Message:

This query exceeds a DB2 cost estimate limit.

Explanation:

DB2 has determined that the cost estimate for this query exceeds a limit specified in the Resource Limit Facility (DB2 governor) preventing the query from being run.

The details of the cost estimate for the query statement are:

*
A service unit is a measure of processor usage, one that remains consistent across different processor types.
User Response:

If the cost category value is 'B', seek the assistant of your DB2 administrator, the DB2 catalog statistics or resource limit specification tables (RLST) might need updating.

If the SQL statement is consuming too much processor time, rewrite the statement to perform more efficiently and run the query again.

Things to check might be:

Some queries can be made simpler by removing the GROUP BY clause from the query and using the GROUP usage code in the QMF FORM instead.

Some queries will perform better by using advanced SQL syntax, such as Outer Join or the CASE expression,

For advanced analysis the EXPLAIN SQL statement can be used to gather information about the structure and execution performance of a query.

Refer to the SQL Reference for more information on Queries and the EXPLAIN statement.

Refer to the DB2 Administration manual for more information on tuning queries and writing efficient predicates and subqueries.

SQLCODE:  -00495   Database:  DB2
QMF Function:  PQ
DSQ35512
Message:

The query reference to a remote object is invalid.

Explanation:

One of the following invalid conditions exists:

  1. The query refers to multiple locations.
  2. The query uses an alias incorrectly.
  3. The query refers to a remote object, but the reference is invalid. For example, you cannot CREATE or DROP a table that is in a location other than your current location.
User Response:

Refer to the DB2 SQL Reference manual for more information on using remote objects.

SQLCODE:  -00512   Database:  DB2
QMF Function:  PQ
DSQ35513
Message:

The alias name &V1 cannot be defined on another local or remote alias.

Explanation:

The object indicated by &V1 exist at the location indicated. However, It is defined as an alias at at that location.

User Response:

Modify the query to ensure that all object references are to tables or views at the indicated location.

SQLCODE:  -00513   Database:  DB2
QMF Function:  PQ
DSQ35540
Message:

Table &V1 has no primary index for the primary key.

Explanation:

You cannot use table &V1.. It has a primary key, but no primary index.

User Response:

Define a primary index for the table before you refer to it.

SQLCODE:  -00540   Database:  DB2
QMF Function:  PQ
DSQ35551
Message:

&V3 does not exist, or you lack the necessary authority.

Explanation:

&V3 does not exist, or it is a read-only view, or you (the &V1 ID) lack the &V2 authority. The possible causes of the authorization failure are:

  1. SELECT authority to SELECT from another user's table or view.
  2. INSERT, UPDATE, DELETE, or ALTER authority for another user's table or view. INDEX authority is needed to CREATE an index.
  3. GRANT authority (via the WITH GRANT OPTION) to GRANT authority to another user's table or view.
  4. Specific authority needed to CREATE a table, SAVE DATA, or reserve space in the database.
  5. ALTER authority to perform a FOREIGN KEY, or DROP FOREIGN KEY, or DROP PRIMARY KEY operation. If this is the case, note that &V3 is the name of the table being created or altered, not the name of the table for which &V1 lacks the ALTER authority.
User Response:

If you misnamed an existing object, use the correct name. If the &V1 ID lacks needed authority, contact your QMF administrator.

SQLCODE:  -00551   Database:  DB2
QMF Function:  PQ
DSQ35552
Message:

The specified object does not exist, or you lack needed authority.

Explanation:

The specified object does not exist, or it's a read-only view, or you lack some needed authority, as follows:

  1. SELECT authority to SELECT from another's table or view.
  2. INSERT, UPDATE, DELETE, or ALTER authority for another's table or view. INDEX authority is needed to CREATE an index.
  3. GRANT authority (via the WITH GRANT OPTION) to GRANT authority to another's table or view.
  4. ALTER authority to perform a FOREIGN KEY, or DROP FOREIGN KEY, or DROP PRIMARY KEY operation.
  5. Specific authority needed to CREATE a table, SAVE DATA, or reserve space in the database.
User Response:

If you misnamed an existing object, use the correct name. If you lack needed authority, contact your QMF administrator.

SQLCODE:  -00552   Database:  DB2
QMF Function:  PQ
DSQ35554
Message:

You cannot grant a privilege to yourself.

Explanation:

Privileges can only be granted from one user with the proper authority to another user. However, if SQLRULES(STD) is in effect or CURRENT RULES contains STD, GRANT to self is allowed.

User Response:

Contact your QMF administrator if you need additional privileges.

SQLCODE:  -00554   Database:  DB2
QMF Function:  PQ
DSQ35555
Message:

You cannot revoke a privilege from yourself.

Explanation:

Privileges can only be revoked by one user with the proper authority from another user. However, if SQLRULES(STD) is in effect or CURRENT RULES contains STD, GRANT to self is allowed.

User Response:

Contact your QMF administrator if you want any database privileges reduced.

SQLCODE:  -00555   Database:  DB2
QMF Function:  PQ
DSQ35556
Message:

You cannot revoke this privilege from &V1..

Explanation:

Either &V1 does not have the privilege you are trying to revoke, or it was granted by a user with a different authorization identifier from yours. You can revoke only privileges granted under your authorization identifier.

User Response:

Proceed to another operation.

SQLCODE:  -00556   Database:  DB2
QMF Function:  PQ
DSQ35559
Message:

GRANT and REVOKE cannot be run now.

Explanation:

The authorization portion of the system is temporarily disabled. GRANT and REVOKE queries cannot be run.

User Response:

Run your query again when the authorization portion of the system is running. Contact your QMF administrator for more details.

SQLCODE:  -00559   Database:  DB2
QMF Function:  PQ
DSQ35601
Message:

&V1 is the name of an existing &V2..

Explanation:

You tried to CREATE an object named &V1 when a &V2 of that name already exists.

User Response:

Either DROP &V2 &V1 before running the query, or choose another name for &V1..

SQLCODE:  -00601   Database:  DB2
QMF Function:  PQ
DSQ35602
Message:

The CREATE INDEX or PRIMARY KEY statement specifies to many columns.

Explanation:

The number or columns specified in the CREATE INDEX or PRIMARY KEY statement exceeds the maximum number of columns allowed.

User Response:

Change your CREATE INDEX or PRIMARY KEY statement to conform to the column limit.

SQLCODE:  -00602   Database:  DB2
QMF Function:  PQ
DSQ35603
Message:

The specified unique index column has duplicate values.

Explanation:

You cannot create an unique index on the specified columns because the table already contains rows that have duplicate values on the column. If a column has a type of VARCHAR or VARGRAPHIC, two columns that differ only in the number of trailing blanks might cause duplication.

User Response:

Change your CREATE statement so that it does not refer to a column with duplicate values, or else delete rows with duplicate values from the table.

SQLCODE:  -00603   Database:  DB2
QMF Function:  PQ
DSQ35604
Message:

You used a constant that exceeds maximum width allowed.

Explanation:

You specifies a constant that has a length, precision, or scale outside the data type limit. Two possible causes of the error are the precision or scale for a DECIMAL constant exceeded the data type limit, and the length for a CHAR, FLOAT, GRAPHIC, VARCHAR or VARGRAPHIC constant exceeded the data type limit.

User Response:

Change the constant specification to conform to the data type limit and run your query again. See the DB2 SQL Reference manual for your database for a detailed explanation on the data type limits.

SQLCODE:  -00604   Database:  DB2
QMF Function:  PQ
DSQ35607
Message:

&V1 cannot be used with this catalog object.

Explanation:

You cannot use INSERT, UPDATE, or DELETE with the catalog object specified in the SQL statement. You cannot use the DEFER YES option for indexes on catalog tables SYSINDEXES, SYSKEYS, and SYSINDEXPART.

User Response:

Do not attempt this operation.

SQLCODE:  -00607   Database:  DB2
QMF Function:  PQ
DSQ35612
Message:

You used column name &V1 twice.

Explanation:

A table cannot contain two columns with the same name. In CREATE TABLE, CREATE VIEW, or CREATE INDEX you used column name &V1 more than once. In ALTER TABLE, &V1 is already the name of a column in the table.

User Response:

Choose another column name and run your query again.

SQLCODE:  -00612   Database:  DB2
QMF Function:  PQ
DSQ35614
Message:

Columns chosen cannot be indexed.

Explanation:

Under CMS, you cannot index a LONG VARCHAR or LONG VARGRAPHIC column.

Under TSO, you cannot index a VARCHAR column whose maximum allowable length is over 254 characters.

Under either CMS or TSO, you cannot index a group of columns if the sum of their internal lengths exceeds 255 characters.

User Response:

Revise your index or primary key definition, either by omitting one or more of the columns or by replacing long columns with shorter ones.

SQLCODE:  -00614   Database:  DB2
QMF Function:  PQ
DSQ35616
Message:

You cannot drop &V2; other objects depend on it.

Explanation:

&V2 cannot be dropped because the &V3 named &V4 refers to it.

User Response:

If you want to drop &V2, first drop all objects that depend on it.

SQLCODE:  -00616   Database:  DB2
QMF Function:  PQ
DSQ35618
Message:

&V1 cannot be performed on system databases.

Explanation:

System databases cannot be the object of certain types of operations, including &V1..

User Response:

Do not attempt this operation.

SQLCODE:  -00618   Database:  DB2
QMF Function:  PQ
DSQ35623
Message:

Table &V1 can have only one CLUSTER index.

Explanation:

The CREATE INDEX statement would create a second CLUSTER index on table &V1.. But a table may have only one CLUSTER index.

User Response:

Determine the identity and validity of the existing CLUSTER index. Consider creating the new index without the CLUSTER definition.

SQLCODE:  -00623   Database:  DB2
QMF Function:  PQ
DSQ35636
Message:

The partitioning keys for partition &V1 are not specified in ascending or descending order.

Explanation:

Your query creates a CLUSTER index for a partitioned table (a table in a partitioned tablespace). The key values in the limit-key-value specifications must be given in ascending or descending order.

User Response:

Correct the limit-key-value specifications so that the values for successive partitions are in strictly ascending or descending order.

SQLCODE:  -00636   Database:  DB2
QMF Function:  PQ
DSQ35644
Message:

Invalid value for &V1 in &V2 query.

Explanation:

The value given for &V1 in the &V2 query is not a permitted value.

User Response:

Refer to the SQL Help for information about allowable values for &V1 in &V2 queries.

SQLCODE:  -00644   Database:  DB2
QMF Function:  PQ
DSQ35646
Message:

Table space &V2 already contains a table.

Explanation:

Table space &V2, named in the CREATE TABLE query, is a partitioned or default table space that already contains an existing table. Only one table can be contained in a partitioned or default table space.

User Response:

Be sure you used the correct table space in the query. Do not attempt to create more than one table in a partitioned or default table space.

SQLCODE:  -00646   Database:  DB2
QMF Function:  PQ
DSQ35647
Message:

Bufferpool &V1 must be activated.

Explanation:

Bufferpool &V1, named in your CREATE or ALTER query for a table space or index space, is not activated. The bufferpool has NUMPAGES = 0.

Table spaces and index spaces can only be assigned (or re-assigned) to bufferpools currently activated.

User Response:

Be sure that the proper bufferpool was named in the create or alter statement. If it was, activate the bufferpool and execute the statement again.

SQLCODE:  -00647   Database:  DB2
QMF Function:  PQ
DSQ35652
Message:

Procedure &V1 rejects the result.

Explanation:

&V1 is a procedure defined by your installation to edit or validate the results of queries. The result of your query did not meet some requirement of this procedure.

User Response:

See your QMF administrator for descriptions of your installation's edit and validation procedures.

SQLCODE:  -00652   Database:  DB2
QMF Function:  PQ
DSQ35653
Message:

Table &V1 has no partitioned index.

Explanation:

A partitioned table (a table in a partitioned tablespace) cannot be referenced until the CLUSTER index for that table has been created. Table &V1 has no CLUSTER index.

User Response:

Be sure that the correct table was specified in the statement. If it was, create a CLUSTER index for that table and execute your statement again.

SQLCODE:  -00653   Database:  DB2
QMF Function:  PQ
DSQ35659
Message:

The maximum size of a table object has been exceeded.

Explanation:

One or more of the objects that make up a table has reached its maximum size. The storage objects that make up a table are:

Once a storage object has grown to its maximum size, it cannot be extended further.

User Response:

To make existing space within the object available to store new data, you can:

SQLCODE:  -00659   Database:  DB2
QMF Function:  PQ
DSQ35662
Message:

&V1 is not partitioned.

Explanation:

Your CREATE INDEX query contains PART specifications, but tablespace &V1 is not a partitioned tablespace.

User Response:

Be sure that the proper table is specified in the statement. If it was, the table must be partitioned before a partitioned index can be created.

SQLCODE:  -00662   Database:  DB2
QMF Function:  PQ
DSQ35663
Message:

Wrong number of key limit values for &V1..

Explanation:

The number of limit-key-values in at least one PART specification is either zero or greater than the number of columns in the index key.

User Response:

Change the number of limit-key-values and continue.

SQLCODE:  -00663   Database:  DB2
QMF Function:  PQ
DSQ35664
Message:

Limit-key fields of index &V1 are too long.

Explanation:

The total length of the keys for a partitioned index may not exceed 40 bytes internally.

User Response:

Reduce the total number of columns used in key fields of your index.

SQLCODE:  -00664   Database:  DB2
QMF Function:  PQ
DSQ35665
Message:

The PART clause of an ALTER statement is omitted or invalid.

Explanation:

The ALTER statement is invalid for one of the following reasons:

  1. The table space or index is not partitioned and the PART clause is specified.
  2. The table space or index is partitioned and the PART clause is not specified.
  3. The integer specified in the PART clause does not identify a partition of the table space or index.
  4. For device migration, the USING, PRIQTY, SECQTY, or ERASE clause is used and the partition is not specified.
  5. A GBPCACHE clause is used to alter the group buffer pool caching attributes, but the partition is not specified.
User Response:

Determine whether the table space or index you want to alter is partitioned. If it is partitioned, specify a PART clause that identifies the partition you want to alter. If it is not partitioned, do not use a PART clause.

SQLCODE:  -00665   Database:  DB2
QMF Function:  PQ
DSQ35666
Message:

A utility, the Resource Limit Facility, or the Distributed Data Facility is running.

Explanation:

If a system utility is running, it must complete execution before your query can be run. If the Resource Limit Facility is running, it must be stopped or switched to a different resource limit control table before your query can be run. If the Distributed Data Facility is running, it must be stopped before an object in the communications database can be dropped.

User Response:

Wait for the utility to finish, or wait until the Resource Limit Facility stops or switches to a different resource limit control table, then run your query again. Or wait until the Distributed Data Facility stops, then drop the object.

SQLCODE:  -00666   Database:  DB2
QMF Function:  PQ
DSQ35667
Message:

The index cannot be removed by the DROP INDEX statement.

Explanation:

The DROP INDEX statement attempted to drop one of the following indexes:

Neither of these indexes can be explicitly dropped. They can only be removed implicitly by dropping another object.

User Response:

To remove a cluster index for a table in a partitioned table space, drop the associated partitioned table space.

To remove a unique index defined on a ROWID column with the GENERATED BY DEFAULT attribute, drop the associated table.

SQLCODE:  -00667   Database:  DB2
QMF Function:  PQ
DSQ35668
Message:

This table has an edit procedure: you cannot ALTER.

Explanation:

If a table has an edit procedure, no columns can be added to it. The ALTER statement was not executed.

User Response:

Be sure that the correct table was specified in the ALTER statement. Do not attempt to ALTER the definition of a table that has an installation-written edit procedure.

SQLCODE:  -00668   Database:  DB2
QMF Function:  PQ
DSQ35669
Message:

You cannot use DROP with this table.

Explanation:

The table you want to drop is in a partitioned tablespace. In order to drop such a table, you must drop the entire tablespace.

User Response:

Do not attempt this operation.

SQLCODE:  -00669   Database:  DB2
QMF Function:  PQ
DSQ35670
Message:

Rows are longer than tablespace page size.

Explanation:

The length of the rows in a table cannot exceed the page size of the tablespace containing the table.

User Response:

For CREATE TABLE, either ...

  1. Eliminate one or more columns.
  2. Reduce the width of one or more columns.
  3. Assign the table to a tablespace with a 32K bufferpool.

For ALTER TABLE, reduce the width of the new column. If the table already has the maximum row length, no new column can be added.

SQLCODE:  -00670   Database:  DB2
QMF Function:  PQ
DSQ35671
Message:

ALTER TABLESPACE cannot change the page size.

Explanation:

The attempted change to the bufferpool value would change the page size of the tablespace, from 4K to 32K or from 32K to 4K.

User Response:

If the tablespace uses one of the 4K bufferpools (BP0, BP1, or BP2), it may be re-assigned to one of the other 4K bufferpools. (If it is assigned to BP32K, it cannot be altered.)

SQLCODE:  -00671   Database:  DB2
QMF Function:  PQ
DSQ35676
Message:

32K bufferpools cannot be used for indexes.

Explanation:

Your CREATE INDEX query named a bufferpool with a page size of 32K. Only the 4K bufferpools BP0, BP1, and BP2 can be used for indexes.

User Response:

Name a different bufferpool.

SQLCODE:  -00676   Database:  DB2
QMF Function:  PQ
DSQ35677
Message:

Not enough storage to expand bufferpools.

Explanation:

Several situations could cause this message:

  1. . Attempting to create a bufferpool while opening a table space or index space.
  2. . Attempting to expand a bufferpool to its maximum (MAXPAGES) size.
  3. . Attempting to expand a bufferpool to a new minimum size (NUMPAGES) given in an ALTER BUFFERPOOL query.
User Response:

Contact your QMF administrator.

SQLCODE:  -00677   Database:  DB2
QMF Function:  PQ
DSQ35678
Message:

Value for limit-key doesn't match column &V3..

Explanation:

The limit-key value given for column &V3 does not have the same data type as the column.

User Response:

If the value should have a character data type, enclose it in single quotes.

SQLCODE:  -00678   Database:  DB2
QMF Function:  PQ
DSQ35680
Message:

Your table or view contains too many columns.

Explanation:

Your query would create a table or view with more than the maximum number of columns allowed.

User Response:

Change your query so that the number of columns in the table or view you are creating will not exceed the database limit.

SQLCODE:  -00680   Database:  DB2
QMF Function:  PQ
DSQ35681
Message:

Column &V1 violates installation defined field procedure. RT: &V2, RS: &V3, MSG: &V4..

Explanation:

A field procedure error has occurred on column &V1. Use return code (RT) to determine the problem:

4   Invalid value on encode or decode or
    invalid column definition.
8   Invalid parameter value.
12  Field procedure error on any
    function.

Use reason code (RS) and message (MSG) token for additional information.

User Response:

If it is not a field procedure error, determine the requirements imposed by the field procedure. If it is a field procedure error, examine the field procedure.

SQLCODE:  -00681   Database:  DB2
QMF Function:  PQ
DSQ35683
Message:

FIELDPROC, SBCS, BIT or MIXED data cannot be used on column &V1..

Explanation:

Either FIELDPROC, SBCS, BIT or MIXED data was specified on column &V1. This is invalid because these data types cannot be specified for a numeric, date, time, long string, or non-null default value column.

User Response:

Correct the SQL statement and rerun the query.

SQLCODE:  -00683   Database:  DB2
QMF Function:  PQ
DSQ35684
Message:

The length of the parameter list beginning &V1 is too long.

Explanation:

FIELDPROC program-name (parameter list)

The parameter list is optional for FIELDPROC. The number of parameters and data type of each are determined by the field procedure. The maximum length of the parameter list is 254 bytes, including commas but excluding insignificant blanks and the delimiting parentheses.

User Response:

Correct the SQL statement and run the query again.

SQLCODE:  -00684   Database:  DB2
QMF Function:  PQ
DSQ35686
Message:

A column defined with a field procedure cannot be compared to another column with a different field procedure.

Explanation:

If a column with a field procedure is compared to another column, the two columns must have the same field procedure.

User Response:

Correct the SQL statement and run the query again.

SQLCODE:  -00686   Database:  DB2
QMF Function:  PQ
DSQ35687
Message:

Column field types incomparable.

Explanation:

If a column with a field procedure is compared to another column, they must have the same field procedure and same field type. The comparison is performed on the encoded form of the values in the columns. For example, if the encoded values are numeric, their data types must be identical; if they are strings, their data types must be compatible.

User Response:

Correct the SQL statement and run the query again.

SQLCODE:  -00687   Database:  DB2
QMF Function:  PQ
DSQ35735
Message:

Database &V1 is not a shared database on the owning subsystem.

Explanation:

You are trying to access an object in the database identified by &V1. That database is defined as ROSHARE READ on the subsystem that you are accessing. However, the database is not defined as ROSHARE OWNER on the owning subsystem. Therefore, the object cannot be accessed.

User Response:

Verify that the correct object was specified.

SQLCODE:  -00735   Database:  DB2
QMF Function:  PQ
DSQ35747
Message:

The definition for the table is incomplete.

Explanation:

An attempt was made to access or reference a table with one or more LOB columns, however, one of the following conditions exist.

User Response:

Perform as many of the steps listed below as needed.

  1. Use CREATE TABLESPACE to create a LOB table space.
  2. Use CREATE TABLE to create the auxiliary table for storing the column.
  3. Use CREATE INDEX to create an index on the auxiliary table.

Run the query again.

SQLCODE:  -00747   Database:  DB2
QMF Function:  PQ
DSQ35766
Message:

DB2 auxiliary table cannot be referenced directly.

Explanation:

Data in an auxiliary table cannot be accessed by specifying the auxiliary table name. Data in an auxiliary table can only be accessed through operations on the base table.

User Response:

Use the corresponding base table and re-run the query.

SQLCODE:  -00766   Database:  DB2
QMF Function:  PQ
DSQ35801
Message:

Division by zero was attempted.

Explanation:

The processing of a column or arithmetic expression resulted in division by zero.

User Response:

Correct the statement and run the query again.

SQLCODE:  -00801   Database:  DB2
QMF Function:  PQ
DSQ35802
Message:

An Arithmetic operation in the SQL command has resulted in an error.

Explanation:

The SQL command attempted an Arithmetic operation such as Multiplication or Division. However, the computer detected that one or more of the values in the columns selected was invalid. For example: the result of multiplication exceeds internal computer storage or division-by-zero.

User Response:

Examine the Arithmetic operation and the columns within the command to determine what data may be causing the program exception.

SQLCODE:  -00802   Database:  DB2
QMF Function:  PQ
DSQ35803
Message:

Duplicate value in a unique index column.

Explanation:

One of the columns into which you are inserting or updating a new value contains that same value already. That column is a 'Unique Index' column. Unique Index columns cannot have duplicate values.

User Response:

Change the value so that it does not duplicate a value already existing. Run your query again.

SQLCODE:  -00803   Database:  DB2
QMF Function:  PQ
DSQ35805
Message:

A program is not found in the current plan.

Explanation:

QMF executed the application plan &V2, which needs the program &V1..

If you are accessing remote data, the name of your plan may have been changed to DISTSERV.

This program was not found in the plan &V2.. The following are some causes of this error:

User Response:

Refer to the DB2 Messages and Codes manual for a detailed explanation and report this problem to your QMF administrator.

SQLCODE:  -00805   Database:  DB2
QMF Function:  PQ
DSQ35811
Message:

A subquery produces more than one value.

Explanation:

A subquery should not produce values from more than one column of a table; in many cases it should not produce values from more than one row. Use ALL, ANY, EXISTS, or IN with a subquery that produces more than one value.

Examples:
WHERE DEPT = ANY (SELECT DEPTNUMB
  FROM Q.ORG)

HAVING AVG(X) > ALL (SELECT X FROM Y)

WHERE EXISTS (SELECT * FROM X
  WHERE N1 = N2)
User Response:

Change your query and run it again.

SQLCODE:  -00811   Database:  DB2
QMF Function:  PQ
DSQ35815
Message:

A subquery using a GROUP BY or HAVING clause needs ALL, ANY, EXISTS, or IN.

Explanation:

A subquery that uses a GROUP BY or HAVING clause can be expected to produce more than one value. It should be preceded by one of the keywords ALL, ANY, EXISTS, or IN.

User Response:

Change the query and run the query again.

SQLCODE:  -00815   Database:  DB2
QMF Function:  PQ
DSQ35840
Message:

Your Prompted Query is too complex for the database.

Explanation:

An internal QMF query needed to build or run the Prompted Query failed. This situation can occur if the internal query was too long or too complex, or if the total number of columns for all tables used exceeded a database limit. Your query cannot be completed or run using Prompted Query.

User Response:

Shorten your query or rewrite it as more than one query.

SQLCODE:  -00840   Database:  DB2
QMF Function:  PQ
DSQ35900
Message:

You must connect to a location to continue using QMF.

Explanation:

Your database server is lost due to the previous error. If you wish to continue using QMF, you may use the QMF Lost Connection Prompt panel to connect to another location, or you can choose to exit QMF.

User Response:

If you choose to connect to another location, enter the proper values to connect to a valid location. Otherwise, you must exit QMF.

SQLCODE:  -00900   Database:  DB2
QMF Function:  PQ
DSQ35904
Message:

Unsuccessful execution caused by an unavailable resource. Reason code &V1, type of resource &V2, and resource name &V3..

Explanation:

The request could not be executed because the resource '&V3' of type '&V2' was not available at this time for the reason indicated by '&V1'. See DB2 Messages and Codes manual for a detailed explanation of the reason code &V1..

This may be a temporary condition.

Some common causes for this condition are:

User Response:

If you have access to the MVS JES log information, browse the log records for this unavailable resource error.

If you need to refer to a local object, but you are currently connected to a remote location, you can connect to the local location and then reference the local object.

If the resource is temporarily unavailable, issue your query again.

If DDF is stopped and the Lost Connection prompt is displayed, you may only be able to reconnect to the local DB2.

If the error condition persists, contact your QMF administrator for assistance.

SQLCODE:  -00904   Database:  DB2
QMF Function:  PQ
DSQ35905
Message:

Unsuccessful execution because DB2 resource limit was exceeded. Resource name = &V1., limit = &V2..

Explanation:

The execution of the SQL statement was terminated because a DB2 resource limit was exceeded.

User Response:

To avoid exceeding the DB2 resource limit, consider simplifying the SQL statement, restructuring the tables and indexes, or changing the resource limits. For further assistance, contact your QMF administrator.

SQLCODE:  -00905   Database:  DB2
QMF Function:  PQ
DSQ35911
Message:

The portion of the database you require is in use.

Explanation:

The object you need in the database cannot be accessed until another user has completed processing.

User Response:

End your QMF session and sign on again at a later time.

SQLCODE:  -00911   Database:  DB2
QMF Function:  PQ
DSQ35913
Message:

The portion of the database you require is in use.

Explanation:

The object you need in the database cannot be accessed until another user has completed processing.

User Response:

End your QMF session and sign on again at a later time.

SQLCODE:  -00913   Database:  DB2
QMF Function:  PQ
DSQ35918
Message:

You must connect to a location to continue using QMF.

Explanation:

Your database server is lost due to the previous error. If you wish to continue using QMF, you may use the QMF Lost Connection Prompt panel to connect to another location, or you can choose to exit QMF.

User Response:

If you choose to connect to another location, enter the proper values to connect to a valid location. Otherwise, you must exit QMF.

SQLCODE:  -00918   Database:  DB2
QMF Function:  PQ
DSQ35930
Message:

There is not enough storage available to process the statement.

Explanation:

A request was made to the database manager that required another memory page but no more pages are available to the database manager. Some possible causes are:

User Response:

Correct the problem and run the query again.

SQLCODE:  -00930   Database:  DB2
QMF Function:  PQ
DSQ35948
Message:

You cannot access remote data while DDF is inactive.

Explanation:

Your query attempted to access data at the remote database, but Distributed Data Facility is not started. Your query is rolled back.

User Response:

You may continue using QMF. If the problem persists, contact your QMF administrator.

SQLCODE:  -00948   Database:  DB2
QMF Function:  PQ
DSQ35949
- DSQ35954
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36007
Message:

Character "&V1" in your query is invalid.

Explanation:

Your query cannot be processed because something is wrong with the character "&V1". It could be misplaced or invalid in the context in which it is being used.

User Response:

Remove "&V1" or change it to a valid character.

SQLCODE:  -00007   Database:  DB2
QMF Function:  Table Edit
DSQ36008
- DSQ36083
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36084
Message:

The statement is not valid in this database manager.

Explanation:

The statement you just attempted to execute is not valid in DB2, though it may be valid with other database manager programs. A full list of SQL statements and options that are not allowed in DB2 is contained in the DB2 Reference Manual.

User Response:

Use only DB2 statements while using this database manager.

SQLCODE:  -00084   Database:  DB2
QMF Function:  Table Edit
DSQ36085
- DSQ36100
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36101
Message:

Your SEARCH request contains too many columns or values.

Explanation:

Your search request could not be completed because:

  1. The table or view you are editing contains too many columns.
  2. Or you have specified too many search values.
User Response:

Create a view which contains only those columns which you need to update, or specify fewer values for your search criteria.

SQLCODE:  -00101   Database:  DB2
QMF Function:  Table Edit
DSQ36102
Message:

Constant beginning '&V3.' &V1. is too long.

Reference line: ==>&V2.

Explanation:

The constant is longer than the maximum allowed. A character constant must be enclosed in quotes. If you omit a closing quote, your data could exceed the maximum length. Normally, character string length is 254 characters or 124 graphic characters if you use double byte character set; CURRENT SQLID value is 8 characters and CURRENT DEGREE value is 3 characters.

User Response:

Correct the constant and run the query again.

SQLCODE:  -00102   Database:  DB2
QMF Function:  Table Edit
DSQ36103
Message:

&V3.&V1. is not a valid number.

Reference line: ==>&V2.

Explanation:

&V3. starts with a digit, but is not a valid integer, decimal, or floating-point number. If it is meant to be a:

  1. Floating-point number, be sure the "E" is followed by a plus or minus sign, and then the exponent.
  2. Character constant, enclose it in single quotes.
  3. Name, it must not start with a digit. Choose another name.
User Response:

Change &V3. and run the query again.

SQLCODE:  -00103   Database:  DB2
QMF Function:  Table Edit
DSQ36104
Message:

Incorrect usage of &V1 or &V2..

Explanation:

Some possibilities are:

  1. You are missing an operator such as + or * (For example, there is no + between SALARY COMM).
  2. You used two operators consecutively. (For example, SALARY +* COMM)
  3. You used a reserved word incorrectly.
  4. You have an unequal number of left and right parentheses.
  5. You used an unrecognized operator.
  6. You used some keywords that are valid for other database system, but not in DB2.
User Response:

Make the correction and continue.

SQLCODE:  -00104   Database:  DB2
QMF Function:  Table Edit
DSQ36105
Message:

The statement contains an invalid string.

Explanation:

The statement contains an invalid string. Only a character string or a graphic string is valid.

User Response:

Specify the correct format of string. For graphic data check for paired delimiters, the character G, and an even number of bytes within the string.

SQLCODE:  -00105   Database:  DB2
QMF Function:  Table Edit
DSQ36106
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36107
Message:

Name starting '&V3.' &V1. is over &V4. characters long.

Reference line: ==>&V2.

Explanation:

If this name specifies a column, table, view, index, alias, synonym, collection ID, or check constraint it should not exceed 18 characters. For DB2/400, the collection ID should not exceed 10 characters.

If this name specifies a location, it should not exceed 16 characters.

If this name specifies a table, view qualifier, database, table space, storage group, bufferpool, referential constraint specified in the CREATE or ALTER TABLE statements, or package ID, it should not exceed 8 characters.

User Response:

Specify a shorter name and continue to use QMF.

SQLCODE:  -00107   Database:  DB2
QMF Function:  Table Edit
DSQ36108
- DSQ36112
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36113
Message:

Name &V3.&V1. contains an invalid character.

Reference line: ==>&V2.

Explanation:

The names for databases, storage groups, tablespaces, and bufferpools can contain only upper-case alphabetic, national (*, &, or @), or numeric characters. The first character must be alphabetic or a national character.

User Response:

Correct the invalid character in name &V3. and run the query again.

SQLCODE:  -00113   Database:  DB2
QMF Function:  Table Edit
DSQ36114
- DSQ36116
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36117
Message:

The number of values doesn't match the number of columns.

Explanation:

In a statement like INSERT INTO Q.STAFF, you must provide a value for every column that was defined as NOT NULL.

If you do not give a list of columns after the table name, then give a value for every column in the table, after VALUES.

If you do give a list of columns after the table name, then give a value for every column in that list, after VALUES.

Example:
INSERT INTO Q.STAFF (ID, NAME, DEPT)
    VALUES (400, 'HARRISON', 20)
User Response:

Provide a value for each column you want to INSERT INTO and run the query again.

SQLCODE:  -00117   Database:  DB2
QMF Function:  Table Edit
DSQ36118
- DSQ36149
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36150
Message:

You cannot modify the data in this view.

Explanation:

You cannot use INSERT, UPDATE, or DELETE a view that ...

  1. is based on more than one table.
  2. contains a column defined by an expression or built-in function. Examples: UNITS*PRICE, AVG(SALARY).
  3. is defined by a SELECT statement that uses DISTINCT or GROUP BY.
  4. does not contain all non-NULLable columns in the referenced table.
User Response:

Write separate queries to modify the tables used to create the view.

SQLCODE:  -00150   Database:  DB2
QMF Function:  Table Edit
DSQ36151
Message:

Column &V1 cannot be changed.

Explanation:

You cannot use INSERT, UPDATE, or DELETE (in SQL) or I., U., or D. (in QBE) to change a column in:

  1. A view based on more than one table.
  2. A view containing a column defined by an expression or built-in function, such as UNITS*PRICE or AVG(SALARY).
  3. A view defined by a SELECT statement that uses DISTINCT or GROUP BY.
  4. A partitioning key of a table space.
  5. A catalog table that no columns can be updated.
User Response:

Write separate queries to modify the tables used to create the view.

SQLCODE:  -00151   Database:  DB2
QMF Function:  Table Edit
DSQ36152
- DSQ36160
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36161
Message:

Insert or update value does not satisfy view definition.

Explanation:

WITH CHECK OPTION was used in the definition of the view whose data you are trying to change. All attempts to insert or update rows in the view are checked to make sure that the results will conform to the definition of the view. Some value in your query does not satisfy a condition in that definition.

User Response:

Examine the definition of the view to determine why the change was rejected, and change the value in the query.

SQLCODE:  -00161   Database:  DB2
QMF Function:  Table Edit
DSQ36162
- DSQ36163
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36164
Message:

You cannot create a view in another user's name.

Explanation:

Your query attempted to create a view with a qualified name (a name of the form USERID.TABLENAME), and the qualifier of the name was not your own DB2 authorization ID. You can only create a view using an authorization ID other than your own if you have "SYSADM" authority.

User Response:

Correct the query and run it again or obtain the authorization needed to create a view for someone else.

SQLCODE:  -00164   Database:  DB2
QMF Function:  Table Edit
DSQ36165
- DSQ36179
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36180
Message:

The datetime value &V1 is invalid.

Explanation:

The string representation of a valid DATE has one of the following formats:

'mm/dd/yyyy'  'dd.mm.yyyy'  'yyyy-mm-dd'
 or  LOCAL format

The string representation of a valid TIME has one of the following formats:

'mm/dd/yyyy'  'dd.mm.yyyy'  'yyyy-mm-dd'
or  LOCAL format

The string representation of a valid TIMESTAMP has the following format:

'yyyy-mm-dd-hh.mm.ss.nnnnnn'
User Response:

Correct the syntax for the datetime value and run the query again.

SQLCODE:  -00180   Database:  DB2
QMF Function:  Table Edit
DSQ36181
Message:

The datetime value is not a valid value.

Explanation:

The string representation of a datetime value contains a value which is out of range. The proper ranges for datetime values are as follows:

Years   -  1  to  9999
Months  -  1  to    12
Days    -  1  to    31
Hours   -  0  to    24
Minutes -  0  to    59
Seconds -  0  to    59
User Response:

Correct the datetime value and run the query again.

SQLCODE:  -00181   Database:  DB2
QMF Function:  Table Edit
DSQ36182
- DSQ36197
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36198
Message:

The query is empty or contains only comments.

Explanation:

An empty query, or one containing only comments, contains no instructions to do anything. It cannot be run.

User Response:

Write another query.

SQLCODE:  -00198   Database:  DB2
QMF Function:  Table Edit
DSQ36199
Message:

SQL error at or before &V3. &V1..

Reference line: ==>&V2.

Explanation:

Some common errors that produce this message are:

  1. Use of the word DISTINCT more than once in a subquery.
  2. Missing or inappropriate keyword or punctuation.
  3. An unparenthesized subquery after select.

The line below lists one or more symbols that might have been correct, based on the context so far, though they might not all work with the whole query.

The list of alternate symbols are only suggestions. Some of the symbols might not be legal statements for the database manager being used. Those symbols might be correct for statements sent to other database management systems. &V4.

User Response:

Correct the query and run it again.

SQLCODE:  -00199   Database:  DB2
QMF Function:  Table Edit
DSQ36200
- DSQ36202
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36203
Message:

Column &V1 is in more than one table.

Explanation:

An unqualified column name is ambiguous if more than one table or view in the FROM clause has a column with that name, or if more than one column of a nested table expression has that name. A qualified column name is ambiguous only if the correlation name for the column name and for a nested table expression is not unique.

User Response:

If the problem is caused by a non-unique column name in a nested table expression, change the nested table expression so that the column is unique. If the problem is caused by the use of an unqualified name, qualify it with a table, view or correlation name.

SQLCODE:  -00203   Database:  DB2
QMF Function:  Table Edit
DSQ36204
Message:

&V1 could not be found.

Explanation:

The query refers to &V1.. Nothing with this name exists in the database.

User Response:

Check for a spelling error.

SQLCODE:  -00204   Database:  DB2
QMF Function:  Table Edit
DSQ36205
Message:

&V1 is not a column defined in a selected table.

Explanation:

&V1 has been specified as a column, and it could not be found in any of the tables you selected. You may have misspelled the name. If &V1 is intended to be a character constant, enclose it in single quotes.

User Response:

You can use the command DISPLAY Q.COLUMN_LIST to display a table of information about all the columns in tables you are authorized to use. Verify the spelling of the column name, and then correct the column name or add the table containing column &V1 to the query.

SQLCODE:  -00205   Database:  DB2
QMF Function:  Table Edit
DSQ36206
Message:

Column &V1 is not in any table named in the query.

Explanation:

&V1 is not a column in any table or view named in the query. If it is intended to be a character constant, enclose it in single quotes.

User Response:

Change the column name or add the table containing column &V1 to the query, and run the query again.

SQLCODE:  -00206   Database:  DB2
QMF Function:  Table Edit
DSQ36207
- DSQ36249
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36250
Message:

The location qualifier cannot be used.

Explanation:

The name you specified has a location qualifier. A three-part object name cannot be used until the local location name is defined.

User Response:

Remove the location qualifier and retry your query. See your QMF administrator to make sure you are using the correct database, or to define the local location name.

SQLCODE:  -00250   Database:  DB2
QMF Function:  Table Edit
DSQ36251
Message:

&V2 is not a valid location name.

Explanation:

One of the following has occurred:

  1. There is no location with the name &V2..
  2. &V2 contains an alphabetic extender (#, @, $). Alphabetic extenders are not allowed in location names.
User Response:

Correct the location name and try again.

SQLCODE:  -00251   Database:  DB2
QMF Function:  Table Edit
DSQ36270
Message:

Function is not supported (reason code = &V1).

Explanation:

The statement cannot be processed because it violates a restriction as indicated by the following reason codes:

User Response:

The action corresponding to the reason code is:

SQLCODE:  -00270   Database:  DB2
QMF Function:  Table Edit
DSQ36332
Message:

A character string could not be converted due to undefined CCSIDs.

Explanation:

Your SQL statement referenced a character string with a coded character set ID(CCSID) &V1 in a coded character set that differs from the current one. To use this character string at the current server, this character string must be translated from the source CCSID &V1 to the target CCSID &V2. However, this pair of CCSIDs conversion rule is not defined in the SYSSTRINGS system table. Therefore, the database system could not convert the character string to a code suitable for the application server.

User Response:

Verify that the character columns and values you referenced are correct. If not, make the necessary change and try the query again. Otherwise, contact your QMF administrator.

SQLCODE:  -00332   Database:  DB2
QMF Function:  Table Edit
DSQ36333
- DSQ36350
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36351
Message:

Invalid data type in position &V1..

Explanation:

Some SQL data types are not supported by the application requester. &V1 is the position of the first element with an invalid data type in the SQLDA. A common cause for this error is that the application requester has attempted to describe large object data residing at the application server. Some of the SQLTYPEs that can cause this error are: LOB, BLOB, CLOB, and DBLOB.

User Response:

Remove the invalid data types and run the query again.

SQLCODE:  -00351   Database:  DB2
QMF Function:  Table Edit
DSQ36352
- DSQ36398
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36399
Message:

A ROWID column has an invalid value.

Explanation:

An attempt to insert an invalid value into a ROWID column was made.

User Response:

Only ROWID values previously generated by DB2 can be used as values for insertion into a ROWID column. Alternatively, insert the row specifying the keyword DEFAULT for the ROWID column value or remove the ROWID column from the insert column-list.

SQLCODE:  -00399   Database:  DB2
QMF Function:  Table Edit
DSQ36400
- DSQ36403
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36404
Message:

Value given is too long for column &V1..

Explanation:

The maximum width of column &V1 is less than the number of characters you are trying to put into it.

User Response:

Change the value to fit the column and run the query again.

SQLCODE:  -00404   Database:  DB2
QMF Function:  Table Edit
DSQ36405
Message:

Numeric value &V3.&V1. is outside the allowable range for your column.

Reference line: ==>&V2.

Explanation:

&V3. is outside the range of values allowed for the associated column. The value might be the result of an expression.

The proper ranges for SQL values are as follows:

FLOAT .... -7.2E75 to -5.4E-79, 0,
           5.4E-79 to 7.2E75
INTEGER .. -2147483648 to 2147483647
SMALLINT . -32768 to 32767
DECIMAL .. The range depends on the
           precision and scale of the
           column.  For example, if
           the value is being specified
           for a decimal column defined
           with precision = 5 and
           scale = 2, the range is
           -999.99 to 999.99.
User Response:

Change the numeric value and rerun the query.

SQLCODE:  -00405   Database:  DB2
QMF Function:  Table Edit
DSQ36406
Message:

Numeric value is outside allowable range for column.

Explanation:

Your query specifies a column that has an incorrect numeric value. The value might be the result of an expression.

The proper ranges for SQL values are as follows:

FLOAT ...... -7.2E75 to -5.4E-79, 0,
             5.4E-79 to 7.2E75
INTEGER .... -2147483648 to 2147483647
SMALLINT ... -32768 to 32767
DECIMAL .... The range depends on the
             precision and scale of the
             column.  For example, if
             the value is being
             specified for a decimal
             column defined with
             precision = 5 and
             scale = 2, the range is
             -999.99 to 999.99.
User Response:

Change the numeric value for the column and rerun the query.

SQLCODE:  -00406   Database:  DB2
QMF Function:  Table Edit
DSQ36407
Message:

Column &V1 cannot contain a NULL value.

Explanation:

The update or insert value for column &V1 was NULL. But column &V1 was made NOT NULL in the table definition. If you are inserting a row, the failure to specify a value for a column implies that you want to insert NULL in it.

User Response:

Enter a value for column &V1..

SQLCODE:  -00407   Database:  DB2
QMF Function:  Table Edit
DSQ36408
Message:

New value has wrong data type for column &V1..

Explanation:

The data type of the new value in column &V1 does not agree with the data type of the column. Both must be numbers, character strings, graphic strings, dates, times, or time stamps.

User Response:

Enter some other value for column &V1 and run the query again.

SQLCODE:  -00408   Database:  DB2
QMF Function:  Table Edit
DSQ36409
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36410
Message:

Value starting '&V1' is longer than 30 characters.

Explanation:

A floating-point constant cannot be more than 30 characters long.

User Response:

Round &V1 so that it can be written with 30 characters or fewer.

SQLCODE:  -00410   Database:  DB2
QMF Function:  Table Edit
DSQ36411
- DSQ36412
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36413
Message:

Arithmetic overflow during change of data type.

Explanation:

The result of an arithmetic or insert operation is not valid because arithmetic overflow occurred. For example, you may have tried to INSERT values with a data type of INTEGER into a column with data type of SMALLINT. Conversion is possible so long as the INTEGER values are small enough. But a value larger than 32767 will cause arithmetic overflow.

User Response:

Change your operation and run the query again.

SQLCODE:  -00413   Database:  DB2
QMF Function:  Table Edit
DSQ36414
- DSQ36494
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36495
Message:

This query exceeds a DB2 cost estimate limit.

Explanation:

DB2 has determined that the cost estimate for this query exceeds a limit specified in the Resource Limit Facility (DB2 governor) preventing the query from being run.

The details of the cost estimate for the query statement are:

*
A service unit is a measure of processor usage, one that remains consistent across different processor types.
User Response:

If the cost category value is 'B', seek the assistant of your DB2 administrator, the DB2 catalog statistics or resource limit specification tables (RLST) might need updating.

If the SQL statement is consuming too much processor time, rewrite the statement to perform more efficiently and run the query again.

Things to check might be:

Some queries can be made simpler by removing the GROUP BY clause from the query and using the GROUP usage code in the QMF FORM instead.

Some queries will perform better by using advanced SQL syntax, such as Outer Join or the CASE expression,

For advanced analysis the EXPLAIN SQL statement can be used to gather information about the structure and execution performance of a query.

Refer to the SQL Reference for more information on Queries and the EXPLAIN statement.

Refer to the DB2 Administration manual for more information on tuning queries and writing efficient predicates and subqueries.

SQLCODE:  -00495   Database:  DB2
QMF Function:  Table Edit
DSQ36496
- DSQ36510
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36511
Message:

You cannot modify the data in this view.

Explanation:

You cannot use INSERT, UPDATE, or DELETE a view that:

  1. is based on more than one table.
  2. contains a column defined by an expression or built-in function. Examples: UNITS*PRICE, AVG(SALARY).
  3. is defined by a SELECT statement that uses DISTINCT or GROUP BY.
  4. does not contain all non-NULLable columns in the referenced table.
User Response:

Write separate queries to modify the tables used to create the view.

SQLCODE:  -00511   Database:  DB2
QMF Function:  Table Edit
DSQ36512
Message:

The query reference to a remote object is invalid.

Explanation:

One of the following invalid conditions exists:

  1. The query refers to multiple locations.
  2. The query uses an alias incorrectly.
  3. The query refers to a remote object, but the reference is invalid. For example, you cannot CREATE or DROP a table that is in a location other than your current location.
User Response:

Refer to the DB2 SQL Reference manual for more information on using remote objects.

SQLCODE:  -00512   Database:  DB2
QMF Function:  Table Edit
DSQ36513
Message:

The alias name &V1 cannot be defined on another local or remote alias.

Explanation:

The object indicated by &V1 exist at the location indicated. However, It is defined as an alias at at that location.

User Response:

Modify the query to ensure that all object references are to tables or views at the indicated location.

SQLCODE:  -00513   Database:  DB2
QMF Function:  Table Edit
DSQ36514
- DSQ36529
Message:

See DSQ31649

User Response:

Follow the directions in the referenced message.

DSQ36530
Message:

The foreign key value is not valid.

Explanation:

An update or insert query specified a value for a foreign key. However, the value is not equal to any of the primary key values of the parent table.

If the name of the referential constraint for the foreign key was provided by the database, that name is as follows: &V1..&V2..

User Response:

Use a value for the foreign key that matches one of the primary key values.

SQLCODE:  -00530   Database:  DB2
QMF Function:  Table Edit
DSQ36531
Message:

The primary key &V1 in a parent row cannot be updated.

Explanation:

Your update request specifies a value for the primary key of the table being updated, but the row identified by that primary key value has dependent rows associated with it. The value of a primary key in a parent row cannot be updated if the parent row has any dependent rows.

User Response:

Make sure you selected the correct row to be updated. Before a primary key value in a parent row can be updated, the parent row must not have any dependent rows.

SQLCODE:  -00531   Database:  DB2
QMF Function:  Table Edit
DSQ36532
Message:

The row cannot be deleted because of a RESTRICT delete rule.

Explanation:

The delete operation attempted to delete a parent row. However, the row cannot be deleted because a delete rule of RESTRICT is associated with tables that can be affected by this deletion. Either the row has a dependent in a relationship with a delete rule of RESTRICT, or the deletion cascades to a row that is a dependent in a relationship with a delete rule of RESTRICT.

User Response:

Make sure you selected the correct row to be deleted. If you did, delete any dependent rows with a delete rule of RESTRICT. Then delete the parent row.

SQLCODE:  -00532   Database:  DB2
QMF Function:  Table Edit
DSQ36533
- DSQ36534
Message:

Non end-user SQLCODE returned from DBM.

Explanation:

The computer has detected an internal SQL error. The error code is shown at the bottom of this panel.

User Response:

Report the error following your installation's procedures and check if your command executed correctly. You may continue to use QMF.

DSQ36535
Message:

The primary key in the table cannot be updated.

Explanation:

The table you are editing contains a primary key. Columns that are part of a primary key cannot be updated or deleted using the Table Editor.

User Response:

Create or use a view that contains only the columns you need updated. Do not include any columns that are part of a primary key. If you want to update the primary key, you can do it using SQL or QBE, provided that the primary key does not have any dependant rows.

SQLCODE:  -00535   Database:  DB2
QMF Function:  Table Edit
DSQ36536
- DSQ36539
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36540
Message:

Table &V1 has no primary index for the primary key.

Explanation:

You cannot use table &V1.. It has a primary key, but no primary index.

User Response:

Define a primary index for the table before you refer to it.

SQLCODE:  -00540   Database:  DB2
QMF Function:  Table Edit
DSQ36541
- DSQ36550
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36551
Message:

You do not have the authority to do this.

Explanation:

The authority you need depends on what you are doing:

  1. ADD mode requires SELECT and INSERT authority on the table or view being edited.
  2. SEARCH mode requires SELECT authority on the table or view.
  3. CHANGE mode requires SELECT authority on the table or view AND:
    • UPDATE authority for at least one column (to change a row)
    • DELETE authority (to delete a row)
  4. You cannot add, change, or delete rows in a read-only view, but you can search for and browse through rows.
User Response:

See your QMF administrator to obtain the necessary authorization.

SQLCODE:  -00551   Database:  DB2
QMF Function:  Table Edit
DSQ36552
Message:

The specified object does not exist, or you lack needed authority.

Explanation:

The specified object does not exist, or it's a read-only view, or you lack some needed authority, as follows:

  1. SELECT authority to SELECT from another's table or view.
  2. INSERT, UPDATE, DELETE, or ALTER authority for another's table or view. INDEX authority is needed to CREATE an index.
  3. GRANT authority (via the WITH GRANT OPTION) to GRANT authority to another's table or view.
  4. ALTER authority to perform a FOREIGN KEY, or DROP FOREIGN KEY, or DROP PRIMARY KEY operation.
  5. Specific authority needed to CREATE a table, SAVE DATA, or reserve space in the database.
User Response:

If you misnamed an existing object, use the correct name. If you lack needed authority, contact your QMF administrator.

SQLCODE:  -00552   Database:  DB2
QMF Function:  Table Edit
DSQ36553
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36554
Message:

You cannot grant a privilege to yourself.

Explanation:

Privileges can only be granted from one user with the proper authority to another user. However, if SQLRULES(STD) is in effect or CURRENT RULES contains STD, GRANT to self is allowed.

User Response:

Contact your QMF administrator if you need additional privileges.

SQLCODE:  -00554   Database:  DB2
QMF Function:  Table Edit
DSQ36555
Message:

You cannot revoke a privilege from yourself.

Explanation:

Privileges can only be revoked by one user with the proper authority from another user. However, if SQLRULES(STD) is in effect or CURRENT RULES contains STD, GRANT to self is allowed.

User Response:

Contact your QMF administrator if you want any database privileges reduced.

SQLCODE:  -00555   Database:  DB2
QMF Function:  Table Edit
DSQ36556
Message:

You cannot revoke this privilege from &V1..

Explanation:

Either &V1 does not have the privilege you are trying to revoke, or it was granted by a user with a different authorization identifier from yours. You can revoke only privileges granted under your authorization identifier.

User Response:

Proceed to another operation.

SQLCODE:  -00556   Database:  DB2
QMF Function:  Table Edit
DSQ36557
- DSQ36558
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36559
Message:

GRANT and REVOKE cannot be run now.

Explanation:

The authorization portion of the system is temporarily disabled. GRANT and REVOKE queries cannot be run.

User Response:

Run your query again when the authorization portion of the system is running. Contact your QMF administrator for more details.

SQLCODE:  -00559   Database:  DB2
QMF Function:  Table Edit
DSQ36560
- DSQ36570
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36571
Message:

Remote update is disallowed in a READ-ONLY environment.

Explanation:

You have attempted to update, insert or delete data at a remote location, but your current operating environment allows remote read only. For example, you cannot update remote data in a CICS operating environment if server database does not support two-phase commit.

To access remote data in a READ-ONLY operating environment, you can use one of the following:

User Response:

You can continue to use QMF. If you need to update remote data, switch to an operating environment that supports it; otherwise, contact your QMF administrator.

SQLCODE:  -00571   Database:  DB2
QMF Function:  Table Edit
DSQ36572
- DSQ36600
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36601
Message:

&V1 is the name of an existing &V2..

Explanation:

You tried to CREATE an object named &V1 when a &V2 of that name already exists.

User Response:

Either DROP &V2 &V1 before running the query, or choose another name for &V1..

SQLCODE:  -00601   Database:  DB2
QMF Function:  Table Edit
DSQ36602
- DSQ36603
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36604
Message:

You used a constant that exceeds maximum width allowed.

Explanation:

You specifies a constant that has a length, precision, or scale outside the data type limit. Some possible causes of the error are:

User Response:

Change the constant specification to conform to the data type limit and run your query again. See the SQL Reference manual for your database for a detailed explanation on the data type limits.

SQLCODE:  -00604   Database:  DB2
QMF Function:  Table Edit
DSQ36605
- DSQ36606
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36607
Message:

&V1 cannot be used with this catalog object.

Explanation:

You cannot use INSERT, UPDATE, or DELETE with the catalog object specified in the SQL statement. You cannot use the DEFER YES option for indexes on catalog tables SYSINDEXES, SYSKEYS, and SYSINDEXPART.

User Response:

Do not attempt this operation.

SQLCODE:  -00607   Database:  DB2
QMF Function:  Table Edit
DSQ36608
- DSQ36615
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36616
Message:

You cannot drop &V2; other objects depend on it.

Explanation:

&V2 cannot be dropped because the &V3 named &V4 refers to it.

User Response:

If you want to drop &V2, first drop all objects that depend on it.

SQLCODE:  -00616   Database:  DB2
QMF Function:  Table Edit
DSQ36617
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36618
Message:

&V1 cannot be performed on system databases.

Explanation:

System databases cannot be the object of certain types of operations, including &V1..

User Response:

Do not attempt this operation.

SQLCODE:  -00618   Database:  DB2
QMF Function:  Table Edit
DSQ36619
- DSQ36643
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36644
Message:

Invalid value for &V1 in &V2 query.

Explanation:

The value given for &V1 in the &V2 query is not a permitted value.

User Response:

Refer to the SQL Help for information about allowable values for &V1 in &V2 queries.

SQLCODE:  -00644   Database:  DB2
QMF Function:  Table Edit
DSQ36645
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36646
Message:

Table space &V2 already contains a table.

Explanation:

Table space &V2, named in the CREATE TABLE query, is a partitioned or default table space that already contains an existing table. Only one table can be contained in a partitioned or default table space.

User Response:

Be sure you used the correct table space in the query. Do not attempt to create more than one table in a partitioned or default table space.

SQLCODE:  -00646   Database:  DB2
QMF Function:  Table Edit
DSQ36647
Message:

Bufferpool &V1 must be activated.

Explanation:

Bufferpool &V1, named in your CREATE or ALTER query for a table space or index space, is not activated. The bufferpool has NUMPAGES = 0.

Table spaces and index spaces can only be assigned (or re-assigned) to bufferpools currently activated.

User Response:

Be sure that the proper bufferpool was named in the create or alter statement. If it was, activate the bufferpool and execute the statement again.

SQLCODE:  -00647   Database:  DB2
QMF Function:  Table Edit
DSQ36648
- DSQ36651
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36652
Message:

Procedure &V1 rejects the result.

Explanation:

&V1 is a procedure defined by your installation to edit or validate the results of queries. The result of your query did not meet some requirement of this procedure.

User Response:

See your QMF administrator for descriptions of your installation's edit and validation procedures.

SQLCODE:  -00652   Database:  DB2
QMF Function:  Table Edit
DSQ36653
Message:

Table &V1 has no partitioned index.

Explanation:

A partitioned table (a table in a partitioned tablespace) cannot be referenced until the CLUSTER index for that table has been created. Table &V1 has no CLUSTER index.

User Response:

Be sure that the correct table was specified in the statement. If it was, create a CLUSTER index for that table and execute your statement again.

SQLCODE:  -00653   Database:  DB2
QMF Function:  Table Edit
DSQ36654
- DSQ36658
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36659
Message:

The maximum size of a table object has been exceeded.

Explanation:

One or more of the objects that make up a table has reached its maximum size. The storage objects that make up a table are:

Once a storage object has grown to its maximum size, it cannot be extended further.

User Response:

To make existing space within the object available to store new data, you can:

SQLCODE:  -00659   Database:  DB2
QMF Function:  Table Edit
DSQ36660
- DSQ36661
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36662
Message:

&V1 is not partitioned.

Explanation:

Your CREATE INDEX query contains PART specifications, but tablespace &V1 is not a partitioned tablespace.

User Response:

Be sure that the proper table is specified in the statement. If it was, the table must be partitioned before a partitioned index can be created.

SQLCODE:  -00662   Database:  DB2
QMF Function:  Table Edit
DSQ36663
Message:

Wrong number of key limit values for &V1..

Explanation:

The number of limit-key-values in at least one PART specification is either zero or greater than the number of columns in the index key.

User Response:

Change the number of limit-key-values and continue.

SQLCODE:  -00663   Database:  DB2
QMF Function:  Table Edit
DSQ36664
Message:

Limit-key fields of index &V1 are too long.

Explanation:

The total length of the keys for a partitioned index may not exceed 40 bytes internally.

User Response:

Reduce the total number of columns used in key fields of your index.

SQLCODE:  -00664   Database:  DB2
QMF Function:  Table Edit
DSQ36665
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36666
Message:

A utility, the Resource Limit Facility, or the Distributed Data Facility is running.

Explanation:

If a system utility is running, it must complete execution before your query can be run. If the Resource Limit Facility is running, it must be stopped or switched to a different resource limit control table before your query can be run. If the Distributed Data Facility is running, it must be stopped before an object in the communications database can be dropped.

User Response:

Wait for the utility to finish, or wait until the Resource Limit Facility stops or switches to a different resource limit control table, then run your query again. Or wait until the Distributed Data Facility stops, then drop the object.

SQLCODE:  -00666   Database:  DB2
QMF Function:  Table Edit
DSQ36667
Message:

The index cannot be removed by the DROP INDEX statement.

Explanation:

The DROP INDEX statement attempted to drop one of the following indexes:

Neither of these indexes can be explicitly dropped. They can only be removed implicitly by dropping another object.

User Response:

To remove a cluster index for a table in a partitioned table space, drop the associated partitioned table space.

To remove a unique index defined on a ROWID column with the GENERATED BY DEFAULT attribute, drop the associated table.

SQLCODE:  -00667   Database:  DB2
QMF Function:  Table Edit
DSQ36668
Message:

This table has an edit procedure: you cannot ALTER.

Explanation:

If a table has an edit procedure, no columns can be added to it. The ALTER statement was not executed.

User Response:

Be sure that the correct table was specified in the ALTER statement. Do not attempt to ALTER the definition of a table that has an installation-written edit procedure.

SQLCODE:  -00668   Database:  DB2
QMF Function:  Table Edit
DSQ36669
Message:

You cannot use DROP with this table.

Explanation:

The table you want to drop is in a partitioned tablespace. In order to drop such a table, you must drop the entire tablespace.

User Response:

Do not attempt this operation.

SQLCODE:  -00669   Database:  DB2
QMF Function:  Table Edit
DSQ36670
Message:

Rows are longer than tablespace page size.

Explanation:

The length of the rows in a table cannot exceed the page size of the tablespace containing the table.

User Response:

For CREATE TABLE, either ...

  1. Eliminate one or more columns.
  2. Reduce the width of one or more columns.
  3. Assign the table to a tablespace with a 32K bufferpool.

For ALTER TABLE, reduce the width of the new column. If the table already has the maximum row length, no new column can be added.

SQLCODE:  -00670   Database:  DB2
QMF Function:  Table Edit
DSQ36671
Message:

ALTER TABLESPACE cannot change the page size.

Explanation:

The attempted change to the bufferpool value would change the page size of the tablespace, from 4K to 32K or from 32K to 4K.

User Response:

If the tablespace uses one of the 4K bufferpools (BP0, BP1, or BP2), it may be re-assigned to one of the other 4K bufferpools. (If it is assigned to BP32K, it cannot be altered.)

SQLCODE:  -00671   Database:  DB2
QMF Function:  Table Edit
DSQ36672
- DSQ36675
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36676
Message:

32K bufferpools cannot be used for indexes.

Explanation:

Your CREATE INDEX query named a bufferpool with a page size of 32K. Only the 4K bufferpools BP0, BP1, and BP2 can be used for indexes.

User Response:

Name a different bufferpool.

SQLCODE:  -00676   Database:  DB2
QMF Function:  Table Edit
DSQ36677
Message:

Not enough storage to expand bufferpools.

Explanation:

Several situations could cause this message:

  1. . Attempting to create a bufferpool while opening a table space or index space.
  2. . Attempting to expand a bufferpool to its maximum (MAXPAGES) size.
  3. . Attempting to expand a bufferpool to a new minimum size (NUMPAGES) given in an ALTER BUFFERPOOL query.
User Response:

Contact your QMF administrator.

SQLCODE:  -00677   Database:  DB2
QMF Function:  Table Edit
DSQ36678
Message:

Value for limit-key doesn't match column &V3..

Explanation:

The limit-key value given for column &V3 does not have the same data type as the column.

User Response:

If the value should have a character data type, enclose it in single quotes.

SQLCODE:  -00678   Database:  DB2
QMF Function:  Table Edit
DSQ36679
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36680
Message:

Your table or view contains too many columns.

Explanation:

Your query would create a table or view with more than the maximum number of columns allowed.

User Response:

Change your query so that the number of columns in the table or view you are creating will not exceed the database limit.

SQLCODE:  -00680   Database:  DB2
QMF Function:  Table Edit
DSQ36681
Message:

Column &V1 violates installation defined field procedure. RT: &V2, RS: &V3, MSG: &V4..

Explanation:

A field procedure error has occurred on column &V1. Use return code (RT) to determine the problem:

4   Invalid value on encode or decode or
    invalid column definition.
8   Invalid parameter value.
12  Field procedure error on any
    function.

Use reason code (RS) and message (MSG) token for additional information.

User Response:

If it is not a field procedure error, determine the requirements imposed by the field procedure. If it is a field procedure error, examine the field procedure.

SQLCODE:  -00681   Database:  DB2
QMF Function:  Table Edit
DSQ36682
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36683
Message:

FIELDPROC, SBCS, BIT or MIXED data cannot be used on column &V1..

Explanation:

Either FIELDPROC, SBCS, BIT or MIXED data was specified on column &V1. This is invalid because these data types cannot be specified for a numeric, date, time, long string, or non-null default value column.

User Response:

Correct the SQL statement and rerun the query.

SQLCODE:  -00683   Database:  DB2
QMF Function:  Table Edit
DSQ36684
Message:

The length of the parameter list beginning &V1 is too long.

Explanation:

FIELDPROC program-name (parameter list)

The parameter list is optional for FIELDPROC. The number of parameters and data type of each are determined by the field procedure. The maximum length of the parameter list is 254 bytes, including commas but excluding insignificant blanks and the delimiting parentheses.

User Response:

Correct the SQL statement and run the query again.

SQLCODE:  -00684   Database:  DB2
QMF Function:  Table Edit
DSQ36685
- DSQ36734
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36735
Message:

Database &V1 is not a shared database on the owning subsystem.

Explanation:

You are trying to access an object in the database identified by &V1. That database is defined as ROSHARE READ on the subsystem that you are accessing. However, the database is not defined as ROSHARE OWNER on the owning subsystem. Therefore, the object cannot be accessed.

User Response:

Verify that the correct object was specified.

SQLCODE:  -00735   Database:  DB2
QMF Function:  Table Edit
DSQ36736
- DSQ36746
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36747
Message:

The definition for the table is incomplete.

Explanation:

An attempt was made to access or reference a table with one or more LOB columns, however, one of the following conditions exist:

User Response:

Perform as many of the steps listed below as needed.

  1. Use CREATE TABLESPACE to create a LOB table space.
  2. Use CREATE TABLE to create the auxiliary table for storing the column.
  3. Use CREATE INDEX to create an index on the auxiliary table.

Run the query again.

SQLCODE:  -00747   Database:  DB2
QMF Function:  Table Edit
DSQ36748
- DSQ36765
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36766
Message:

DB2 auxiliary table cannot be referenced directly.

Explanation:

Data in an auxiliary table cannot be accessed by specifying the auxiliary table name. Data in an auxiliary table can only be accessed through operations on the base table.

User Response:

Use the corresponding base table and re-run the query.

SQLCODE:  -00766   Database:  DB2
QMF Function:  Table Edit
DSQ36798
Message:

Attempted to insert a value into ROWID GENERATED ALWAYS column.

Explanation:

When inserting into a table, a value was specified for a ROWID GENERATED ALWAYS column &V1.. GENERATED ALWAYS columns should not be specified in the column-list for an insertion unless the corresponding entry in the VALUES list is DEFAULT.

User Response:

Remove the ROWID column from the column-list or specify DEFAULT for the ROWID identifier column in the VALUES clause.

SQLCODE:  -00798   Database:  DB2
QMF Function:  Table Edit
DSQ36799
- DSQ36800
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36801
Message:

Division by zero was attempted.

Explanation:

The processing of a column or arithmetic expression resulted in division by zero.

User Response:

Correct the statement and run the query again.

SQLCODE:  -00801   Database:  DB2
QMF Function:  Table Edit
DSQ36802
Message:

An Arithmetic operation in the SQL command has resulted in an error.

Explanation:

The SQL command attempted an Arithmetic operation such as Multiplication or Division. However, the computer detected that one or more of the values in the columns selected was invalid. For example: the result of multiplication exceeds internal computer storage or division-by-zero.

User Response:

Examine the Arithmetic operation and the columns within the command to determine what data may be causing the program exception.

SQLCODE:  -00802   Database:  DB2
QMF Function:  Table Edit
DSQ36803
Message:

Duplicate value in a unique index column.

Explanation:

One of the columns into which you are inserting or updating a new value contains that same value already. That column is a 'Unique Index' column. Unique Index columns cannot have duplicate values.

User Response:

Change the value so that it does not duplicate a value already existing. Run your query again.

SQLCODE:  -00803   Database:  DB2
QMF Function:  Table Edit
DSQ36804
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36805
Message:

A program is not found in the current plan.

Explanation:

QMF executed the application plan &V2, which needs the program &V1..

If you are accessing remote data, the name of your plan may have been changed to DISTSERV.

This program was not found in the plan &V2.. The following are some causes of this error:

User Response:

Refer to the DB2 Messages and Codes manual for a detailed explanation and report this problem to your QMF administrator.

SQLCODE:  -00805   Database:  DB2
QMF Function:  Table Edit
DSQ36806
- DSQ36816
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36817
Message:

Remote update is disallowed in a READ-ONLY environment.

Explanation:

You have attempted to update, insert or delete data at a remote location, but your current operating environment allows remote read only. For example, you cannot update remote data in a CICS operating environment if server database does not support 2-phase commit.

To access remote data in a READ-ONLY operating environment, you can use one of the following:

User Response:

You can continue to use QMF. If you need to update remote data, switch to an operating environment that supports it; otherwise, contact your QMF administrator.

SQLCODE:  -00817   Database:  DB2
QMF Function:  Table Edit
DSQ36818
- DSQ36839
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36840
Message:

Your query uses too many columns.

Explanation:

You cannot select or insert more than the maximum number of columns allowed by the database from any table or set of tables in a single query.

User Response:

Rewrite the query to use fewer columns. If the query is in SQL, check statements like "SELECT * FROM A, B, C", which selects every column from each of tables A, B, and C.

SQLCODE:  -00840   Database:  DB2
QMF Function:  Table Edit
DSQ36841
- DSQ36899
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36900
Message:

You must connect to a location to continue using QMF.

Explanation:

Your database server is lost due to the previous error. If you wish to continue using QMF, you may use the QMF Lost Connection Prompt panel to connect to another location, or you can choose to exit QMF.

User Response:

If you choose to connect to another location, enter the proper values to connect to a valid location. Otherwise, you must exit QMF.

SQLCODE:  -00900   Database:  DB2
QMF Function:  Table Edit
DSQ36901
- DSQ36903
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36904
Message:

Unsuccessful execution caused by an unavailable resource. Reason code &V1, type of resource &V2, and resource name &V3..

Explanation:

The request could not be executed because the resource '&V3' of type '&V2' was not available at this time for the reason indicated by '&V1'. See DB2 Messages and Codes manual for a detailed explanation of the reason code &V1..

This may be a temporary condition.

Some common causes for this condition are:

User Response:

If you have access to the MVS JES log information, browse the log records for this unavailable resource error.

If you need to refer to a local object, but you are currently connected to a remote location, you can connect to the local location and then reference the local object.

If the resource is temporarily unavailable, issue your query again.

If DDF is stopped and the Lost Connection prompt is displayed, you may only be able to reconnect to the local DB2.

If the error condition persists, contact your QMF administrator for assistance.

SQLCODE:  -00904   Database:  DB2
QMF Function:  Table Edit
DSQ36905
Message:

Unsuccessful execution because DB2 resource limit was exceeded. Resource name = &V1., limit = &V2..

Explanation:

The execution of the SQL statement was terminated because a DB2 resource limit was exceeded.

User Response:

To avoid exceeding the DB2 resource limit, consider simplifying the SQL statement, restructuring the tables and indexes, or changing the resource limits. For further assistance, contact your QMF administrator.

SQLCODE:  -00905   Database:  DB2
QMF Function:  Table Edit
DSQ36906
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36907
Message:

Unable to determine if the updates made at a remote location were successful or not.

Explanation:

A system error occurred at the remote location where the updates were made, or a communication failure with the remote location occurred. The error occurred after the request to commit the updates was sent to the remote location. The error prevents DB2 from determining whether or not the commit operation succeeded. If the commit succeeded, updates will appear in the database. If the commit failed, the updates will have been backed out.

User Response:

After communication has been reestablished with the remote location, query the data to determine whether or not the commit operation was successful.

SQLCODE:  -00907   Database:  DB2
QMF Function:  Table Edit
DSQ36908
- DSQ36910
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36911
Message:

Sorry, your database changes have been lost.

Explanation:

Due to excessive locking or a locking conflict, the database manager has cancelled your database changes. Any additions, updates, or deletions to the table being edited have been lost.

User Response:

End your Table Editor session and redo your changes at a later time.

SQLCODE:  -00911   Database:  DB2
QMF Function:  Table Edit
DSQ36912
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36913
Message:

Sorry, your database changes have been lost.

Explanation:

Due to excessive locking or a locking conflict, the database manager has cancelled your database changes. Any additions, updates, or deletions to the table being edited have been lost.

User Response:

End your Table Editor session and redo your changes at a later time.

SQLCODE:  -00913   Database:  DB2
QMF Function:  Table Edit
DSQ36914
- DSQ36917
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36918
Message:

You must connect to a location to continue using QMF.

Explanation:

Your database server is lost due to the previous error. If you wish to continue using QMF, you may use the QMF Lost Connection Prompt panel to connect to another location, or you can choose to exit QMF.

User Response:

If you choose to connect to another location, enter the proper values to connect to a valid location. Otherwise, you must exit QMF.

SQLCODE:  -00918   Database:  DB2
QMF Function:  Table Edit
DSQ36919
- DSQ36929
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36930
Message:

There is not enough storage available to process the statement.

Explanation:

A request was made to the database manager that required another memory page but no more pages are available to the database manager. Some possible causes are:

User Response:

Correct the problem and run the query again.

SQLCODE:  -00930   Database:  DB2
QMF Function:  Table Edit
DSQ36931
- DSQ36947
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

DSQ36948
Message:

You cannot access remote data while DDF is inactive.

Explanation:

Your query attempted to access data at the remote database, but Distributed Data Facility is not started. Your query is rolled back.

User Response:

You may continue using QMF. If problem persists, contact your QMF administrator.

SQLCODE:  -00948   Database:  DB2
QMF Function:  Table Edit
DSQ36949
- DSQ36999
Message:

See DSQ36533

User Response:

Follow the directions in the referenced message.

[ Previous Page | Next Page | Contents ]