Messages DSQ1001 to DSQ19633

DSQ10001
Message:

Invalid input parameter has a value of '&1'.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10010
- DSQ10011
Message:

Invalid function code '&1' passed to module.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10012
Message:

You have no more storage space.

Explanation:

Your command cannot be executed because you don't have any space left in your virtual storage or in the QMF internal buffer.

User Response:

Use a RESET DATA command. This should give you additional storage space. If you are not using DATA now, perhaps more storage space is necessary for your session. If this error repeats, contact your QMF administrator. If you are running a QBE query, reduce your query operation rows until you no longer receive the message.

DSQ10013
Message:

The database does not support 3-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.

DSQ10014
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10015
Message:

Errors detected while &1 EXEC was executed.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10016
Message:

Free storage failed.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10017
Message:

QMF could not read the communication database. Bind package &V1..

Explanation:

The QMF programs may not be installed in the local database. Alternatively, the QMF programs are installed, but installation of the DB2 communication database may have followed that of QMF.

User Response:

Ask your QMF administrator to bind the DBRM for &V1. to a package in the local database.

DSQ10018
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10019
Message:

The module &1 could not be loaded.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10020
Message:

The module &1 could not be deleted.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10026
Message:

PROFILE information is needed to start your session.

Explanation:

Characteristics necessary to control your terminal session are not available to QMF. You cannot proceed until you have a PROFILE.

User Response:

Ask your QMF administrator to enroll you into the QMF system. When this has been completed, restart your session.

DSQ10028
Message:

Cannot reset: you have no saved profile.

Explanation:

There is no profile for your userid, and no default system profile, in the system control table Q.PROFILES. Hence you cannot reset your profile. You can continue operating with the current profile in temporary storage.

User Response:

Give the command DISPLAY PROFILE, and change your current profile to have the values you would like. Then give the command SAVE PROFILE, so there will be a profile on record for your userid (otherwise you will not be able to sign on to QMF again). Find out who or what erased your profile, and prevent it happening again.

DSQ10029
Message:

Your directory entry for QMF is not valid.

Explanation:

In order to sign on to QMF, you must have a directory entry that names the SQL/DS database virtual machine that QMF connects to.

User Response:

See your QMF administrator about correcting your directory entry.

DSQ10030
Message:

PROFILE information is needed to connect as &V1..

Explanation:

Characteristics necessary to control your terminal session as user &V1 are not available to QMF. You cannot proceed until there is a PROFILE for &V1..

User Response:

Ask your QMF administrator to enroll the requested user into the QMF system. When this has been completed, a connect for that user can then be accomplished.

DSQ10042
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10043
Message:

OK, the &1 command was cancelled at your request.

DSQ10045
- DSQ10046
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10049
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10050
- DSQ10052
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10053
Message:

Error reading Q.RESOURCE_VIEW. SQLCA is: &V1

Explanation:

The was an error detected when trying to read QMF governor resource view. The SQLCA contains information about the specific error. QMF continues to function without access to resource table.

User Response:

Report the error in accordance with your installation's procedures.

DSQ10059
- DSQ10063
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10065
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10076
Message:

Invalid function code of '&1' encountered as input to DI function.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10077
Message:

Invalid data type of '&1' returned from DBM.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10078
Message:

Query uses too many columns.

Explanation:

&V1. is the number of columns being selected or inserted which exceeds &V2., the maximum number of columns allowed 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.

DSQ10079
- DSQ10080
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10081
Message:

Unexpected failure on 'DESCRIBE'.

User Response:

This is a system error. Please see your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10082
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10084
Message:

DESCRIBEd statement is not a 'SELECT'.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10086
- DSQ10089
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10091
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10092
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10093
Message:

Column name '&V1.' is over 18 characters long.

Explanation:

Column name '&V1.' is over 18 characters long. Currently, QMF only supports up to 18 characters column name.

User Response:

Specify a shorter column name and continue to use QMF.

DSQ10101
Message:

Invalid data type of '&1' encountered.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10103
- DSQ10104
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10105
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10106
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10107
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10110
- DSQ10117
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10122
Message:

OK, the &1 command was cancelled at your request.

DSQ10123
Message:

Type '&1' invalid in Q.OBJECT_DIRECTORY row '&2'.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10125
- DSQ10127
Message:

An object named on your &V1 command can't be processed.

Explanation:

Your &V1 command uses &V2..&V3 as the name of an object in the database. A &V4 object with this name exists in the database, but has a subtype &V5 which cannot be processed by QMF.

User Response:

Change the name on your &V1 command to the name of an object QMF can process and give your command again. If you entered this command from the LIST panel, be sure that your command was formatted correctly. Refer to help behind the LIST panel for details on entering QMF commands from that panel.

DSQ10128
Message:

An object named on your &V1 command can't be processed.

Explanation:

Your &V1 command uses &V2..&V3 as the name of an object in the database. A &V4 object with this name exists in the database, but has a version level &V5 which cannot be processed by QMF.

User Response:

Change the name on your &V1 command to the name of an object QMF can process and give your command again. If you entered this command from the LIST panel, be sure that your command was formatted correctly. Refer to help behind the LIST panel for details on entering QMF commands from that panel.

DSQ10129
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10130
Message:

See DSQ10013

User Response:

Follow the directions in the referenced message.

DSQ10131
Message:

Cannot use location in QMF query, procedure, or form names.

Explanation:

QMF objects must be stored in the local database. Location as part of a query, procedure, or form name is not allowed. A QMF query, procedure, or form name has the following format:

authid.objectname

User Response:

Remove the location qualifier "&V1" from the name and retry the command.

DSQ10132
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10133
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10134
- DSQ10138
Message:

Model '&1' invalid in Q.OBJECT_DIRECTORY row '&2'.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10143
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10144
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10162
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10163
Message:

View &V1. does not exist.

Explanation:

You requested information that causes QMF to select from the view specified by global variable &V2.. That view, &V1., was not found in the database. If your database supports 3-part names and a location qualifier was added to the name of the view, the location qualifier that was used follows: &V3.

User Response:

Make sure that &V1. is the correct name. If it is not, change global variable &V2. to specify the correct name. If the name is correct, contact your QMF administrator for further information.

Note: If the view name is Q.DSQEC_QMFOBJS, then there is no global variable that can be set to specify a different view name. Q.DSQEC_QMFOBJS must be recreated. If this is the case, contact your QMF administrator for further information.

DSQ10164
Message:

The definition of view &V2. is not valid.

Explanation:

You requested information that causes QMF to select from the view named in global variable &V1.. The definition of that view is not valid, probably because it contains a SELECT DISTINCT clause and there are more columns in the view than expected by QMF.

If your definition of a list view contains a SELECT DISTINCT clause, then your definition must contain only the columns specified for this view in Installing and Managing QMF for your operating system.

User Response:

Make sure that &V2. is the correct name. If it is not, change global variable &V1. to specify the correct name. If the name is correct, contact your QMF administrator for further information.

DSQ10165
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 command. See your QMF administrator to make sure you are using the correct database, or to define the local location name.

DSQ10166
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.

DSQ10167
Message:

Error executing LIST command. SQLCA is: &1.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10168
Message:

Column &V4. is not found in view &V2..

Explanation:

You requested information that causes QMF to select from the view named in global variable &V1.. The specified view, &V2., must be defined with the required column &V4..

If your database supports 3-part names and a location qualifier was added to the name of the view, the location qualifier that was used follows: &V3.

User Response:

Recreate view &V2., defining the &V4. column as required.

DSQ10169
Message:

One or more rows selected for object information are too long.

Explanation:

You requested information that causes QMF to select from one or more of the views named in the global variables that control where QMF gets object information (such as a list of names). QMF was unable to use that view to process your request. The view or views that were used to process your request are the following: &V1. &V2. &V3.. The global variable or variables that were used to get the view names are the following: &V4. &V5. &V6..

The most likely cause of this problem is that the view is defined as SELECT DISTINCT, and at least one row that QMF is trying to retrieve contains data that is too long for the database to sort in processing the SELECT DISTINCT.

User Response:

Make sure that the view names in your global variables are correct. If they are, contact your QMF administrator for further information. Information about creating alternative views for retrieving object details can be found in the Installing and Managing QMF for your operating system.

DSQ10170
Message:

A view column is defined incorrectly.

Explanation:

You requested information that causes QMF to select from one or more of the views named in the global variables that control where QMF gets object information (such as a list of names). Either the OWNER, TNAME, or CNAME column in one of those views is derived from a column function or expression; these columns must be derived from actual table columns.

The view or views that were used to process your request are the following: &V1. &V2. &V3.. The global variable or variables that were used to get the view names are the following: &V4. &V5. &V6..

If your database supports 3-part names and a location qualifier was added to the name of the view, the location qualifier that was used follows: &V7.

User Response:

Make sure that the view names in your global variables are correct. If they are, contact your QMF administrator for further information. Information about creating alternative views for retrieving object details can be found in the Installing and Managing QMF for your operating system.

DSQ10171
Message:

You are not authorized to use view &V1..

Explanation:

You requested information that causes QMF to select from the view specified by global variable &V2.. You must have the privilege to select from this view before it can be used to get the information you requested. If your database supports 3-part names and a location qualifier was added to the name of the view, the location qualifier that was used follows: &V3.

User Response:

Make sure that &V1. is the correct name. If it is not, change global variable &V2. to specify the correct name. If the name is correct, contact your Information Center for further information.

DSQ10172
Message:

See DSQ10166

User Response:

Follow the directions in the referenced message.

DSQ10182
Message:

Column &V3. in &V2. allows nulls.

Explanation:

You requested information that causes QMF to select from the view named in global variable &V1.. That view, &V2., contains a column named &V3., which is incorrectly defined. The column must be defined as NOT NULL before the view can be used to get the information you requested.

If your database supports 3-part names and a location qualifier was added to the name of the view, the location qualifier that was used follows: &V4.

User Response:

Recreate view &V2., defining the &V3. column as NOT NULL.

DSQ10183
Message:

Column &V3. of view &V2. is too long.

Explanation:

You requested information that causes QMF to select from the view named in global variable &V1.. That view, &V2., contains a column named &V3., which is too long. The column is defined with a length of &V4., but the maximum allowed length is &V5.. The column must be defined with a length of &V5. or less before the view can be used to get the information you requested.

If your database supports 3-part names and a location qualifier was added to the name of the view, the location qualifier that was used follows: &V6.

User Response:

Recreate view &V2., defining the &V3. column as one with a length of &V5. or less.

DSQ10184
Message:

&V3. in &V2. is not character data.

Explanation:

You requested information that causes QMF to select from the view named in global variable &V1.. That view, &V2., contains a column named &V3., which is incorrectly defined. The column must be defined as character data before the view can be used to get the information you requested.

If your database supports 3-part names and a location qualifier was added to the name of the view, the location qualifier that was used follows: &V4.

User Response:

Recreate view &V2., defining the &V3. column as character data.

DSQ10185
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10186
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10187
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10189
Message:

Part of the identifier in global variable &V1. is missing.

Explanation:

You requested information that causes QMF to select from the view named in global variable &V1.. The identifier &V2. specified in that global variable is missing a required part. For example,

SMITH.

is incomplete because a name is expected after the ".". If you intend this identifier to be a complete name, you must enclose it in double quotes (for example, "SMITH.").

User Response:

Change the value of global variable &V1. so that it specifies a complete identifier.

DSQ10190
Message:

The identifier in global variable &V1. can't start with ".".

Explanation:

You requested information that causes QMF to select from the view named in global variable &V1.. The identifier &V2. specified in that global variable starts with ".". The "." (period) character cannot be used as the first character of an unquoted name.

User Response:

Remove the "." from the first character of the identifier in global variable &V1., or enclose the entire name in double quotes (for example, ".ABC").

DSQ10191
Message:

The name in global variable &V1. has an unpaired double quote.

Explanation:

You requested information that causes QMF to select from the view named in global variable &V1.. The identifier &V2. specified in that global variable has a double quote at the start or end of a name, but does not have a matching end or start double quote. For example,

"MY*TABLE

is invalid because it has no end double quote.

User Response:

Add a matching double quote to the name specified by global variable &V1..

DSQ10192
Message:

The name in global variable &V1. has an embedded double quote.

Explanation:

You requested information that causes QMF to select from the view named in global variable &V1.. The identifier &V2. specified in that global variable contains an embedded double quote. Identifiers may not have an embedded double quote. For example, ABC"XYZ is invalid. Double quotes may be used to enclose a name. For example, the table name "MY*TABLE*" is valid.

User Response:

Remove the embedded double quote from the name specified by global variable &V1..

DSQ10193
Message:

Unexpected result &1 from package &2.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10195
Message:

The name in global variable &V1. must not have a location name.

Explanation:

You requested information that causes QMF to select from the view named in global variable &V1.. The identifier &V2. specified in that global variable has a location qualifier of &V3.. You must not specify a location qualifier as part of the view name, because QMF will automatically add a location qualifier, if needed, when using the view.

User Response:

Change the value of global variable &V1. so that it does not include the location qualifier.

DSQ10196
Message:

See DSQ10093

User Response:

Follow the directions in the referenced message.

DSQ10200
- DSQ10214
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10215
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10218
- DSQ10228
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10243
Message:

'&1'.'&2' not found in Q.OBJECT_DATA.

User Response:

This is a system error. Please see your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10245
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10246
- DSQ10248
Message:

Unexpected return code from RPT: &1.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10254
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10274
Message:

Internal error due to insufficient parameters passed to DSQICONN.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10275
Message:

Your startup location name length exceeded &V2 characters.

Explanation:

You supplied the location name, &V1, during QMF start up. However, location names at your installation cannot exceed &V2 characters.

QMF cannot start until you provide a valid startup location name.

User Response:

Verify that the location name, &V1, is correct. If you do not want to process remote unit of work in QMF, omit the startup location name and restart QMF. Otherwise, contact your QMF administrator.

DSQ10276
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10277
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10278
Message:

Location name is not supported in your current database.

Explanation:

You have supplied a location name when you started QMF. However, you cannot use the location name parameter because the connection to remote locations is not supported in your database.

QMF cannot start with the location name.

User Response:

Remove the location name value in the location parameter and restart QMF. Otherwise, contact your QMF administrator.

DSQ10282
Message:

Cannot use database; ATTACH subtask error.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10283
- DSQ10286
Message:

Cannot use database; RC = &1.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10287
Message:

Cannot use QMF: the database manager program is not active.

Explanation:

QMF operates only with a database manager program. The database manager program, "&V1", is not running now.

User Response:

Call your QMF administrator to get the database manager program running.

DSQ10288
Message:

Cannot use database; subsystem id=&1, reason=&2.

User Response:

This is a system error. Please see your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10289
Message:

Not authorized to use PLANID &V1 in the database.

Explanation:

The procedure you used to invoke QMF referred to the DB2 PLANID "&V1". You are not authorized to use that PLANID.

User Response:

Check the invocation procedure. Perhaps you spelled the PLANID incorrectly.

DSQ10290
Message:

You cannot use the local DB2: too many users are active.

Explanation:

The local DB2 subsystem cannot handle more users at the present time.

User Response:

Wait until one or more active users log off before trying to use QMF.

DSQ10291
Message:

Cannot use database; PLANID=&1, reason=&2.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10294
Message:

Cannot discontinue use of database; RC=&1.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10297
Message:

Invalid subsystem id SID &V1 in the current operating system.

Explanation:

The procedure you used to invoke QMF referred to the DB2 subsystem ID SID "&V1". The SID "&V1" is invalid in the current operating system.

User Response:

Check the invocation procedure. Perhaps you spelled the SID incorrectly.

DSQ10298
Message:

Invalid PLANID &V1 in the database.

Explanation:

The procedure you used to invoke QMF referred to the DB2 PLANID "&V1". PLANID "&V1" is invalid.

User Response:

Check the invocation procedure. Perhaps you spelled the PLANID incorrectly.

DSQ10299
Message:

Warning, release of call attachment facility does not match release of DB2.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10301
Message:

Invalid input parameter has a value of '&1'.

User Response:

Follow the directions in the referenced message.

DSQ10315
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10316
Message:

DESCRIBEd statement is not a 'SELECT'.

User Response:

Follow the directions in the referenced message.

DSQ10317
Message:

Table has too many columns.

Explanation:

The table has &V1. columns which exceeds &V2., the maximum number of columns allowed.

User Response:

Write and run a query that selects fewer columns than the maximum.

DSQ10319
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10320
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10325
Message:

You are not authorized to select from Q.DSQ_RESERVED.

Explanation:

The QMF table Q.DSQ_RESERVED was not authorized to public during QMF installation. This table should be authorized to public.

User Response:

Contact your QMF administrator for assistance.

DSQ10326
Message:

The module &1 could not be loaded.

User Response:

Follow the directions in the referenced message.

DSQ10327
Message:

The module &1 could not be deleted.

User Response:

Follow the directions in the referenced message.

DSQ10328
Message:

You are not authorized to select from SYSTEM.SYSOPTIONS.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10329
Message:

SQLOPTION &1 is not defined in SYSTEM.SYSOPTIONS.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10330
Message:

SQLOPTION &1 in SYSTEM.SYSOPTIONS has wrong value &2.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10331
Message:

DB2 resource limit stopped QMF execution.

Explanation:

During QMF initialization, DB2 indicated that a resource limit was exceeded. QMF needed more time to execute a dynamic SQL statement.

User Response:

Contact your QMF administrator to have the DB2 resource limit changed.

DSQ10332
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10333
Message:

The database product (&V1) is not supported by QMF.

Explanation:

QMF has rejected an attempt to connect to a DRDA application server. The database product was identified as:

This release of QMF supports database product types of:

User Response:

Verify the location name specified for the connection. Make corrections then retry the connection.

Contact your QMF Administrator for assistance in determining supported database product levels.

DSQ10334
Message:

Errors detected while &1 EXEC was executed.

User Response:

Follow the directions in the referenced message.

DSQ10335
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10336
Message:

See DSQ10333

User Response:

Follow the directions in the referenced message.

DSQ10346
Message:

OK, the &1 command was cancelled at your request.

DSQ10347
Message:

Only tables, views, and aliases have been listed.

Explanation:

You used the LOCATION option with your list request. Location names cannot be used to refer to QMF objects (queries, procedures, and forms), therefore they are not included in your list. Your list includes any tables, views, or alias names found in the database.

User Response:

If you would like to see a list of QMF objects, do not use a location name when requesting the list.

DSQ10348
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10349
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10350
- DSQ10351
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10352
Message:

Invalid function code of '&1' encountered as input to DI function.

User Response:

Follow the directions in the referenced message.

DSQ10353
Message:

See DSQ10013

User Response:

Follow the directions in the referenced message.

DSQ10354
Message:

QMF objects cannot be listed when a location is specified.

Explanation:

You used a location name when requesting a list of QMF objects (queries, procedures, or forms). Location names cannot be used to refer to QMF objects. You can use only those QMF objects that are stored on your current database.

User Response:

If you would like to see a list of QMF objects that are stored on your current database, do not specify a location name when requesting the list.

DSQ10355
Message:

Type '&1' invalid in Q.OBJECT_DIRECTORY row '&2'.

User Response:

Follow the directions in the referenced message.

DSQ10361
Message:

Invalid function code of '&1' encountered as input to DI function.

User Response:

Follow the directions in the referenced message.

DSQ10362
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ10364
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ10370
Message:

The module &1 could not be loaded.

User Response:

Follow the directions in the referenced message.

DSQ10371
Message:

The module &1 could not be deleted.

User Response:

Follow the directions in the referenced message.

DSQ10381
- DSQ10386
Message:

Buffer too small to contain SQL statement.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10392
- DSQ10400
Message:

Invalid function code '&1' passed to module.

User Response:

Follow the directions in the referenced message.

DSQ10420
Message:

Unavailable resources at location &V5..

Explanation:

System resources were unavailable when your remote request was processed at location &V5. You are still connected to the current location.

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

User Response:

You may continue to use QMF. If the problem persists, contact your QMF administrator.

DSQ10421
Message:

Your connection to &V5 was lost due to unavailable resources.

Explanation:

Your connection to location &V5 was lost because certain system resources were unavailable when your remote request was processed at location &V5.

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

QMF attempted to reconnect you to the current location, If the attempt succeeds, you may continue to use QMF. If not, the Lost Connection Prompt panel prompts you to connect to another location, or to exit QMF.

User Response:

If QMF successfully reconnects you to the current location, you can continue to use QMF.

If the Lost Connection Prompt panel is displayed, you can choose to connect to another location. If you cannot connect to a location, exit QMF and contact your QMF administrator.

If the problem persists, contact your QMF administrator.

SQLCODE:  -30041   Database:  DB2
QMF Function:  All
DSQ10422
Message:

You are not authorized to access the specified location.

Explanation:

Your attempt to access the specified location failed because your userid does not have sufficient authority. The SQLCODE is &V9..

Your connection to the current location was lost because of this error. QMF attempted to reconnect you to the current location. If the reconnect attempt fails, the Lost Connection Prompt panel prompts you to connect to another location or to exit QMF.

User Response:

If QMF successfully reconnects you to the current location, you may continue to use QMF.

If the Lost Connection Prompt panel is displayed, you can choose to connect to another location. If you cannot connect to a location, exit QMF and contact your QMF administrator.

SQLCODE:  -30060   Database:  DB2
QMF Function:  All
DSQ10423
Message:

The specified location was not found.

Explanation:

Your attempt to access the specified location failed because the location could not be found. This may happen because the specified location is remote and it was defined incorrectly in the local DB2 subsystem. The SQLCODE is &V9..

Your connection to the current location was lost because of this error. QMF attempted to reconnect you to the current location. If the reconnect attempt fails, the Lost Connection Prompt panel prompts you to connect to another location, or to exit QMF.

User Response:

If QMF successfully reconnects you to the current location, you can continue to use QMF.

If the Lost Connection Prompt panel is displayed, you can choose to connect to another location. If you cannot connect to a location, exit QMF and contact your QMF administrator.

If the specified location is incorrectly defined in your local DB2 subsystem, contact your QMF administrator.

SQLCODE:  -30061   Database:  DB2
QMF Function:  All
DSQ10424
Message:

A communication error has been detected.

Explanation:

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

The SQLCA is: &V1..

This error may occur because your database system does not support a connection to the specified target location.

Or, this error may occur when the application server is SQL/DS and the "FORCE WITHOUT DISABLE" command was issued while a connection was routed via AVS or TSAF.

Because of this error, your connection was lost. QMF attempted to connect you to the location you were connected to before the error was detected. If the reconnect attempt fails, you will see the Lost Connection Prompt panel.

User Response:

If QMF successfully reconnected you to the previous location, you can continue to use QMF.

If the Lost Connection Prompt panel is displayed, you can choose to connect to another location, or to exit QMF. If you cannot establish connection to a location, exit QMF and consult your QMF administrator.

If the problem persists, provide your QMF administrator with the SQLCA data.

SQLCODE:  -30080   Database:  DB2
QMF Function:  All
DSQ10425
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:  -30090   Database:  DB2
QMF Function:  All
DSQ10426
Message:

The server does not support DDM parameter &V1..

Explanation:

Your attempt to connect to a remote server failed because that server does not support the Distributed Data Management (DDM) command parameter value, &V1..

The SQLCODE is &V9..

A possible cause for this error:

User Response:

Verify that your QMF command is correct. If it is correct, contact your QMF administrator for assistance. Refer to the Messages and Codes manual of the currently connected server for a detailed explanation on this error.

SQLCODE:  -30073   Database:  DB2
QMF Function:  All
DSQ10427
Message:

A communications error was detected.

Explanation:

A communications error was detected while communicating with a remote client or server. The following data was returned:

The return code values are documented in Assembler Callable Services for OpenEdition MVS.

User Response:

Consult with a communications expert to determine the cause of the failure.

SQLCODE:  -30081   Database:  DB2
QMF Function:  All
DSQ10450
Message:

Unavailable resources at location &V1..

Explanation:

System resources were unavailable when your remote request was processed at location &V1. However, you are still connected to the current location.

Refer to the SQL/DS Messages and Codes manual for a detailed explanation.

User Response:

You can continue to use QMF. If this problem persists, contact your QMF administrator.

DSQ10451
Message:

Your connection to &V1 was lost due to unavailable resources.

Explanation:

Your connection to &V1 was lost because system resources were unavailable when your remote request was processed at location &V1.

Refer to the SQL/DS Messages and Codes manual for a detailed explanation of this error.

QMF attempted to reconnect you to the current location. If the attempt succeeds, you can continue to use QMF. If not, the Lost Connection Prompt panel prompts you to connect to another location, or to exit QMF.

User Response:

If QMF successfully reconnects you to the current location, you can continue to use QMF at location &V1..

If the Lost Connection Prompt panel is displayed, you can choose to connect to another location. If you cannot connect to a location, exit QMF and contact your QMF administrator.

If the problem persists, contact your QMF administrator.

SQLCODE:  -30041   Database:  SQL/DS
QMF Function:  All
DSQ10452
Message:

You are not authorized to access the location &V1..

Explanation:

Your attempt to access the location &V1 was unsuccessful because your userid does not have sufficient authority to access that location. The SQLCODE is &V9..

Your connection to the current location was lost because of this error. QMF attempted to reconnect you to the current location. If the reconnect attempt fails, the Lost Connection Prompt panel prompts you to connect to another location, or to exit QMF.

If you issued a CONNECT command specifying both a userid and a location name, you should have explicit connect authority at the target location.

User Response:

If QMF successfully reconnects you to the current location and using your default userid at location &V1 is sufficient, you can issue a "CONNECT TO &V1" command. The implicit connect provided by the database allows you to access &V1 with the default userid.

If you are prompted to reconnect and using the default user ID at location &V1 is sufficient, enter &V1 for the location value and leave userID and password blank. If you cannot connect to location &V1, specify a different location.

If you must use a userid other than your default at &V1., exit QMF and obtain the explicit connect authority at location &V1 through your QMF administrator.

SQLCODE:  -30060   Database:  SQL/DS
QMF Function:  All
DSQ10453
Message:

The specified location name was not found.

Explanation:

Your attempt to access the specified location was unsuccessful because that location could not be found. This may happen because the specified location is a remote location and it was defined incorrectly in the SQL/DS database. The SQLCODE is &V9..

Your connection to the current location was lost because of this error. QMF attempted to reconnect you to the current location. If the attempt is unsuccessful, the Lost Connection Prompt panel prompts you to connect to another location, or to exit QMF.

User Response:

If the specified location name is defined in your user communications directory, verify if the entry for the specified location is defined correctly. If not, correct it and try again.

If QMF successfully reconnects you to the current location, you can continue to use QMF.

If the Lost Connection Prompt panel is displayed, you can choose to connect to another location. If you cannot connect to a location, exit QMF and contact your QMF administrator.

Contact your QMF administrator to define the location &V1 correctly in your default SQL/DS database.

SQLCODE:  -30061   Database:  SQL/DS
QMF Function:  All
DSQ10454
Message:

A communication error has been detected.

Explanation:

Refer to the SQL/DS Messages and Codes manual for a detailed explanation of this error.

The SQLCA is: &V1..

This error may occur for the following reasons:

Because of this error, your connection was lost.

QMF attempted to connect you to the location you were connected to before the error was detected. If the reconnect attempt failed, you will see the Lost Connection Prompt panel.

User Response:

If QMF successfully reconnected you to the previous location, you can continue to use QMF.

If the Lost Connection Prompt panel is displayed, you can choose to connect to another location, or to exit QMF. If you cannot connect to a location, exit QMF and consult your QMF administrator.

If you have issued a CONNECT command and have an old password in the user communications directories, update the password and reload the communications directories.

If the problem persists, provide your QMF administrator with the SQLCA data.

SQLCODE:  -30080   Database:  SQL/DS
QMF Function:  All
DSQ10455
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:  -30090   Database:  SQL/DS
QMF Function:  All
DSQ10456
Message:

The server does not support DDM parameter &V1..

Explanation:

Your attempt to connect to a remote server failed because that server does not support the Distributed Data Management (DDM) command parameter value, &V1..

The SQLCODE is &V9..

A possible cause for this error:

User Response:

Verify that your QMF command is correct. If it is correct, contact your QMF administrator for assistance. Refer to the Messages and Codes manual of the currently connected server for a detailed explanation on this error.

SQLCODE:  -30073   Database:  SQL/DS
QMF Function:  All
DSQ10480
- DSQ10481
Message:

System problem in FP function. FPCODE = &1.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10493
Message:

Sorry, a system error occurred. Your command may not have been executed.

Explanation:

&DSQSMSG1

The computer has detected an internal error. Error information is recorded in the table Q.ERROR_LOG and QMF trace data.

User Response:

Report the error in accordance with your installation's procedures. See Installing and Managing QMF for your operating system for help in interpreting the error information in Q.ERROR_LOG and QMF trace data. Also, check to see if your command executed correctly. You may continue to use QMF.

SQLCODE:  -00922   Database:  N/A
QMF Function:  Special
DSQ10494
Message:

Sorry, a system error occurred. Your command may not have been executed.

Explanation:

&DSQSMSG1

The computer has detected an internal error. Error information is recorded in the table Q.ERROR_LOG and QMF trace data.

User Response:

Report the error in accordance with your installation's procedures. See Installing and Managing QMF for your operating system for help in interpreting the error information in Q.ERROR_LOG and QMF trace data. Also, check to see if your command executed correctly. You may continue to use QMF.

SQLCODE:  -00923   Database:  N/A
QMF Function:  Special
DSQ10495
Message:

OK, command canceled.

SQLCODE:  -00999   Database:  N/A
QMF Function:  Special
DSQ10497
- DSQ10498
Message:

Non end-user SQLCODE returned from DBM. SQLCA is as follows: &1

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ10499
Message:

Sorry, a system error occurred. Your command may not have been executed.

Explanation:

&DSQSMSG1

The computer has detected an internal error. Error information is recorded in the table Q.ERROR_LOG and QMF trace data.

User Response:

Report the error in accordance with your installation's procedures. See Installing and Managing QMF for your operating system for help in interpreting the error information in Q.ERROR_LOG and QMF trace data. Also, check to see if your command executed correctly. You may continue to use QMF.

SQLCODE:  -00902   Database:  N/A
QMF Function:  Special
DSQ10501
Message:

Your query is too long or too complex.

Explanation:

The QBE query results in a SQL statement that is too long or too complex to be interpreted. It can be simplified by reducing the number of :

  1. Conversions from one data type to another.
  2. Decimal operations.
  3. Constants to be inserted.
  4. Built-in functions.
User Response:

Shorten your query or rewrite it as more than one query. Consider writing a query that produces a table of intermediate results. Save that table, and write a second query that uses it to produce your final result.

SQLCODE:  -00101   Database:  SQL/DS
QMF Function:  QBE
DSQ10503
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:  QBE
DSQ10505
Message:

A NULL, expression, or comparison in your query is invalid.

Explanation:

If your query uses NULL, make sure that it is used to the right of an =. Also make sure that it is not part of an expression, or a condition that contains an expression.

If your query uses I., and the I. row contains no links to other rows, make sure that only constants are used in the I. row.

If your query uses U., make sure that columns containing a U. do not contain a comparison.

User Response:

Correct any invalid use of NULL, remove an expression from a row that has an I., or remove a comparison from a column that has a U. operator.

SQLCODE:  -00105   Database:  SQL/DS
QMF Function:  QBE
DSQ10518
Message:

A row with D., I., or U. can't link to a row of the same table.

Explanation:

Any row containing a D., I., or U. cannot be linked to another row if both refer to the same table.

User Response:

Remove the link and run the query again.

SQLCODE:  -00118   Database:  SQL/DS
QMF Function:  QBE
DSQ10521
Message:

You cannot modify a column twice in the same query.

Explanation:

"Modify" includes insert (I.) and update (U.). For example, in the following invalid query, the column 'YEARS' cannot be modified more than once.

Incorrect:
                   *               *
Q.STAFF | ID   | YEARS | JOB   | YEARS |
--------+------+-------+-------+-------|
I.      | 400  | 7     | CLERK | 8     |
User Response:

Change the query and run it again.

SQLCODE:  -00121   Database:  SQL/DS
QMF Function:  QBE
DSQ10524
Message:

An AO. or DO. is used in more than 16 columns.

Explanation:

No more than 16 columns can contain an AO. or DO. operator.

User Response:

Reduce the number of columns that contain AO. or DO. to 16 or fewer.

SQLCODE:  -00124   Database:  SQL/DS
QMF Function:  QBE
DSQ10527
Message:

More than one UNQ. or COUNT. reference to a row.

Explanation:

A row may contain no more than one UNQ. or CNT. reference. The following invalid query has a CNT. and a UNQ. reference to the row in the Q.STAFF table.

Invalid
 Query:

Q.STAFF | DEPT | SALARY | YEARS |
--------+------+--------+-------|
        | P.G. |  _S    |  _Y   |

      |          |     CONDITIONS     |
      |----------+--------------------|
      | P.CNT._S | AVG.UNQ._Y > 5     |
User Response:

Correct your query and run it again.

SQLCODE:  -00127   Database:  SQL/DS
QMF Function:  QBE
DSQ10529
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:  QBE
DSQ10534
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:  -00134   Database:  SQL/DS
QMF Function:  QBE
DSQ10535
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:  QBE
DSQ10541
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:  -00141   Database:  SQL/DS
QMF Function:  QBE
DSQ10550
Message:

Your query attempts to modify data in a view.

Explanation:

You cannot use I., U., or D. with a view that ...

  1. Is based on more than one table.
  2. Contains a column defined by an expression or built-in function. Examples: _SALARY _COMM AVG._SALARY
  3. Is defined by a SQL SELECT statement that uses DISTINCT or GROUP BY.
User Response:

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

SQLCODE:  -00150   Database:  SQL/DS
QMF Function:  QBE
DSQ10551
Message:

Your query attempts to modify data in a view.

Explanation:

You cannot use I., U., or D. with a view that ...

  1. Is based on more than one table.
  2. Contains a column defined by an expression or built-in function. Examples: _SALARY _COMM AVG._SALARY
  3. Is defined by a SQL SELECT statement that uses DISTINCT or GROUP BY.
User Response:

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

SQLCODE:  -00151   Database:  SQL/DS
QMF Function:  QBE
DSQ10552
Message:

Invalid query of a view.

Explanation:

The operation violates one of these rules:

  1. You cannot do an I., U., or D. if the view uses ...
       -  data from more than one table.
       -  data selected using a SQL DISTINCT
          or GROUP BY.
  2. You cannot use I. or U. (you can use D.) for a column defined by a SQL expression (like SALARY/12) or a SQL built-in function (like AVG(SALARY)).
  3. You cannot us I. if two columns of the view are based on the same column of the table, or if the view does not use some column of the table that is defined as NOT NULL.
User Response:

Make your query valid according to the above.

SQLCODE:  -00152   Database:  SQL/DS
QMF Function:  QBE
DSQ10554
Message:

Invalid query of a view.

Explanation:

The operation violates one of these rules:

  1. You cannot do an I., U., or D. if the view uses ...
       -  data from more than one table.
       -  data selected using a SQL DISTINCT
          or GROUP BY.
  2. You cannot use I. or U. (you can use D.) for a column defined by a SQL expression (like SALARY/12) or a SQL built-in function (like AVG(SALARY)).
  3. You cannot us I. if two columns of the view are based on the same column of the table, or if the view does not use some column of the table that is defined as NOT NULL.
User Response:

Make your query valid according to the above.

SQLCODE:  -00154   Database:  SQL/DS
QMF Function:  QBE
DSQ10555
Message:

Query uses a view defined by grouping.

Explanation:

A view is defined by grouping if its definition uses GROUP BY or HAVING. Such a view may not be used in a query along with any other view or table.

User Response:

Consider doing something like this:

  1. Run a query to select data from the view defined by grouping.
  2. Save the data as a new table.
  3. Run a query that selects data from the new table along with data from the other views and tables.

SQLCODE:  -00155   Database:  SQL/DS
QMF Function:  QBE
DSQ10556
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:  QBE
DSQ10565
Message:

A name in your query starts or ends with a blank.

Explanation:

Names must not begin or end with a blank. In the following invalid query, the name, " YEARS", is invalid because it contains a leading blank.

Invalid
 Query:

      Q.STAFF | NAME | " YEARS" |
      --------+------+----------|
         P.   |      |          |
User Response:

Remove the leading or trailing blank from the name.

SQLCODE:  -00165   Database:  SQL/DS
QMF Function:  QBE
DSQ10566
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 si and so.

User Response:

Change your query and run it again.

SQLCODE:  -00166   Database:  SQL/DS
QMF Function:  QBE
DSQ10580
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:  QBE
DSQ10581
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:  QBE
DSQ10582
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:

Q.PROJECT | STARTD |                  |
----------+--------+------------------|
          | _D     | P._D + 10102433. |
User Response:

Check datetime value and run the query again.

SQLCODE:  -00182   Database:  SQL/DS
QMF Function:  QBE
DSQ10583
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:  QBE
DSQ10585
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:  QBE
DSQ10591
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:  QBE
DSQ10592
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:  QBE
DSQ10602
Message:

Column &V1 is not in the table named.

Explanation:

&V1 appears as a column name in an example table, but it is not a column in that table in the database.

User Response:

Change the column name. Give the command "DRAW tablename" (where "tablename" is the name of the table) to get an example table with all the column names filled in correctly.

SQLCODE:  -00202   Database:  SQL/DS
QMF Function:  QBE
DSQ10604
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:  QBE
DSQ10605
Message:

Column name &V1 is not in table &V2..

Explanation:

You used column name &V1.. It was not found in table &V2.. You may have misspelled the name, or the table name may need to be qualified.

User Response:

Verify that the column name and owner are correct and spelled correctly.

SQLCODE:  -00205   Database:  SQL/DS
QMF Function:  QBE
DSQ10712
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:  QBE
DSQ10713
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:  QBE
DSQ10730
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:  QBE
DSQ10732
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:  QBE
DSQ10751
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:  QBE
DSQ10801
Message:

Data of different types must not be used in an expression or condition.

Explanation:

You used data of different types in an expression or condition. For example, the following is not valid because character data (SMITH) is compared to numeric data (_SALARY):

Invalid     _SALARY = SMITH
Example:
User Response:

Change any expression or condition so that data of the same type is used.

SQLCODE:  -00401   Database:  SQL/DS
QMF Function:  QBE
DSQ10802
Message:

An arithmetic expression contains character data.

Explanation:

Arithmetic expressions, and expressions using the built-in functions AVG and SUM, may use only numeric data. Some expression in your query uses character data.

User Response:

Rewrite the expression, using only numeric data, and run your query again.

SQLCODE:  -00402   Database:  SQL/DS
QMF Function:  QBE
DSQ10804
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:  QBE
DSQ10805
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:  QBE
DSQ10806
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:  QBE
DSQ10807
Message:

A column defined as NOT NULL may not contain a NULL.

Explanation:

Your query uses I. or U. in an attempt to enter a NULL into a column that is designated as NOT NULL. The following query attempts to insert a NULL into ID, but ID is defined as a NOT NULL column. Note that in an I. row, NULL is entered for

  1. named columns that have no insert value
  2. columns that contain NULL
  3. columns defined for the table but not named in the query

  Q.STAFF | ID | NAME       | DEPT  |
   -------+----+------------+-------|
    I.    |    | 'J.Harris' |       |

      | YEARS |
      |-------|
      | NULL  |
User Response:

Specify a value for the NOT NULL column.

SQLCODE:  -00407   Database:  SQL/DS
QMF Function:  QBE
DSQ10808
Message:

An update or insert value is incompatible with the data type of its associated column.

Explanation:

Your query attempts to insert or update a column with a value from another column that is incompatible. The following invalid query attempts to insert into a numeric column (ID) a value from a character column (NAME).

Invalid
 Query:

  MYSTAFF | ID       | NAME     |
  --------+----------+----------|
     I.   | _N       | _N       |

     Q.STAFF | ID       | NAME     |
     --------+----------+----------|
             | _I       | _N       |
User Response:

Use a compatible value.

SQLCODE:  -00408   Database:  SQL/DS
QMF Function:  QBE
DSQ10810
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:  QBE
DSQ10811
Message:

Invalid use of "USER". USER was used in an expression, compared to numeric data, or not used in a condition.

Explanation:

USER may be used only in a condition. Additionally, it may not be compared to numeric data. The following is an example of a valid use of USER.

 Q.STAFF | NAME  | SALARY | COMM | YEARS |
---------+-------+--------+------+-------|
   P.    | USER  |        |      |       |
User Response:

Correct the use of USER in your query.

SQLCODE:  -00411   Database:  SQL/DS
QMF Function:  QBE
DSQ10813
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:  QBE
DSQ10814
Message:

A LIKE operator in your query does not refer to character data or graphic data.

Explanation:

The LIKE operator may only be used with a column that has character data or graphic data. Your query uses a LIKE to refer to a column that does not have character or graphic data. For example,

Invalid     Q.STAFF | NAME | SALARY    |
 Query:     --------+------+-----------|
              P.    |      | LIKE'20%' |
User Response:

Remove the LIKE reference to numeric data or datetime data and run the query again.

SQLCODE:  -00414   Database:  SQL/DS
QMF Function:  QBE
DSQ10815
Message:

Data to be retrieved into the same column of two separate P. rows must have comparable definitions.

Explanation:

Your query contains 2 or more P. rows with data definitions that cannot be compared. This query unsuccessfully attempted to retrieve data into the same column. The data definitions for these P. rows must be comparable for the retrieval to succeed. Additionally, the columns to be retrieved into the same output column must have the same field procedure and column CCSID value, provided the columns to be retrieved have field procedures.

The following query attempts to retrieve NUMERIC data (DEPT) and LONG VARCHAR data (JOB) into the same column.

Invalid
 Query:

 Q.staff  |  DEPT   |        |  JOB    |
 ---------+---------+--------+---------|
          |   _D    | P. _D  |         |
          |         | P. _J  |   _J    |
User Response:

Ensure that data retrieved into the same column have comparable definitions.

SQLCODE:  -00415   Database:  SQL/DS
QMF Function:  QBE
DSQ10816
Message:

Data to be retrieved into the same column by two different P. rows must not refer to long variable character data.

Explanation:

Your query attempts to retrieve data into the same column from 2 sources, but at least one of those sources is data defined as long variable character data. The following is an example of such an invalid query.

Invalid    MYTABLE | LONGVARCHAR1 |
 Query:    --------+--------------|
              P.   |              |
              P.   |     _L2      |

           YOURTABLE | LONGVARCHAR2 |
           ----------+--------------|
                     |   _L2        |
User Response:

Remove the reference in the same column to long variable character data.

SQLCODE:  -00416   Database:  SQL/DS
QMF Function:  QBE
DSQ10817
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:  QBE
DSQ10818
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:  QBE
DSQ10819
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:  QBE
DSQ10930
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:  QBE
DSQ10932
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:  QBE
DSQ10934
Message:

Cannot update a primary key or unique constraint in multiple rows.

Explanation:

You cannot use U. to update a primary key or unique constraint in more than one row at a time.

User Response:

Make sure the update request selects no more than one row of data.

SQLCODE:  -00534   Database:  SQL/DS
QMF Function:  QBE
DSQ10936
Message:

The deletion is invalid because table &V1..&V2 can be affected.

Explanation:

You cannot use D. to delete from a table based on values in table &V1..&V2, because table &V1..&V2 can be affected by the deletion.

User Response:

Do not attempt to delete from a table based on values in a table that can be affected.

SQLCODE:  -00536   Database:  SQL/DS
QMF Function:  QBE
DSQ10951
Message:

You lack the authorization necessary to run your query.

Explanation:

Your QBE query uses one of the operators listed below, and requires the corresponding authorization on the appropriate tables.

D. -- DELETE
I. -- INSERT
P. -- SELECT
U. -- UPDATE
User Response:

See your QMF administrator to obtain the proper authorization for your query.

SQLCODE:  -00551   Database:  SQL/DS
QMF Function:  QBE
DSQ10952
Message:

You lack the authorization necessary to run your query.

Explanation:

Your QBE query uses one of the operators listed below, and requires the corresponding authorization on the appropriate tables.

D. -- DELETE
I. -- INSERT
P. -- SELECT
U. -- UPDATE
User Response:

See your QMF administrator to obtain the proper authorization for your query.

SQLCODE:  -00552   Database:  SQL/DS
QMF Function:  QBE
DSQ10961
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:  QBE
DSQ11040
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:  QBE
DSQ11068
Message:

Table &V1..&V2 cannot be accessed. &V3 &V4 is inactive.

Explanation:

No operation can be performed on table &V1..&V2 because the &V3 &V4 is inactive.

User Response:

Try again when the key has been activated.

SQLCODE:  -00668   Database:  SQL/DS
QMF Function:  QBE
DSQ11087
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:  QBE
DSQ11101
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:  QBE
DSQ11102
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:  QBE
DSQ11103
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:  QBE
DSQ11110
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:  QBE
DSQ11112
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:  QBE
DSQ11201
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:  QBE
DSQ11202
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:  QBE
DSQ11203
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:  QBE
DSQ11205
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:  QBE
DSQ11208
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:  QBE
DSQ11223
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:  QBE
DSQ11311
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:  QBE
DSQ11312
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:  QBE
DSQ11314
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:  QBE
DSQ11315
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:  QBE
DSQ11316
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:  QBE
DSQ11330
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:  QBE
DSQ11333
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:  QBE
DSQ11339
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:  QBE
DSQ11340
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:  QBE
DSQ11342
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:  QBE
DSQ11343
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:  QBE
DSQ11348
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:  QBE
DSQ11419
Message:

You cannot use this view.

Explanation:

Your command names a view whose definition has one of these errors:

  1. It uses both a column name and a column function after SELECT, but omits GROUP BY.
    Correct:  SELECT DEPT, AVG(SALARY)
              FROM Q.STAFF GROUP BY DEPT
  2. Some column 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)
  3. After HAVING it uses 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:  SUM (UNITS * RATE)
                    (Not: SUM(UNITS) * RATE)
User Response:

Change the definition of the view and enter the command again.

SQLCODE:  -00119   Database:  SQL/DS
QMF Function:  Command
DSQ11429
Message:

The table specified has too many columns.

Explanation:

In the specified table, the following item exceeds the limit.

      Selected columns        255
User Response:

Correct your command so that it conforms to the limit.

SQLCODE:  -00129   Database:  SQL/DS
QMF Function:  Command
DSQ11441
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:  Command
DSQ11449
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:  Command
DSQ11450
Message:

You cannot use &V1 with this view.

Explanation:

You cannot name a view in a command if executing the command would require QMF to...

  1. INSERT, UPDATE, or DELETE
     - data from more than one table
     - a column defined by a built-in
       function (like SUM(COMM))
     - data selected by DISTINCT or GROUP BY
  2. INSERT or UPDATE a column defined by an expression (like SALARY/12).
  3. INSERT the value NULL into a column defined as NOT NULL in the table the view is based on.
User Response:

Pick a new name for the data, give the command "SAVE DATA AS newname", and so create a new table.

SQLCODE:  -00150   Database:  SQL/DS
QMF Function:  Command
DSQ11451
Message:

Column &V2 cannot be changed.

Explanation:

Your &V1 command cannot be executed with the replace option, because that changes 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 where no columns can be updated.
User Response:

Choose a new name for the data to be saved, and so save it as a new table.

SQLCODE:  -00151   Database:  SQL/DS
QMF Function:  Command
DSQ11454
Message:

You cannot use &V1 with this view.

Explanation:

You cannot name a view in a command if executing the command would require QMF to...

  1. INSERT, UPDATE, or DELETE
     - data from more than one table
     - a column defined by a built-in
       function (like SUM(COMM))
     - data selected by DISTINCT or GROUP BY
  2. INSERT or UPDATE a column defined by an expression (like SALARY/12).
  3. INSERT the value NULL into a column defined as NOT NULL in the table the view is based on.
User Response:

Pick a new name for the data, give the command "SAVE DATA AS newname", and so create a new table.

SQLCODE:  -00154   Database:  SQL/DS
QMF Function:  Command
DSQ11465
Message:

A double-quoted name cannot start or end with a blank.

Explanation:

Your command contains a double-quoted name that begins or ends with a blank. Nothing in the database can have such a name.

User Response:

This may be a typographical error. Make the correction and issue the command again. If you entered this command from the LIST panel, be sure that your command was formatted correctly. Press the HELP function key on the LIST panel for details on entering QMF commands from that panel.

SQLCODE:  -00165   Database:  SQL/DS
QMF Function:  Command
DSQ11480
Message:

Your &V1 command referenced an invalid DATETIME value.

Explanation:

Your &V1 command referenced an invalid DATETIME value. This may happen if your command references a view which contains an invalid DATETIME value in the view definition. 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:

If your &V1 command references a view, correct the syntax for the DATETIME value in the view definition and run the &V1 command again. Contact your QMF administrator for further help.

SQLCODE:  -00180   Database:  SQL/DS
QMF Function:  Command
DSQ11504
Message:

&V2..&V3 cannot be found.

Explanation:

&V3 is not the name of anything in the database owned by &V2.. Possibly your &V1 command specified a synonym based on table &V2..&V3.. Such a table no longer exists in the database. Commands using synonyms based on this table cannot be executed.

User Response:

Continue with another operation.

SQLCODE:  -00204   Database:  SQL/DS
QMF Function:  Command
DSQ11505
Message:

Column name &V1 is not in table &V2..

Explanation:

You used column name &V1.. It was not found in table &V2.. You may have misspelled the name, or the table name may need to be qualified.

User Response:

Verify that the column name and owner are correct and spelled correctly.

SQLCODE:  -00205   Database:  SQL/DS
QMF Function:  Command
DSQ11630
Message:

One or more converted characters are not usable.

Explanation:

Your &V1 command referenced a character string which needs to 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, the character string could not be used as specified.

User Response:

Verify that your command is correct. If not, make the necessary change and rerun the command. Otherwise, consult your QMF administrator.

SQLCODE:  -00330   Database:  SQL/DS
QMF Function:  Command
DSQ11632
Message:

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

Explanation:

Your &V1 command referenced a character string that has a coded character set ID(CCSID) &V2 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 converted from the source CCSID &V2 to the target CCSID &V3..

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 the error with reason code &V4..

User Response:

Verify that your command is correct. If not, make the necessary changes and re-issue the command. Otherwise, contact your QMF administrator.

SQLCODE:  -00332   Database:  SQL/DS
QMF Function:  Command
DSQ11651
Message:

Unsupported data type in position &V2..

Explanation:

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

User Response:

Remove the unsupported data types and run the query again.

SQLCODE:  -00351   Database:  SQL/DS
QMF Function:  Command
DSQ11707
Message:

You cannot use &V1 with this view.

Explanation:

You cannot name a view in a command if executing the command would require QMF to:

  1. INSERT, UPDATE, or DELETE
     - data from more than one table
     - a column defined by a built-in
       function (like SUM(COMM))
     - data selected by DISTINCT or GROUP BY
  2. INSERT or UPDATE a column defined by an expression (like SALARY/12).
  3. INSERT the value NULL into a column defined as NOT NULL in the table the view is based on.
User Response:

Pick a new name for the data, give the command "SAVE DATA AS newname", and so create a new table.

SQLCODE:  -00407   Database:  SQL/DS
QMF Function:  Command
DSQ11830
Message:

The foreign key value is not valid.

Explanation:

The table being replaced by your &V1 command has a foreign key. Your new data contains a value for the foreign key &V2..&V3. that 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: &V2..&V3..

User Response:

You cannot replace the table with the new data. Consider saving your data as a new table.

SQLCODE:  -00530   Database:  SQL/DS
QMF Function:  Command
DSQ11832
Message:

The table cannot be replaced because RESTRICT is specified.

Explanation:

The table you attempted to replace has a primary key defined. To replace the table, the existing rows, and with them the primary key, must be deleted. However, a value of the primary key cannot be deleted because RESTRICT was specified for one or more descendant tables.

User Response:

Either save the data as a new table, or re-examine the constraint rules for all dependent tables.

SQLCODE:  -00532   Database:  SQL/DS
QMF Function:  Command
DSQ11850
Message:

You cannot create something for the owner "SYSTEM".

Explanation:

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

Incorrect:
    CREATE TABLE SYSTEM.NEWTABLE .....

Nor give a command like this:

Incorrect:
    SAVE DATA AS SYSTEM.NEWTABLE
User Response:

Do not attempt this operation.

SQLCODE:  -00550   Database:  SQL/DS
QMF Function:  Command
DSQ11851
Message:

You lack the authorization needed for this &V1 command.

Explanation:

For DRAW, DISPLAY, EXPORT, or PRINT, you need SELECT authorization on the table or view named.

You can use ERASE only with tables or views you own.

To replace an existing table with SAVE or IMPORT, you need SELECT, DELETE and INSERT authorization.

To create a new table with SAVE or IMPORT, you need the authorization to create the table you named.

User Response:

Contact your QMF administrator to obtain the proper authorization.

SQLCODE:  -00551   Database:  SQL/DS
QMF Function:  Command
DSQ11852
Message:

You lack the authorization needed for this &V1 command.

Explanation:

For DRAW, DISPLAY, EXPORT, or PRINT, you need SELECT authorization on the table or view named.

You can use ERASE only with tables or views you own.

To replace an existing table with SAVE or IMPORT, you need SELECT, DELETE and INSERT authorization.

To create a new table with SAVE or IMPORT, you need the authorization to create the table you named.

User Response:

Contact your QMF administrator to obtain the proper authorization.

SQLCODE:  -00552   Database:  SQL/DS
QMF Function:  Command
DSQ11860
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.

If you were attempting to use the CONNECT command, the userid and/or the password specified were not valid.

If you were already using the database and used CONNECT to connect to a different ID, then you want to connect back to your original ID, you may not have the authority to explicitly connect to that user ID. When you started QMF using that user id, you were implicitly connected.

User Response:

Report the problem to your QMF administrator.

SQLCODE:  -00560   Database:  SQL/DS
QMF Function:  Command
DSQ11861
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.

If you were attempting to use the CONNECT command, the userid and/or the password specified were not valid.

If you were already using the database and used CONNECT to connect to a different ID, then you want to connect back to your original ID, you may not have the authority to explicitly connect to that user ID. When you started QMF using that user id, you were implicitly connected.

User Response:

Report the problem to your QMF administrator.

SQLCODE:  -00561   Database:  SQL/DS
QMF Function:  Command
DSQ11864
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.

If you were attempting to use the CONNECT command, the userid and/or the password specified were not valid.

If you were already using the database and used CONNECT to connect to a different ID, then you want to connect back to your original ID, you may not have the authority to explicitly connect to that user ID. When you started QMF using that user id, you were implicitly connected.

User Response:

Report the problem to your QMF administrator.

SQLCODE:  -00564   Database:  SQL/DS
QMF Function:  Command
DSQ11901
Message:

An object of the same name already exists.

Explanation:

The object you are creating or the DBSPACE space you want to acquire 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:  Command
DSQ11904
Message:

Data length, scale, or precision for some column is invalid.

Explanation:

The DATA you are attempting to SAVE or the TABLE you are attempting to IMPORT contains a data length, or a decimal scale or precision that is either zero or greater than the maximum supported by the database.

User Response:

If you are trying to SAVE DATA, and the data you want to save was retrieved by running a query, then the query most likely selected a column with data length zero. Change the query so it does not select this column and re-run the query.

If you are trying to IMPORT a TABLE, or SAVE DATA that was previously imported, then the data most likely contains a decimal column with a precision larger than the maximum supported by the database. Change the data format to a precision within the database limits.

SQLCODE:  -00604   Database:  SQL/DS
QMF Function:  Command
DSQ11907
Message:

You have no room to SAVE DATA.

Explanation:

The DBSPACE named in your PROFILE already has 255 tables.

User Response:

Either enter a different DBSPACE in your PROFILE or ERASE a table to free space for an entry.

SQLCODE:  -00607   Database:  SQL/DS
QMF Function:  Command
DSQ11908
Message:

There is no DBSPACE you can use for &V1..

Explanation:

One of the following is true:

  1. You have no DBSPACE named in your profile, and no private DBSPACE.
  2. You are not authorized to use the DBSPACE named in your profile.
  3. The DBSPACE available for your use is full.
  4. The DBSPACE named in your profile does not exist.
User Response:

Contact your QMF administrator to obtain the proper DBSPACE.

SQLCODE:  -00608   Database:  SQL/DS
QMF Function:  Command
DSQ11910
Message:

You cannot &V1 a table in the SPACE named in your profile.

Explanation:

The SPACE named in your profile is owned by another user or by the system. You do not have the proper authority to &V1 a table in it.

User Response:

Change the name of your table space by using the command SET (SPACE=tablespacename from a QMF object panel, or by changing the value of SPACE in your profile. Follow your local procedures to get authorization to use a tablespace owned by another.

SQLCODE:  -00610   Database:  SQL/DS
QMF Function:  Command
DSQ11920
Message:

There is no private DBSPACE available for your table.

Explanation:

The SPACE value in your profile has been set to blank and you do not have a private DBSPACE. When you issued the &V1 command, it resulted in a CREATE TABLE statement and a search was done to find a private DBSPACE owned by &V2..

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

User Response:

Contact your QMF administrator to obtain a valid DBSPACE to use for the SPACE value in your profile or create your private DBSPACE.

SQLCODE:  -00620   Database:  SQL/DS
QMF Function:  Command
DSQ11968
Message:

&V4 &V5 is inactive.

Explanation:

You cannot &V1 table &V2..&V3 because the &V4 &V5 is inactive.

User Response:

Try again when the key has been activated.

SQLCODE:  -00668   Database:  SQL/DS
QMF Function:  Command
DSQ12001
Message:

There is not enough DBSPACE space to perform &V1..

Explanation:

&V1 cannot be performed because there is not enough space available in the DBSPACE.

User Response:

If you are saving a new table, specify a different DBSPACE in the SPACE option of your profile. The specified table should be ERASEd first since the table was created by the &V1 command, even though there was not enough space to insert the data.

If you are saving an existing table, erasing the table might cause existing authorizations, views, or indexes to be lost. If you wish to delete the existing table and use a larger DBSPACE, ERASE the table and modify the profile SPACE option as described above. Otherwise, see your QMF administrator for further information.

SQLCODE:  -00701   Database:  SQL/DS
QMF Function:  Command
DSQ12002
Message:

Space assigned for indexes in your DBSPACE is full.

Explanation:

Your &V1 command cannot be executed until more space is added to your DBSPACE for indexes.

User Response:

If you are saving a new table, specify a different DBSPACE in the SPACE option of your profile. Otherwise, contact your QMF administrator for procedures to add more index space to your DBSPACE and run the query again.

SQLCODE:  -00702   Database:  SQL/DS
QMF Function:  Command
DSQ12003
Message:

Space assigned for header information in your DBSPACE is full.

Explanation:

The space assigned in your DBSPACE by the parameter NHEADER for header information is full. &V1 cannot be processed unless additional DBSPACE is obtained.

User Response:

If you are saving a new table, specify a different DBSPACE in the SPACE option of your profile. Otherwise, contact your QMF administrator for procedures to provide more header space and run the query again.

SQLCODE:  -00703   Database:  SQL/DS
QMF Function:  Command
DSQ12010
Message:

Requested private DBSPACE is in use.

Explanation:

The private DBSPACE needed by your command can be used by only one user at a time.

User Response:

Give the &V1 command later, when the private DBSPACE is available.

SQLCODE:  -00710   Database:  SQL/DS
QMF Function:  Command
DSQ12012
Message:

There is not enough room in INTERNAL DBSPACEs to perform &V1..

Explanation:

QMF was not able to acquire sufficiently many, or sufficiently large, INTERNAL DBSPACEs. If your command uses a view, you may be able to simplify it by revising the view.

User Response:

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

SQLCODE:  -00712   Database:  SQL/DS
QMF Function:  Command
DSQ12101
Message:

An Arithmetic operation in the view definition has resulted in an error.

Explanation:

Your &V1 command refers to a view. An arithmetic operation in the subselect clause of the view definition has resulted in an error. The exception type is &V2, the operation type is &V3, and the data type is &V4.

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:  Command
DSQ12102
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:  Command
DSQ12103
Message:

Duplicate value in a unique index column.

Explanation:

One of the columns being modified by your command contains a value equal to the one being inserted. That column is a 'Unique Index' column. Unique Index columns cannot have duplicate values. Your &V1 command was not executed.

User Response:

You cannot change or replace the existing table or view with your data. Consider saving the data as a new table.

SQLCODE:  -00803   Database:  SQL/DS
QMF Function:  Command
DSQ12105
Message:

The package &V2 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 Information Center.

SQLCODE:  -00805   Database:  SQL/DS
QMF Function:  Command
DSQ12108
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 catalogs and retrieve data using SQL query statements. Your "&V1" command was not executed.

User Response:

Follow your QMF administrator procedures if authority is required.

SQLCODE:  -00808   Database:  SQL/DS
QMF Function:  Command
DSQ12115
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:  Command
DSQ12123
Message:

You cannot &V1 a system catalog.

Explanation:

The operation is not permitted. No user can be authorized to do it.

User Response:

Do not attempt that operation.

SQLCODE:  -00823   Database:  SQL/DS
QMF Function:  Command
DSQ12136
Message:

You cannot use a userid when connecting in the current location.

Explanation:

You cannot use a userid and/or password in the CONNECT command because your current location or the target location does not support SQL/DS private protocol. If the location is DB2 or VSE SQL/DS, userid and password cannot be specified in the CONNECT command.

If you are running in VM, the location is DB2 or VSE SQL/DS, and the protocol option in SQLINIT is AUTO, you can issue one of the following CONNECT commands:

If the protocol option is DRDA and the location is either SQL/DS or DB2, you can issue the following command:

User Response:

If you attempt to connect to another userid, verify that you entered the CONNECT command at the correct location. Otherwise, contact your QMF administrator.

If you attempt to connect to another location with a userid, verify that the location is correct. If so, omit the userid/password in the command; otherwise, contact your QMF administrator.

SQLCODE:  -00836   Database:  SQL/DS
QMF Function:  Command
DSQ12141
Message:

Command failed due to errors in communications directories.

Explanation:

Your local installation must define either a system or a user communications directory, containing a nickname entry for the location name specified in your &V1. command. The SQL/DS database encountered an error when it tried to resolve this nickname entry. However, you are still connected to the same location. The SQLCODE is &V9 and the reason code is &V2.. Refer to the SQL/DS Messages and Codes manual for a detailed explanation of this error.

One reason for this error is that you may have specified a location name that is not defined in the communications directories.

User Response:

If the specified location name is incorrect, correct it and try again.

In the communications directories, verify that the nickname entry for the specified location name has the correct TPN, LUNAME and DBNAME.

If you do not have a user communications directory or your user communications directory does not have a nickname entry for the specified location, contact your QMF administrator.

SQLCODE:  -00841   Database:  SQL/DS
QMF Function:  Command
DSQ12200
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 try to reconnect 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:  SQL/DS
QMF Function:  Command
DSQ12211
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:  Command
DSQ12212
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:  Command
DSQ12214
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:  Command
DSQ12215
Message:

&V1 was not processed because of the system work load.

Explanation:

&V1 cannot be performed now because of the work load on the QMF system.

User Response:

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

SQLCODE:  -00915   Database:  SQL/DS
QMF Function:  Command
DSQ12216
Message:

&V1 was not performed because of operator action.

Explanation:

The system operator interrupted the processing of &V1.. Your command was given correctly, but not processed.

User Response:

Give the command again.

SQLCODE:  -00916   Database:  SQL/DS
QMF Function:  Command
DSQ12230
Message:

The database manager program ran out of virtual storage.

Explanation:

The database manager program does not have enough virtual storage to run your &V1 command.

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:  Command
DSQ12233
Message:

The communications path to &V2. is not available.

Explanation:

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

User Response:

If you issued the "CONNECT TO &V2." command, verify that the location name &V2 is correct and has been defined in the communications directories. If not, correct it and try again. Otherwise, contact your QMF administrator for the correct communications protocol.

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 command 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 and you have issued a command other than CONNECT, QMF may have reconnected you to the current location. If so, continue to use QMF. If not, the Lost Connection Prompt panel prompts you to connect to another location.

SQLCODE:  -00933   Database:  SQL/DS
QMF Function:  Command
DSQ12239
Message:

The database manager program ran out of virtual storage.

Explanation:

The database manager program does not have enough virtual storage to run your &V1 command.

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:  Command
DSQ12240
Message:

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

Explanation:

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

User Response:

If you issued the "CONNECT TO &V2." command, verify that the location name &V2 is correct and has been defined in the communications directories. If not, correct it and try again. Otherwise, contact your QMF administrator.

If the "CONNECT TO <location>" command is supported and you have issued a command other than CONNECT, QMF may have reconnected you to the current location. If so, continue to use QMF. If not, the Lost Connection Prompt panel prompts you to connect to another location.

SQLCODE:  -00940   Database:  SQL/DS
QMF Function:  Command
DSQ12242
Message:

The database manager program ran out of virtual storage.

Explanation:

The database manager program does not have enough virtual storage to run your &V1 command.

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:  Command
DSQ12243
Message:

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

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:  Command
DSQ12248
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 USER ID, password, and database name are all 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:  Command
DSQ12301
Message:

Your query is too long or too complex.

Explanation:

The SQL statement is too long or too complex to be interpreted. It can be simplified by reducing the number of ...

  1. Conversions from one data type to another.
  2. Decimal operations.
  3. Constants to be inserted.
  4. Built-in functions.

You may also have defined a view with more than 140 columns or a row wider than 4070 characters.

User Response:

Shorten your query or rewrite it as more than one query. If this problem continues, contact your QMF administrator.

SQLCODE:  -00101   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12302
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:  SQL Query
DSQ12303
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:  SQL Query
DSQ12304
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:  SQL Query
DSQ12305
Message:

&V2 cannot follow &V1..

Explanation:

Some of the possible causes are ...

  1. &V2 may be out of sequence. (For example, WHERE cannot follow ORDER BY.)
  2. &V1 or &V2 may be a reserved word used unintentionally. For example, FROM cannot be a column name. See the QMF Reference for a list of SQL reserved words.
  3. &V2 is meant to be a character constant, and should be in quotes.
  4. A comma may be missing in a list, as in SELECT COLUMNA COLUMNB.
User Response:

Change the query and run it again.

SQLCODE:  -00105   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12306
Message:

Something is missing from the end of the query.

Explanation:

The missing item could be anything from a single quote to several lines. Queries that end like these examples could cause this message:

                         incomplete)
                         missing)
                        everything after
                        is missing)
User Response:

Complete your query and run it again.

SQLCODE:  -00106   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12307
Message:

&V1 is too long. Maximum allowable size 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 8 bytes long.

User Response:

Shorten &V1 and run the query again.

SQLCODE:  -00107   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12308
Message:

&V1 is too long. Maximum allowable size 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 8 bytes long.

User Response:

Shorten &V1 and run the query again.

SQLCODE:  -00108   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12310
Message:

&V1 is not a function.

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 one of these, be sure that the punctuation of the statement is correct. For example:

SELECT MIN(PRICE), MAX(PRICE)
is correct.

SELECT DATE('1996-10-01') - 10102433.
is correct.
User Response:

Change the name of the function or the punctuation of the statement and run the query again.

SQLCODE:  -00110   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12311
Message:

A column function does not use any column name.

Explanation:

The column functions AVG, MAX, MIN, and SUM must act on expressions that contain a column name from one of the tables accessed.

Correct:
SELECT SUM (SALARY * 1.15) FROM Q.STAFF

Incorrect:
SELECT SUM (18000 * 1.15) FROM Q.STAFF
User Response:

Make sure that all of your column functions have columns to act on and run the query again.

SQLCODE:  -00111   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12312
Message:

A column function uses an invalid expression.

Explanation:

The column functions are AVG, COUNT, MAX, MIN, and SUM. Column function expressions cannot contain column functions.

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

Change your query so that the column function has a correct expression and run it again.

SQLCODE:  -00112   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12314
Message:

The 3-part name you specified is invalid.

Explanation:

The location qualifier of &V1. does not match the name of the connected location &V2. SQL/DS only supports 3-part names whose location qualifiers match the name of the current location.

User Response:

Issue the QMF CONNECT command to connect to the specified location, then continue with your query activities.

SQLCODE:  -00114   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12315
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:  SQL Query
DSQ12316
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:  SQL Query
DSQ12317
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:  SQL/DS
QMF Function:  SQL Query
DSQ12318
Message:

You can't 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:  SQL Query
DSQ12319
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:  SQL Query
DSQ12320
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:  SQL Query
DSQ12321
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:  SQL Query
DSQ12322
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:  SQL/DS
QMF Function:  SQL Query
DSQ12324
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:  SQL Query
DSQ12325
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 8 columns are listed.)

User Response:

Correct the query and run it again.

SQLCODE:  -00125   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12327
Message:

You cannot use DISTINCT more than once in a query.

Explanation:

Examples of DISTINCT usage:

Correct:
SELECT AVG(DISTINCT SALARY), DEPT
FROM STAFF
GROUP BY DEPT
HAVING AVG(SALARY) > 16000

Incorrect:
SELECT AVG(DISTINCT SALARY), DEPT
FROM STAFF
GROUP BY DEPT
HAVING AVG(DISTINCT SALARY) > 16000
User Response:

Remove all but one DISTINCT from your query and run it again.

SQLCODE:  -00127   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12328
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:  SQL Query
DSQ12329
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:  SQL Query
DSQ12330
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:  SQL Query
DSQ12331
Message:

An escape character used with the LIKE keyword is not valid.

Explanation:

To be an escape character, you must enclose a single character in quotes in the ESCAPE clause. The escape character can be in the string following LIKE only if it is followed by itself, %, or _. You cannot specify the ESCAPE clause if the column name at the left of the LIKE or NOT LIKE has the MIXED attribute. For example, in the following WHERE clause

WHERE COL1 LIKE 'AA+%BB%' ESCAPE '+'

'+' is the escape character, and COL1 is of type CHARACTER;, the WHERE clause will produce values of COL1 that begin with 'AA%BB'. In this example, in the character string following LIKE, any use of '+' other than '++', '+%', or '+_' is an error. (Note that if COL1 has the MIXED attribute, the escape character cannot be specified.)

User Response:

Fix the character string, or choose a different escape character and change the character string accordingly. Verify that the column name at the left of the LIKE or NOT LIKE does not have the MIXED attribute.

SQLCODE:  -00131   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12332
Message:

LIKE or NOT LIKE is used incorrectly.

Explanation:

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

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

If the LIKE condition appears in the WHERE clause of an UPDATE or DELETE statement, the column used must not be derived from an expression, a constant, or a scalar function in the view definition.

User Response:

Change the condition using LIKE or NOT LIKE and run your query again.

SQLCODE:  -00132   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12333
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:  SQL Query
DSQ12334
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:  -00134   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12335
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:  SQL Query
DSQ12337
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:  SQL Query
DSQ12340
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:  -00140   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12341
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:  -00141   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12349
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:  SQL Query
DSQ12350
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:  SQL Query
DSQ12351
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:  SQL Query
DSQ12352
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:  SQL Query
DSQ12353
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:  SQL Query
DSQ12354
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:  SQL Query
DSQ12355
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:  SQL Query
DSQ12356
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:  SQL Query
DSQ12357
Message:

A view cannot be used in a FOREIGN KEY clause.

Explanation:

&V1..&V2 is a view that was identified in a FOREIGN KEY clause of a CREATE or ALTER TABLE statement. A FOREIGN KEY clause must identify a table, not a view.

User Response:

Be sure that the correct name was used. Do not refer to a view in a FOREIGN KEY clause.

SQLCODE:  -00157   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12358
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:  SQL Query
DSQ12363
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:  SQL Query
DSQ12364
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:  SQL Query
DSQ12365
Message:

A name within double quotes cannot start or end with a blank.

Explanation:

You tried to run a query containing a name within double quotes that begins or ends with a blank. This is not allowed. For example, the query shown below is incorrect because " 1978 PARTS" begins with a blank.

Incorrect:
CREATE VIEW  " 1978 PARTS"
AS SELECT * FROM INVNTRY
WHERE DATE = '1978'
User Response:

Change your query and run it again.

SQLCODE:  -00165   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12366
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:  SQL Query
DSQ12367
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:  SQL Query
DSQ12369
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:  SQL Query
DSQ12370
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:  SQL Query
DSQ12371
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:  SQL Query
DSQ12372
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:  SQL Query
DSQ12380
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:  SQL Query
DSQ12381
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:  SQL Query
DSQ12382
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:  SQL Query
DSQ12383
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:  SQL Query
DSQ12384
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:  SQL Query
DSQ12385
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:  SQL Query
DSQ12387
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:  SQL Query
DSQ12389
Message:

Your statement referenced an invalid CCSID &V1.

Explanation:

Your CREATE TABLE or ALTER TABLE statement referenced an invalid coded character set ID (CCSID) &V1. For one of the following reasons, this CCSID is not recognized by the SQL/DS database:

User Response:

Correct the CCSID tag or the subtype for the character column in your CREATE TABLE or ALTER TABLE statement.

SQLCODE:  -00189   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12391
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:  SQL Query
DSQ12392
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:  SQL Query
DSQ12401
Message:

Qualifier &V1 is not named after FROM.

Explanation:

A qualifier, &V1, that is used in the query in the SELECT, WHERE, GROUP BY or ORDER BY clause, is not found in the FROM clause of the query. If FROM is used more than once, as in a subquery, the qualifier may be used in one place and be needed in another.

A table name used as a qualifier must be specified exactly as it appears in the FROM clause.

A correlation variable used as a qualifier must be defined in the FROM clause.

User Response:

Name &V1 after FROM.

SQLCODE:  -00201   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12402
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:  SQL Query
DSQ12403
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:  SQL Query
DSQ12404
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:  SQL Query
DSQ12405
Message:

Column name &V1 is not in table &V2..

Explanation:

You used column name &V1.. It was not found in table &V2.. You may have misspelled the name, or the table name may need to be qualified.

User Response:

Verify that the column name and owner are correct and spelled correctly.

SQLCODE:  -00205   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12406
Message:

The &V1 &V2 on &V3..&V4 could not be found.

Explanation:

The query refers to &V1 &V2.. This &V1 does not exist for table &V3..&V4..

User Response:

Check for a spelling error.

SQLCODE:  -00206   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12407
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:  SQL Query
DSQ12408
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:  SQL Query
DSQ12409
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:  SQL Query
DSQ12411
Message:

Table name &V1 after FROM needs a table label.

Explanation:

The SQL command contains a table name as a qualifier which occurs two or more times after FROM. Since the table name is not unique, each table name after FROM needs a unique table label to qualify the column names.

User Response:

Add unique table labels to the table names after FROM and run your query again.

SQLCODE:  -00211   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12512
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:  SQL Query
DSQ12513
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:  SQL Query
DSQ12530
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:  SQL Query
DSQ12532
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:  SQL Query
DSQ12551
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:  SQL Query
DSQ12601
Message:

Data of different types must not be used in an expression or condition.

Explanation:

You used data of different types in an expression or condition. For example, the following is not valid because character data ('COMM') is used in a numeric expression:

Invalid     WHERE SALARY = 12*'COMM'
User Response:

Change any expression or condition so that data of the same type is used.

SQLCODE:  -00401   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12602
Message:

Numeric data is required.

Explanation:

Arithmetic expressions and the AVG and SUM built-in functions require numeric data. Non-numeric data cannot be used. Your query was not processed.

User Response:

Change your query to include all numeric data with the arithmetic expression or built-in function and run the query again.

SQLCODE:  -00402   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12604
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:  SQL Query
DSQ12605
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:  SQL Query
DSQ12606
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:  SQL Query
DSQ12607
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:  SQL Query
DSQ12608
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:  SQL Query
DSQ12609
Message:

COUNT was used incorrectly.

Explanation:

The built-in function, COUNT, can be used only with a "*" or with DISTINCT and a column name. Examples of usage:

  1. COUNT(*) gives the number of rows selected.
  2. COUNT(DISTINCT column name) gives the number of different values in the column.
User Response:

Change your use of COUNT and run the query again.

SQLCODE:  -00409   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12610
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:  SQL Query
DSQ12611
Message:

USER was used incorrectly.

Explanation:

USER stands for "user identification"; its value is an 8-character word. One of these errors has occurred:

  1. USER appears in an arithmetic expression.
        Incorrect:   USER - 50
  2. USER is used to update or insert into a column with a numeric data type, or one narrower than 8 characters.
  3. USER appears in a SELECT list.
User Response:

Change your SQL statement and run your query again.

SQLCODE:  -00411   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12612
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:  SQL Query
DSQ12613
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:  SQL Query
DSQ12614
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:  SQL Query
DSQ12615
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:  SQL Query
DSQ12616
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:  SQL Query
DSQ12617
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:  SQL Query
DSQ12618
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:  SQL Query
DSQ12619
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:  SQL Query
DSQ12621
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:  SQL Query
DSQ12622
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:  SQL Query
DSQ12623
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:  SQL Query
DSQ12716
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:  SQL Query
DSQ12730
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:  SQL Query
DSQ12732
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:  SQL Query
DSQ12734
Message:

Cannot update a primary key or unique constraint in multiple rows.

Explanation:

An UPDATE operation attempted to update a primary key or unique constraint in multiple rows of the table. An UPDATE statement that affects the primary key or unique constraint cannot be used to update more than one row of the table.

User Response:

Make sure the search condition of the UPDATE statement selects no more than one row of the table to be updated.

SQLCODE:  -00534   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12736
Message:

The DELETE statement is invalid because table &V1..&V2 can be affected.

Explanation:

A DELETE operation was attempted with table &V1..&V2, which was referred to in a subquery. However, this table is a dependent of the object table of the operation and is not protected from change by a rule of RESTRICT, so the deletion cannot be done.

User Response:

Do not refer to a table in a subquery of a DELETE statement if the table can be affected by that statement.

SQLCODE:  -00536   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12737
Message:

You used a column name more than once.

Explanation:

A primary key, foreign key or unique constraint cannot contain duplicate column names. In a primary key, foreign key, or unique constraint clause, you used the same column name more than once. The column in error is &V1 &V2.

User Response:

Specify unique column names.

SQLCODE:  -00537   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12738
Message:

Foreign key &V1 does not conform to the description of the primary key of table &V2..&V3..

Explanation:

You can receive this error for one of the following reasons:

User Response:

Correct the FOREIGN KEY clause so that its description matches that of the indicated table's primary key.

SQLCODE:  -00538   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12739
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.

SQLCODE:  -00539   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12741
Message:

Foreign key &V1 is invalid because it is a duplicate referential constraint.

Explanation:

The indicated FOREIGN KEY clause defines the same foreign key and parent table as another referential constraint.

User Response:

Remove the duplicate referential constraint from the statement.

SQLCODE:  -00541   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12742
Message:

&V1 cannot be a column of a primary key or unique constraint because it can contain null values.

Explanation:

Column &V1 can contain null values; therefore, it cannot be included in a primary key or unique constraint clause.

User Response:

When defining the primary key or unique constraint use only columns that cannot contain null values. Correct the primary key or unique constraint clause and run the statement again.

SQLCODE:  -00542   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12750
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:  SQL Query
DSQ12751
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:  -00551   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12752
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:  SQL Query
DSQ12754
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:  SQL Query
DSQ12755
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:  SQL Query
DSQ12756
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:  SQL Query
DSQ12757
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:  SQL Query
DSQ12758
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:  SQL Query
DSQ12761
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:  SQL Query
DSQ12764
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:  SQL Query
DSQ12801
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:  SQL Query
DSQ12802
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:  SQL Query
DSQ12803
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:  SQL Query
DSQ12804
Message:

Column definition problem.

Explanation:

Your query specifies a column that has a length, precision, or scale outside the data type limit. Some possible causes of your query error are:

User Response:

Change the column definition to conform to the data type limit and run your SQL 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:  SQL Query
DSQ12805
Message:

Your statement exceeds the maximum-allowable number of indexes for a table.

Explanation:

The maximum-allowable number of indexes for a SQL/DS table is 255 and the target table currently has that number of indexes.

This condition can occur if the target table already has 255 indexes and you issued either a CREATE INDEX or ALTER TABLE statement with the ADD PRIMARY KEY or ADD UNIQUE constraint clause.

User Response:

Drop all unnecessary indexes and reissue your statement.

To do this, you can use a DROP INDEX statement or an ALTER TABLE statement with the DROP PRIMARY KEY or DROP UNIQUE constraint clause. For a list of all the SQL/DS indexes, display the SYSINDEXES system table.

SQLCODE:  -00605   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12806
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:  SQL Query
DSQ12807
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:  SQL Query
DSQ12808
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:  SQL Query
DSQ12809
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:  SQL Query
DSQ12810
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:  SQL Query
DSQ12811
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:  SQL Query
DSQ12812
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:  SQL Query
DSQ12814
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:  SQL Query
DSQ12817
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:  SQL Query
DSQ12819
Message:

An Explain table has an improper definition.

Explanation:

An error occurred during the execution of the EXPLAIN statement because a required explanation table is improperly defined.

EXPLAIN TABLE (AND COLUMN WHEN KNOWN):
&V1 &V2.

The definition could be incorrect due to:

User Response:

Correct the definition of the required explanation table before using EXPLAIN. See the SQL Reference manual for more information on the EXPLAIN statement and defining the explanation tables.

SQLCODE:  -00619   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12820
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:  SQL Query
DSQ12829
Message:

You cannot specify SET NULL for foreign key &V1..

Explanation:

The SET NULL delete rule cannot be specified for the FOREIGN KEY clause &V1 because no column of the key allows null values.

User Response:

Either change a column of the key to allow null values or change the delete rule.

SQLCODE:  -00629   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12830
Message:

Keyword &V1 is given twice.

Explanation:

This query can use keyword &V1 only once. It was found two or more times.

User Response:

Correct the query and run it again.

SQLCODE:  -00630   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12832
Message:

The table cannot be defined as a dependent of &V3..&V4 because of rule restrictions.

Explanation:

You cannot define the table as a dependent of table &V3..&V4.. The relationship would conflict with existing relationships. For example, you cannot define a dependent table to have more than one SET NULL relationship with a given parent table. The reason the relationship cannot be defined is identified by reason code '&V5'.

User Response:

Either correct the FOREIGN KEY clause, or remove the clause from the statement. See SQL/Data System Messages and Codes for an explanation of reason code '&V5'.

SQLCODE:  -00632   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12840
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:  SQL Query
DSQ12844
Message:

&V1 is a duplicate name.

Explanation:

You cannot use &V1 as a new foreign key or unique constraint name because the name has already been used with this table. The duplication can occur if the specified name already exists for the same foreign key or unique constraint on the current table.

User Response:

Either use a different name or do not specify a name. If you do not specify a name, a default name will be assigned.

SQLCODE:  -00644   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12848
Message:

The foreign key cannot be defined due to the delete-connected rule using multiple paths.

Explanation:

The relationship will cause table &V1..&V2 to be delete-connected to table &V3..&V4 through multiple paths. The foreign key cannot be defined because of the reason code &V5..

Refer to the SQL/DS Messages and Codes manual for a detailed explanation of this error.

User Response:

Verify that the connections for the related tables are defined correctly. If not, correct it and retry the SQL statement; otherwise, contact your QMF administrator for assistance.

SQLCODE:  -00648   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12856
Message:

Table &V1..&V2 already has a primary key.

Explanation:

A primary key cannot be defined for table &V1..&V2 because it already has a primary key. A table cannot have more than one primary key.

User Response:

If you want a different primary key for this table, then the existing primary key must be dropped first.

SQLCODE:  -00656   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12857
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:  SQL Query
DSQ12867
Message:

The &V1 &V2 defined for table &V3..&V4 cannot be activated.

Explanation:

The &V1 &V2 cannot be activated because the key would not be valid. For example, if an inactive primary key contains duplicate values, then it cannot be activated. The reason the key cannot be activated is identified by reason code '&V5'.

User Response:

See SQL/Data System Messages and Codes for an explanation of reason code '&V5'.

SQLCODE:  -00667   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12868
Message:

Table &V1..&V2 cannot be accessed. &V3 &V4 is inactive.

Explanation:

No operation can be performed on table &V1..&V2 because the &V3 &V4 is inactive.

User Response:

Try again when the key has been activated.

SQLCODE:  -00668   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12869
Message:

The primary key index cannot be dropped explicitly.

Explanation:

You cannot drop a primary key index using DROP INDEX.

User Response:

If you want to reorganize the primary key index, you can use the ACTIVATE PRIMARY KEY clause of the ALTER TABLE statement. It will drop and re-create the primary key index. If you want to drop the primary key, you can use the DROP PRIMARY KEY clause of the ALTER TABLE statement.

SQLCODE:  -00669   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12870
Message:

The foreign key &V1 for table &V2..&V3 cannot be created.

Explanation:

The foreign key &V1 cannot be created because the key would not be valid. For example, if the parent table referred to by the foreign key has an inactive primary key, then the foreign key cannot be created. The reason the key cannot be activated is identified by reason code '&V4'.

User Response:

See SQL/Data System Messages and Codes for an explanation of reason code '&V4'.

SQLCODE:  -00670   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12874
Message:

SQL/DS cannot load the DBCS data conversion routine.

Explanation:

The database fails to load your DBCS data conversion routine &V1 due to reason code &V2 and sub-code &V3.. The possible causes for this error condition are:

Furthermore, if the sub-code is X'01', the error was found at the application requester; if the sub-code is X'02', the error was found at the application server.

User Response:

If the conversion routine &V1 is correct, contact your QMF administrator for assistance.

SQLCODE:  -00674   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12883
Message:

Data type &V1 for column &V2 is not permitted.

Explanation:

Data type &V1 is valid only for character columns (CHAR, VARCHAR, and LONGVARCHAR).

User Response:

Remove the &V1 option from column &V2..

SQLCODE:  -00683   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12887
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:  SQL Query
DSQ12898
Message:

Your statement could cause the invalid entities table to overflow.

Explanation:

Your statement could cause an index to be marked invalid; therefore, it must reserve an entry in the invalid entities table. However, the number of invalid indexes and potentially invalid indexes are greater than the database internal limit. Your statement cannot be processed.

User Response:

If there are many users running CREATE INDEX and REORGANIZE INDEX concurrently, try your statement again later. If the error persists, contact your QMF administrator to find the invalid indexes and clean up the entities table.

SQLCODE:  -00698   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12899
Message:

All storage pools for available DBSPACES are full.

Explanation:

DBSPACES are available, but the storage pools in which they reside do not have enough space for you to acquire DBSPACES. If you used STORPOOL clause, the specified storage pool is full and you may want to use another storage pool. If you did not use STORPOOL clause, it implies that all the available storage pools are full. There is not enough storage pool space for you to acquire DBSPACES.

User Response:

Contact your QMF administrator to find the full storage pools and to increase their sizes by adding DBEXTENTS to the storage pools.

SQLCODE:  -00699   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12900
Message:

No available space in storage pool &V1.

Explanation:

Your SQL statement requires a new page or a shadow page but the storage pool &V1 does not have enough space.

User Response:

Contact your QMF administrator to increase the size of storage pool &V1.. If your SQL statement is a REORGANIZE INDEX, ask the Information Center to determine if the index is marked invalid. If the index is invalid, you will have to either drop and recreate the index, or reorganize it again after the storage problem has been corrected.

SQLCODE:  -00700   Database:  SQL/DS
QMF Function:  SQL Query
DSQ12901
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:  SQL Query
DSQ12902
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:  SQL Query
DSQ12903
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:  SQL Query
DSQ12904
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:  SQL Query
DSQ12905
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:  SQL Query
DSQ12908
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:  SQL Query
DSQ12909
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:  SQL Query
DSQ12910
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:  SQL Query
DSQ12912
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:  SQL Query
DSQ13001
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:  SQL Query
DSQ13002
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:  SQL Query
DSQ13003
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:  SQL Query
DSQ13005
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:  SQL Query
DSQ13008
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:  SQL Query
DSQ13009
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:  SQL Query
DSQ13010
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:  SQL Query
DSQ13013
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:  SQL Query
DSQ13014
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:  SQL Query
DSQ13015
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:  SQL Query
DSQ13023
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:  SQL Query
DSQ13111
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:  SQL Query
DSQ13112
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:  SQL Query
DSQ13114
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:  SQL Query
DSQ13115
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:  SQL Query
DSQ13116
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:  SQL Query
DSQ13130
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:  SQL Query
DSQ13133
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:  SQL Query
DSQ13139
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:  SQL Query
DSQ13140
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:  SQL Query
DSQ13142
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:  SQL Query
DSQ13143
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:  SQL Query
DSQ13145
Message:

Your view cannot be created because all the DBSPACES for access modules are full.

Explanation:

Because all DBSPACEs for access modules are full, another DBSPACE for access modules must be acquired before you can create the view successfully. A DBSPACE might be full if all the available access modules in the DBSPACE are used, or no more free space is available in the DBSPACE.

User Response:

Contact your QMF administrator to obtain an additional DBSPACE for access modules, and run your query again.

SQLCODE:  -00945   Database:  SQL/DS
QMF Function:  SQL Query
DSQ13146
Message:

Your view cannot be created because there is not enough room in DBSPACE number &V1..

Explanation:

Your view could not be created because the database found that DBSPACE number &V1 is full. A DBSPACE might be full if all the available access modules in the DBSPACE are used or no more space is available in the DBSPACE.

User Response:

Contact your QMF administrator to obtain an additional DBSPACE for access modules, and run your query again.

SQLCODE:  -00946   Database:  SQL/DS
QMF Function:  SQL Query
DSQ13148
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:  SQL Query
DSQ14000
- DSQ14014
Message:

Buffer too small to contain SQL statement.

User Response:

Follow the directions in the referenced message.

DSQ14020
- DSQ14021
Message:

Internal error detected in module &1.

User Response:

This is a system error. Please see your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ14076
Message:

Invalid function code of '&1' encountered as input to DI function.

User Response:

Follow the directions in the referenced message.

DSQ14077
Message:

Invalid data type of '&1' returned from DBM.

User Response:

Follow the directions in the referenced message.

DSQ14078
Message:

See DSQ10078

User Response:

Follow the directions in the referenced message.

DSQ14079
- DSQ14080
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ14081
Message:

Unexpected failure on 'DESCRIBE'.

User Response:

Follow the directions in the referenced message.

DSQ14082
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14084
Message:

DESCRIBEd statement is not a 'SELECT'.

User Response:

Follow the directions in the referenced message.

DSQ14085
Message:

Row from database is longer than 32767 characters.

Explanation:

The rows selected by your query are too long to process.

User Response:

Eliminate something from the list of columns selected so that a data row is shorter than 32,767 characters. The minimum width for each column is two characters plus the data length. Columns wider than 254 characters are cut off by QMF as needed to fit the limit of 32,767.

DSQ14086
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14087
Message:

See DSQ10317

User Response:

Follow the directions in the referenced message.

DSQ14088
Message:

Row from database is longer than 32,767 characters.

Explanation:

The rows selected by your &V1 command are too long to process.

User Response:

Write and run a query that will use fewer than all the columns of the table -- less than 32,767 characters. The minimum width for each column is two characters plus the data length. Columns wider than 254 characters are cut off by QMF as needed to fit the limit of 32,767.

DSQ14089
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14091
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ14092
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14093
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ14094
Message:

Data type &V1 is not supported.

Explanation:

One of the columns in the table that you referenced has a data type of &V1 which is not supported.

User Response:

Data type &V1 is supported in QMF DRAW command and Table Editor only. You are not able to reference data type &V1 in any other situations.

DSQ14095
Message:

See DSQ10093

User Response:

Follow the directions in the referenced message.

DSQ14176
Message:

Invalid function code of '&1' encountered as input to DI function.

User Response:

Follow the directions in the referenced message.

DSQ14177
Message:

Invalid data type of '&1' returned from DBM.

User Response:

Follow the directions in the referenced message.

DSQ14178
Message:

See DSQ10078

User Response:

Follow the directions in the referenced message.

DSQ14179
- DSQ14180
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ14181
Message:

Unexpected failure on 'DESCRIBE'.

User Response:

Follow the directions in the referenced message.

DSQ14182
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14184
Message:

DESCRIBEd statement is not a 'SELECT'.

User Response:

Follow the directions in the referenced message.

DSQ14186
- DSQ14189
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14191
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ14192
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14193
Message:

See DSQ10093

User Response:

Follow the directions in the referenced message.

DSQ14200
- DSQ14205
Message:

Required storage could not be allocated.

User Response:

This is a system error. Please see your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ14206
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14207
Message:

Creation of template tree failed.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ14210
Message:

A selection expression could not be added.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ14212
Message:

Error calling RM - Function(&1) CRC(&2) CSI(&3).

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ14213
- DSQ14220
Message:

Internal error preparing to call Repository Manager.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ14221
Message:

Error calling RM - Function(&1) CRC(&2) CSI(&3).

User Response:

Follow the directions in the referenced message.

DSQ14223
Message:

Creation of template tree failed.

User Response:

Follow the directions in the referenced message.

DSQ14224
- DSQ14225
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14226
Message:

Internal error preparing to call Repository Manager.

User Response:

Follow the directions in the referenced message.

DSQ14227
Message:

Invalid data was received from Repository Manager.

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ14228
- DSQ14229
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14230
- DSQ14252
Message:

Error calling RM - Function(&1) CRC(&2) CSI(&3) Return code(&4).

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ14253
- DSQ14254
Message:

Invalid data was received from Repository Manager.

User Response:

Follow the directions in the referenced message.

DSQ14255
- DSQ14257
Message:

Internal error preparing to call Repository Manager.

User Response:

Follow the directions in the referenced message.

DSQ14258
- DSQ14259
Message:

Error calling RM - Function(&1) CRC(&2) CSI(&3) Return code(&4).

User Response:

Follow the directions in the referenced message.

DSQ14260
Message:

Internal error preparing to call Repository Manager.

User Response:

Follow the directions in the referenced message.

DSQ14261
Message:

Invalid data was received from Repository Manager.

User Response:

Follow the directions in the referenced message.

DSQ14400
Message:

Required storage could not be allocated.

User Response:

Follow the directions in the referenced message.

DSQ14401
- DSQ14402
Message:

Error calling RM - Function(&1) CRC(&2) CSI(&3).

User Response:

Follow the directions in the referenced message.

DSQ14403
- DSQ14411
Message:

Error calling RM - Function(&1) CRC(&2) CSI(&3) Return code(&4).

User Response:

Follow the directions in the referenced message.

DSQ14412
Message:

Error occurred while resetting the query, error(&1).

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ14413
Message:

Error occurred while resetting the data, error(&1).

User Response:

This is a system error. See your system administrator for assistance, or consult the Installing and Managing QMF manual for your operating system.

DSQ14414
- DSQ14415
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14416
- DSQ14421
Message:

Internal error preparing to call Repository Manager.

User Response:

Follow the directions in the referenced message.

DSQ14422
- DSQ14425
Message:

Invalid data was received from Repository Manager.

User Response:

Follow the directions in the referenced message.

DSQ14426
Message:

Internal error preparing to call Repository Manager.

User Response:

Follow the directions in the referenced message.

DSQ14427
Message:

Free storage failed.

User Response:

Follow the directions in the referenced message.

DSQ14428
Message:

Internal error preparing to call Repository Manager.

User Response:

Follow the directions in the referenced message.

DSQ14438
- DSQ14439
Message:

See DSQ10012

User Response:

Follow the directions in the referenced message.

DSQ14440
- DSQ14441
Message:

Internal error detected in module &1.

User Response:

Follow the directions in the referenced message.

DSQ14442
Message:

Invalid function code of '&1' encountered as input to DI function.

User Response:

Follow the directions in the referenced message.

DSQ14443
- DSQ14444
Message:

Internal error detected in module &1.

User Response:

Follow the directions in the referenced message.

DSQ15101
Message:

Your query is too long or too complex.

Explanation:

The QBE query results in a SQL statement that is too long or too complex to be interpreted. It can be simplified by reducing the number of ...

  1. Conversions from one data type to another.
  2. Decimal operations.
  3. Constants to be inserted.
  4. Built-in functions.
User Response:

Shorten your query or rewrite it as more than one query. Consider writing a query that produces a table of intermediate results. Save that table, and write a second query that uses it to produce your final result.

SQLCODE:  -00101   Database:  DB2
QMF Function:  QBE
DSQ15103
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:  DB2
QMF Function:  QBE
DSQ15104
Message:

A NULL, expression, or comparison in your query is invalid.

Explanation:

If your query uses NULL, make sure that it is used to the right of an =. Also make sure that it is not part of an expression, or a condition that contains an expression.

If your query uses I., and the I. row contains no links to other rows, make sure that only constants are used in the I. row.

If your query uses U., make sure that columns containing a U. do not contain a comparison.

User Response:

Correct any invalid use of NULL, remove an expression from a row that has an I., or remove a comparison from a column that has a U. operator.

SQLCODE:  -00104   Database:  DB2
QMF Function:  QBE
DSQ15113
Message:

Name &V1 contains an invalid character.

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 &V1 and run the query again.

SQLCODE:  -00113   Database:  DB2
QMF Function:  QBE
DSQ15118
Message:

A row with D., I., or U. can't link to a row of the same table.

Explanation:

Any row containing a D., I., or U. cannot be linked to another row if both refer to the same table.

User Response:

Remove the link and run the query again.

SQLCODE:  -00118   Database:  DB2
QMF Function:  QBE
DSQ15120
Message:

Query has an invalid reference to a view.

Explanation:

A column used with GROUP BY in the definition of a view cannot be updated or used in a condition. A column defined by a built-in function cannot be updated.

Incorrect example:

CREATE VIEW VJ(A, B) AS
SELECT JOB, AVG(COMM)
FROM Q.STAFF GROUP BY JOB

VJ   |  A  | B |
-----+-----+---|
     | MGR |   |

The query is incorrect because
column A is used in an implied
condition.

In addition, neither column A
nor B may be used with U..
User Response:

Write your query to access the table that the view is based on.

SQLCODE:  -00120   Database:  DB2
QMF Function:  QBE
DSQ15121
Message:

You cannot modify a column twice in the same query.

Explanation:

"Modify" includes insert (I.) and update (U.). For example, in the following invalid query, the column 'YEARS' cannot be modified more than once.

Incorrect:
                   *               *
Q.STAFF | ID   | YEARS | JOB   | YEARS |
--------+------+-------+-------+-------|
I.      | 400  | 7     | CLERK | 8     |
User Response:

Change the query and run it again.

SQLCODE:  -00121   Database:  DB2
QMF Function:  QBE
DSQ15123
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:  QBE
DSQ15127
Message:

More than one UNQ. or COUNT. reference to a row.

Explanation:

A row may contain no more than one UNQ. or CNT. reference. The following invalid query has a CNT. and a UNQ. reference to the row in the Q.STAFF table.

Invalid
 Query:

Q.STAFF | DEPT | SALARY | YEARS |
--------+------+--------+-------|
        | P.G. |  _S    |  _Y   |

      |          |     CONDITIONS     |
      |----------+--------------------|
      | P.CNT._S | AVG.UNQ._Y > 5     |
User Response:

Correct your query and run it again.

SQLCODE:  -00127   Database:  DB2
QMF Function:  QBE
DSQ15129
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:  QBE
DSQ15131
Message:

LIKE has incompatible data types.

Explanation:

If the column name is of type character, the expression at the right of LIKE or NOT LIKE must be of type character. If the column name is of type graphic, the expression at the right of LIKE or NOT LIKE must be of type graphic.

User Response:

Check the data type of every operand and run the query again.

SQLCODE:  -00131   Database:  DB2
QMF Function:  QBE
DSQ15134
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. The column cannot be used in search conditions, in sorting, or with arithmetic operations. Values used to insert or update must be constants; they cannot come from subqueries.

In QBE queries, the only entries that may be used in the column are the operators P., I., or U..

User Response:

Change your use of any wide character column or remove it, and run the query again.

SQLCODE:  -00134   Database:  DB2
QMF Function:  QBE
DSQ15136
Message:

A table cannot be sorted because the combined sort key is too long.

Explanation:

A single combined sort key is derived from one of the following:

  1. If no AO., DO., or G. is used in the example table, all of the columns to be retrieved are used to formulate the sort.
  2. All of the columns containing an AO. or DO. operator.
  3. The columns containing a G. operator.

If the length of the combined sort field exceeds 4000, the table cannot be sorted.

User Response:

Reduce the length of the combined sort key.

SQLCODE:  -00136   Database:  DB2
QMF Function:  QBE
DSQ15150
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:  QBE
DSQ15151
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:  QBE
DSQ15155
Message:

Query uses a view defined by grouping.

Explanation:

A view is defined by grouping if its definition uses GROUP BY or HAVING. Such a view may not be used in a query along with any other view or table.

User Response:

Consider doing something like this:

  1. Run a query to select data from the view defined by grouping.
  2. Save the data as a new table.
  3. Run a query that selects data from the new table along with data from the other views and tables.

SQLCODE:  -00155   Database:  DB2
QMF Function:  QBE
DSQ15161
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:  QBE
DSQ15180
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:  QBE
DSQ15181
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:  QBE
DSQ15182
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:

Q.PROJECT | STARTD |                  |
----------+--------+------------------|
          | _D     | P._D + 10102433. |
User Response:

Check datetime value and run the query again.

SQLCODE:  -00182   Database:  DB2
QMF Function:  QBE
DSQ15183
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:  QBE
DSQ15185
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:  QBE
DSQ15204
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:  QBE
DSQ15205
Message:

Column name &V1 is not in table &V2..

Explanation:

You used column name &V1.. It was not found in table &V2.. You may have misspelled the name, or the table name may need to be qualified.

User Response:

Verify that the column name and owner are correct and spelled correctly.

SQLCODE:  -00205   Database:  DB2
QMF Function:  QBE
DSQ15206
Message:

Column &V1 is not in the table named.

Explanation:

&V1 appears as a column name in an example table, but it is not a column in that table in the database.

User Response:

Change the column name. Give the command "DRAW tablename" (where "tablename" is the name of the table) to get an example table with all the column names filled in correctly.

SQLCODE:  -00206   Database:  DB2
QMF Function:  QBE
DSQ15250
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:  QBE
DSQ15251
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:  QBE
DSQ15270
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:  QBE
DSQ15312
Message:

Invalid context for identifier &V1..

Explanation:

Something in your query that might be valid in a query submitted to the preprocessor is not valid in QMF. The error may be in the identifier or in some reserved word preceding it.

Incorrect:
WHERE NAME IN (JONES, SMITH)
  (Write 'JONES' and 'SMITH' in single
   quotes.)

Incorrect:
WHERE NAME = :JONES
  (":" is invalid.)

Incorrect:
SELECT NAME INTO TYPE
  (INTO should be FROM.)
User Response:

Correct the query and run it again.

SQLCODE:  -00312   Database:  DB2
QMF Function:  QBE
DSQ15313
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:  QBE
DSQ15332
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:  QBE
DSQ15338
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:  QBE
DSQ15351
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:  QBE
DSQ15399
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:  QBE
DSQ15401
Message:

Data of different types must not be used in an expression or condition.

Explanation:

You used data of different types in an expression or condition. For example, the following is not valid because character data (SMITH) is compared to numeric data (_SALARY):

Invalid     _SALARY = SMITH
Example:
User Response:

Change any expression or condition so that data of the same type is used.

SQLCODE:  -00401   Database:  DB2
QMF Function:  QBE
DSQ15402
Message:

An arithmetic expression contains character data.

Explanation:

Arithmetic expressions, and expressions using the built-in functions AVG and SUM, may use only numeric data. Some expression in your query uses character data.

User Response:

Rewrite the expression, using only numeric data, and run your query again.

SQLCODE:  -00402   Database:  DB2
QMF Function:  QBE
DSQ15404
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:  QBE
DSQ15405
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:  QBE
DSQ15406
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:  QBE
DSQ15407
Message:

A column defined as NOT NULL may not contain a NULL.

Explanation:

Your query uses I. or U. in an attempt to enter a NULL into a column that is designated as NOT NULL. The following query attempts to insert a NULL into ID, but ID is defined as a NOT NULL column. Note that in an I. row, NULL is entered for

  1. named columns that have no insert value
  2. columns that contain NULL
  3. columns defined for the table but not named in the query

  Q.STAFF | ID | NAME       | DEPT  |
   -------+----+------------+-------|
    I.    |    | 'J.Harris' |       |

      | YEARS |
      |-------|
      | NULL  |
User Response:

Specify a value for the NOT NULL column.

SQLCODE:  -00407   Database:  DB2
QMF Function:  QBE
DSQ15408
Message:

An update or insert value is incompatible with the data type of its associated column.

Explanation:

Your query attempts to insert or update a column with a value from another column that is incompatible. The following invalid query attempts to insert into a numeric column (ID) a value from a character column (NAME).

Invalid
 Query:

  MYSTAFF | ID       | NAME     |
  --------+----------+----------|
     I.   | _N       | _N       |

     Q.STAFF | ID       | NAME     |
     --------+----------+----------|
             | _I       | _N       |
User Response:

Use a compatible value.

SQLCODE:  -00408   Database:  DB2
QMF Function:  QBE
DSQ15409
Message:

A name in your query starts or ends with a blank.

Explanation:

Names must not begin or end with a blank. In the following invalid query, the name, " YEARS", is invalid because it contains a leading blank.

Invalid
 Query:

      Q.STAFF | NAME | " YEARS" |
      --------+------+----------|
         P.   |      |          |
User Response:

Remove the leading or trailing blank from the name.

SQLCODE:  -00409   Database:  DB2
QMF Function:  QBE
DSQ15410
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:  QBE
DSQ15411
Message:

Invalid use of "USER". USER was used in an expression, compared to numeric data or graphic data, or not used in a condition.

Explanation:

USER may be used only in a condition. Additionally, it may not be compared to numeric data or graphic data. The following is an example of a valid use of USER.

Q.STAFF | NAME | SALARY | COMM | YEARS |
--------+------+--------+------+-------|
  P.    | USER |        |      |       |
User Response:

Correct the use of USER in your query and run the query again.

SQLCODE:  -00411   Database:  DB2
QMF Function:  QBE
DSQ15413
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:  QBE
DSQ15414
Message:

A LIKE operator in your query does not refer to character data or graphic data.

Explanation:

The LIKE operator may only be used with a column that has character data or graphic data. Your query uses a LIKE to refer to a column that does not have character or graphic data. For example,

Invalid     Q.STAFF | NAME | SALARY    |
 Query:     --------+------+-----------|
              P.    |      | LIKE'20%' |
User Response:

Remove the LIKE reference to numeric data or datetime data and run the query again.

SQLCODE:  -00414   Database:  DB2
QMF Function:  QBE
DSQ15415
Message:

Data to be retrieved into the same column of two separate P. rows must have comparable definitions.

Explanation:

Your query contains 2 or more P. rows with data definitions that cannot be compared. This query unsuccessfully attempted to retrieve data into the same column. The data definitions for these P. rows must be comparable for the retrieval to succeed. Additionally, the columns to be retrieved into the same output column must have the same field procedure and column CCSID value, provided the columns to be retrieved have field procedures.

The following query attempts to retrieve NUMERIC data (DEPT) and LONG VARCHAR data (JOB) into the same column.

Invalid
 Query:

 Q.staff  |  DEPT   |        |  JOB    |
 ---------+---------+--------+---------|
          |   _D    | P. _D  |         |
          |         | P. _J  |   _J    |
User Response:

Ensure that data retrieved into the same column have comparable definitions.

SQLCODE:  -00415   Database:  DB2
QMF Function:  QBE
DSQ15416
Message:

Data to be retrieved into the same column by two different P. rows must not refer to long variable character data.

Explanation:

Your query attempts to retrieve data into the same column from 2 sources, but at least one of those sources is data defined as long variable character data. The following is an example of such an invalid query.

Invalid    MYTABLE | LONGVARCHAR1 |
 Query:    --------+--------------|
              P.   |              |
              P.   |     _L2      |

           YOURTABLE | LONGVARCHAR2 |
           ----------+--------------|
                     |   _L2        |
User Response:

Remove the reference in the same column to long variable character data.

SQLCODE:  -00416   Database:  DB2
QMF Function:  QBE
DSQ15417
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:  QBE
DSQ15418
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:  QBE
DSQ15419
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:  QBE
DSQ15420
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:  QBE
DSQ15441
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:  QBE
DSQ15442
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:  QBE
DSQ15495
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:  QBE
DSQ15512
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:  QBE
DSQ15513
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:  QBE
DSQ15530
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:  QBE
DSQ15531
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:  QBE
DSQ15532
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:  QBE
DSQ15533
Message:

Cannot insert multiple rows into a self-referencing table.

Explanation:

You cannot use I. to insert more than one row at a time into a self-referencing table.

User Response:

Make sure the insert request inserts only one row of data.

SQLCODE:  -00533   Database:  DB2
QMF Function:  QBE
DSQ15534
Message:

Cannot update a primary key or unique constraint in multiple rows.

Explanation:

You cannot use U. to update a primary key or unique constraint in more than one row at a time.

User Response:

Make sure the update request selects no more than one row of data.

SQLCODE:  -00534   Database:  DB2
QMF Function:  QBE
DSQ15536
Message:

The deletion is invalid because table &V1 can be affected.

Explanation:

You cannot use D. to delete from a table based on values in table &V1, because table &V1 can be affected by the deletion.

User Response:

Do not attempt to delete from a table based on values in a table that can be affected.

SQLCODE:  -00536   Database:  DB2
QMF Function:  QBE
DSQ15540
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:  QBE
DSQ15551
Message:

You lack the authorization necessary to run your query.

Explanation:

Your QBE query uses one of the operators listed below, and requires the corresponding authorization on the appropriate tables.

D. -- DELETE
I. -- INSERT
P. -- SELECT
U. -- UPDATE
User Response:

See your QMF administrator to obtain the proper authorization for your query.

SQLCODE:  -00551   Database:  DB2
QMF Function:  QBE
DSQ15552
Message:

You lack the authorization necessary to run your query.

Explanation:

Your QBE query uses one of the operators listed below, and requires the corresponding authorization on the appropriate tables.

D. -- DELETE
I. -- INSERT
P. -- SELECT
U. -- UPDATE
User Response:

See your QMF administrator to obtain the proper authorization for your query.

SQLCODE:  -00552   Database:  DB2
QMF Function:  QBE
DSQ15607
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:  QBE
DSQ15618
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:  QBE
DSQ15642
Message:

Too many columns specified in the unique key.

Explanation:

Your CREATE TABLE statement uses too many columns in the UNIQUE clause. The total number of columns specified must be exceed the database limits.

User Response:

Reduce the totals number of key columns in the UNIQUE clause. Refer to the SQL Reference manual for database limits.

SQLCODE:  -00642   Database:  DB2
QMF Function:  QBE
DSQ15652
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:  QBE
DSQ15659
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:  QBE
DSQ15666
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:  QBE
DSQ15681
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:  QBE
DSQ15686
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:  QBE
DSQ15687
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:  QBE
DSQ15735
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:  QBE
DSQ15766
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:  QBE
DSQ15798
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:  QBE
DSQ15801
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:  QBE
DSQ15802
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:  QBE
DSQ15803
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:  QBE
DSQ15805
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:  QBE
DSQ15840
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:  QBE
DSQ15900
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:  QBE
DSQ15904
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:  QBE
DSQ15905
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:  QBE
DSQ15907
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:  QBE
DSQ15911
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:  QBE
DSQ15913
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:  QBE
DSQ15918
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:  QBE
DSQ15930
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:  QBE
DSQ15948
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:  QBE
DSQ16060
Message:

The &V2. value of &V3. is invalid.

Explanation:

Your &V1 command generated a SQL statement that specifies a data type that has an incorrect &V2 specification of &V3.. The &V2 specification for that data type must not exceed the limit.

Some possible causes of your query error are:

User Response:

Verify that the input data for your &V1 command does not exceed the database limit. If so, change the &V2 specification so that it is within the data type limit, and rerun the command. See the SQL Reference manual for your database for a detailed explanation on the data type limits.

SQLCODE:  -00060   Database:  DB2
QMF Function:  Command
DSQ16113
Message:

Name &V2 contains an invalid character.

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 &V2 (check for lower-case characters) and execute your command again. If you are using SAVE DATA or IMPORT TABLE to create a new table, the name in error may be the table space name from the profile. If so, use DISPLAY PROFILE to see this SPACE value.

SQLCODE:  -00113   Database:  DB2
QMF Function:  Command
DSQ16119
Message:

You cannot use this view.

Explanation:

Your command names a view whose definition has one of these errors:

  1. It uses both a column name and a column function after SELECT, but omits GROUP BY.
    Correct:  SELECT DEPT, AVG(SALARY)
              FROM Q.STAFF GROUP BY DEPT
  2. Some column 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)
  3. After HAVING it uses 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:  SUM (UNITS * RATE)
                    (Not: SUM(UNITS) * RATE)
User Response:

Change the definition of the view and enter the command again.

SQLCODE:  -00119   Database:  DB2
QMF Function:  Command
DSQ16150
Message:

You cannot use &V1 with this view.

Explanation:

You cannot name a view in a command if executing the command would require QMF to...

  1. INSERT, UPDATE, or DELETE
     - data from more than one table
     - a column defined by a built-in
       function (like SUM(COMM))
     - data selected by DISTINCT or GROUP BY
  2. INSERT or UPDATE a column defined by an expression (like SALARY/12).
  3. INSERT the value NULL into a column defined as NOT NULL in the table the view is based on.
User Response:

Pick a new name for the data, give the command "SAVE DATA AS newname", and so create a new table.

SQLCODE:  -00150   Database:  DB2
QMF Function:  Command
DSQ16151
Message:

Column &V2 cannot be changed.

Explanation:

Your &V1 command cannot be executed with the replace option, because that changes 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 where no columns can be updated.
User Response:

Choose a new name for the data to be saved, and so save it as a new table.

SQLCODE:  -00151   Database:  DB2
QMF Function:  Command
DSQ16180
Message:

Your &V1 command referenced an invalid DATETIME value.

Explanation:

Your &V1 command referenced an invalid DATETIME value. This may happen if your command references a view which contains an invalid DATETIME value in the view definition. 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:

If your &V1 command references a view, correct the syntax for the DATETIME value in the view definition and run the &V1 command again. Contact your QMF administrator for further help.

SQLCODE:  -00180   Database:  DB2
QMF Function:  Command
DSQ16204
Message:

&V2 cannot be found.

Explanation:

The name "&V2" was found in your &V1 command or as a result of processing your &V1 command, but nothing with that name can be found in the database.

User Response:

Check for a spelling error. To see a list of forms, procedures, queries, or tables you can use, give one of these commands:

  LIST FORMS               LIST PROCS
  LIST QUERIES             LIST TABLES

followed by the option (OWNER=ALL).

If you attempted to save a new table into the database, ensure that you have the correct SPACE value in your user profile.

SQLCODE:  -00204   Database:  DB2
QMF Function:  Command
DSQ16205
Message:

Column name &V1 is not in table &V2..

Explanation:

You used column name &V1.. It was not found in table &V2.. You may have misspelled the name, or the table name may need to be qualified.

User Response:

Verify that the column name and owner are correct and spelled correctly.

SQLCODE:  -00205   Database:  DB2
QMF Function:  Command
DSQ16250
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 command. 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:  Command
DSQ16251
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:  Command
DSQ16301
Message:

The &V1. command cannot process the current data object.

Explanation:

Column number &V2. in the current data object is incompatible with the corresponding column of the target table. This incompatibility is due to running QMF from a DB2 environment where the ROWID datatype is not supported.

User Response:

If column position &V2. is the last column in the data object, recreate the data object without that column and run the &V1. command again.

Otherwise, QMF must be run from a DB2 environment that supports the ROWID datatype before the desired QMF action can be completed. The ROWID datatype is supported by DB2 for OS/390 Version 6 and higher.

SQLCODE:  -00301   Database:  DB2
QMF Function:  Command
DSQ16332
Message:

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

Explanation:

Your &V1 command referenced a character string that has a coded character set ID(CCSID) &V2 in a coded character set that differs from the current one. To use this character string at the current server, the character string must be translated from the source CCSID &V2 to the target CCSID &V3.

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 your &V1 command is correct. If not, make the necessary changes and re-issue the command. Otherwise, contact your QMF administrator.

SQLCODE:  -00332   Database:  DB2
QMF Function:  Command
DSQ16351
Message:

Unsupported data type in position &V2..

Explanation:

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

User Response:

Remove the unsupported data types and run the query again.

SQLCODE:  -00351   Database:  DB2
QMF Function:  Command
DSQ16372
Message:

Only one column defined as ROWID is allowed in a table.

Explanation:

Your &V1 command attempted to create a table with more than one ROWID column or to add a ROWID column to a table that already has one.

User Response:

Do not attempt to save more than one column of ROWID data type in the data of the &V1 command.

SQLCODE:  -00372   Database:  DB2
QMF Function:  Command
DSQ16407
Message:

You cannot use &V1 with this view.

Explanation:

You cannot name a view in a command if executing the command would require QMF to...

  1. INSERT, UPDATE, or DELETE
     - data from more than one table
     - a column defined by a built-in
       function (like SUM(COMM))
     - data selected by DISTINCT or GROUP BY
  2. INSERT or UPDATE a column defined by an expression (like SALARY/12).
  3. INSERT the value NULL into a column defined as NOT NULL in the table the view is based on.
User Response:

Pick a new name for the data, give the command "SAVE DATA AS newname", and so create a new table.

SQLCODE:  -00407   Database:  DB2
QMF Function:  Command
DSQ16495
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:  Command
DSQ16512
Message:

Your command reference to a remote object is invalid.

Explanation:

Your &V1 command refers to a remote object. The remote reference may be the result of using an alias. One of the following conditions exists:

User Response:

  1. If you intended to create or erase a local table, check the name you specified to make sure it is spelled correctly.
  2. If you want to create or erase a remote table, and the CONNECT command is supported, you can connect to that remote location and then create or erase that table. If the CONNECT command is not supported, contact your QMF administrator.
  3. If the remote reference in your command is the result of using an alias, verify that the alias was defined properly or contact your QMF administrator.

SQLCODE:  -00512   Database:  DB2
QMF Function:  Command
DSQ16530
Message:

The foreign key value is not valid.

Explanation:

The table being replaced by your &V1 command has a foreign key. Your new data contains a value for the foreign key &V2..&V3. that 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: &V2..&V3..

User Response:

You cannot replace the table with the new data. Consider saving your data as a new table.

SQLCODE:  -00530   Database:  DB2
QMF Function:  Command
DSQ16532
Message:

The table cannot be replaced because RESTRICT is specified.

Explanation:

The table you attempted to replace has a primary key defined. To replace the table, the existing rows, and with them the primary key, must be deleted. However, a value of the primary key cannot be deleted because RESTRICT was specified for one or more descendant tables.

User Response:

Either save the data as a new table, or re-examine the constraint rules for all dependent tables.

SQLCODE:  -00532   Database:  DB2
QMF Function:  Command
DSQ16540
Message:

&V2 has no primary index for the primary key.

Explanation:

You cannot use the &V1 command with table &V2.. The table has a primary key, but no primary index.

User Response:

Define a primary index for the table before you use the &V1 command with it.

SQLCODE:  -00540   Database:  DB2
QMF Function:  Command
DSQ16551
Message:

You lack the authorization necessary for this &V1 command.

Explanation:

You (the &V2 id) cannot issue this &V1 command because you do not have the authority to perform &V3 on object &V4..

For DRAW, DISPLAY, EXPORT, or PRINT, your id &V2 needs SELECT authority on the table or view.

You can use ERASE only with tables or views you own or have administrative authority.

To replace an existing table with SAVE or IMPORT, you need SELECT, DELETE and INSERT authorization on that table.

To create a new table with SAVE or IMPORT, you need the authority to perform &V3 on object &V4..

User Response:

Contact your QMF administrator to obtain the proper authorization.

SQLCODE:  -00551   Database:  DB2
QMF Function:  Command
DSQ16552
Message:

You lack the authorization needed for this &V1 command.

Explanation:

For DRAW, DISPLAY, EXPORT, or PRINT, you need SELECT authorization on the table or view named.

You can use ERASE only with tables or views you own.

To replace an existing table with SAVE or IMPORT, you need SELECT, DELETE and INSERT authorization.

To create a new table with SAVE or IMPORT, you need the authorization to create the table you named.

User Response:

Contact your QMF administrator to obtain the proper authorization.

SQLCODE:  -00552   Database:  DB2
QMF Function:  Command
DSQ16571
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:  Command
DSQ16601
Message:

&V2 is the name of a &V3 already in the database.

Explanation:

You assigned the name &V2 to a &V3.. But it names something existing in the database. A name cannot be used more than once.

User Response:

Change the name &V2 and continue.

SQLCODE:  -00601   Database:  DB2
QMF Function:  Command
DSQ16604
Message:

Data length, scale, or precision for some column is invalid.

Explanation:

The DATA you are attempting to SAVE or the TABLE you are attempting to IMPORT contains a data length, or a decimal scale or precision that is either zero or greater than the maximum supported by the database.

User Response:

If you are trying to SAVE DATA, and the data you want to save was retrieved by running a query, then the query most likely selected a column with data length zero. Change the query so it does not select this column and re-run the query.

If you are trying to IMPORT a TABLE, or SAVE DATA that was previously imported, then the data most likely contains a decimal column with a precision larger than the maximum supported by the database. Change the data format to a precision within the database limits.

SQLCODE:  -00604   Database:  DB2
QMF Function:  Command
DSQ16607
Message:

&V1 cannot be used with this catalog object.

Explanation:

You cannot use ERASE or SAVE with any catalog object.

User Response:

Do not attempt this operation.

SQLCODE:  -00607   Database:  DB2
QMF Function:  Command
DSQ16618
Message:

&V2 is not allowed on system databases.

Explanation:

Your &V1 command requires the &V2 operation to be performed on the database. But that operation is not allowed on system databases.

User Response:

Do not attempt this operation.

SQLCODE:  -00618   Database:  DB2
QMF Function:  Command
DSQ16646
Message:

Table space &V3 already contains a table.

Explanation:

Your command generated a CREATE TABLE statement, and the database attempted to put the table in the tablespace &V3.. However, &V3 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 have the correct SPACE value in your QMF user profile. Do not attempt to create more than one table in a partitioned or default table space.

SQLCODE:  -00646   Database:  DB2
QMF Function:  Command
DSQ16652
Message:

Procedure &V2 rejects the result.

Explanation:

Your &V1 command requires an operation that was rejected by &V2, a procedure defined by your installation that edits or validates the results of queries.

User Response:

See your QMF administrator for descriptions of your installation's edit and validation procedures.

SQLCODE:  -00652   Database:  DB2
QMF Function:  Command
DSQ16653
Message:

Table &V2 has no partitioned index.

Explanation:

Your &V1 command attempted to create or use a partitioned table, but no partitioned index has been created for that table. A partitioned table (a table in a partitioned tablespace) cannot be referenced until the index for that table has been created. Table &V2 in partitioned tablespace &V3 has no index.

User Response:

If you are trying to use an existing table, be sure that the correct table was specified in your &V1 command. If it was, create an index, using the CLUSTER clause, for that table and execute your command again.

If you are trying to create a new table, make sure that the SPACE value in your profile does not specify the name of a partitioned table space. If you want to save or import data into a partitioned table, the table and its index must be created before the SAVE or IMPORT command is issued.

SQLCODE:  -00653   Database:  DB2
QMF Function:  Command
DSQ16659
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:  Command
DSQ16666
Message:

&V1 cannot be performed because a system function is active.

Explanation:

Either a system utility, the Resource Limit Facility, or the Distributed Data Facility is running. If a system utility is running, it must complete operation before &V1 can be performed. If the Resource Limit Facility is running, it must be stopped or switched to a different resource limit control table before &V1 can be performed. If the Distributed Data Facility is running, it must be stopped before &V1 can be performed.

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, or wait until the Distributed Data Facility stops, then resubmit &V1.

SQLCODE:  -00666   Database:  DB2
QMF Function:  Command
DSQ16669
Message:

You cannot &V1 this table.

Explanation:

The table you want to erase is in a partitioned tablespace. In order to erase such a table, you must drop the entire tablespace.

User Response:

Do not attempt this operation.

SQLCODE:  -00669   Database:  DB2
QMF Function:  Command
DSQ16670
Message:

Rows are longer than the table space page size.

Explanation:

The rows of the table you are trying to create are longer than the page size of the assigned table space.

User Response:

Either:

  1. Eliminate some of the columns, or use narrower columns, to reduce the length of the rows;
  2. Change SPACE in your profile to name a table space with a 32K bufferpool, to increase the page size to 32K.

SQLCODE:  -00670   Database:  DB2
QMF Function:  Command
DSQ16690
Message:

Your command was rejected by DB2 Data Definition Control Support.

Explanation:

Your &V1 command was rejected by DB2 Data Definition Control Support (DDCS) due to reason code &V2.. Refer to DB2 messages and codes manual for explanation.

User Response:

Verify that you have specified the correct object name. Consult your QMF administrator to verify that the DDL registration install option is set properly and check if the desired Data Definition Control Support mode is running. Then check the application registration and object registration tables to determine if the entries are correct. If they are not, update the registration table accordingly.

SQLCODE:  -00690   Database:  DB2
QMF Function:  Command
DSQ16691
Message:

Cannot find the required registration table &V2.

Explanation:

The Data Definition Control Support cannot find the Application Registration Table and/or Object Registration table &V2; your &V1 command cannot be run until the registration tables are properly defined.

User Response:

Verify that you have specified the correct object name. Consult your QMF administrator to verify the registration tables are created properly and the table names are correct.

SQLCODE:  -00691   Database:  DB2
QMF Function:  Command
DSQ16733
Message:

Table space, index or table is inconsistent with the owning subsystem.

Explanation:

The definition of a table space, index or table in a ROSHARE READ database defined as ROSHARE READ must be consistent with its description in the owning subsystem.

User Response:

Verify that the definition of the table space, index or table is consistent with that of the owning subsystem.

SQLCODE:  -00733   Database:  DB2
QMF Function:  Command
DSQ16735
Message:

Database &V2 is not a shared database on the owning subsystem.

Explanation:

You are trying to access an object in the database identified by &V2. That database is defined as ROSHARE READ on the subsystem that you are accessing. However, the database is no longer defined as ROSHARE OWNER on the owning subsystem. Therefore, the object cannot be accessed.

User Response:

Verify that the correct object was specified in your &V1 command.

SQLCODE:  -00735   Database:  DB2
QMF Function:  Command
DSQ16737
Message:

You cannot use an implicit table space in a read-only shared database.

Explanation:

Your &V1 command caused QMF to try to create a table. However, the SPACE value in your profile specifies only a database name, which causes a table space to be implicitly created for the table. The database is a read-only shared database, and table spaces cannot be implicitly created in read-only shared databases.

User Response:

Create a tablespace for the table, using the name from the owning subsystem. Set the SPACE value in your profile equal to dbname.tsname, where dbname is the name of the database, and tsname is the name of table space. (Make sure you remove the word "DATABASE" from your profile SPACE value.) Then issue your &V1 command again.

SQLCODE:  -00737   Database:  DB2
QMF Function:  Command
DSQ16747
Message:

The definition for the table &V2. is incomplete.

Explanation:

Table &V2. is not available until the auxiliary tables and indexes for its externally stored columns have been created.

User Response:

Create the missing auxiliary tables and indexes and re-run the command.

SQLCODE:  -00747   Database:  DB2
QMF Function:  Command
DSQ16766
Message:

The &V1. command is not permitted on an auxiliary table.

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 in the command.

SQLCODE:  -00766   Database:  DB2
QMF Function:  Command
DSQ16798
Message:

The &V1. command cannot process the current data object.

Explanation:

The current data object has an incompatibility with column "&V2." of the target table. This incompatibility is due to running QMF from a DB2 environment where the ROWID datatype is not supported.

User Response:

If column "&V2." is the last column of the target table, recreate the data object without that corresponding column of data and run the &V1. command again.

Otherwise, QMF must be run from a DB2 environment that supports the ROWID datatype before the desired QMF action can be completed. The ROWID datatype is supported by DB2 for OS/390 Version 6 and higher.

SQLCODE:  -00798   Database:  DB2
QMF Function:  Command
DSQ16801
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:  Command
DSQ16802
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:  Command
DSQ16803
Message:

Duplicate value in a unique index column.

Explanation:

One of the columns being modified by your command contains a value equal to the one being inserted. That column is a 'Unique Index' column. Unique Index columns cannot have duplicate values. Your &V1 command was not executed.

User Response:

You cannot change or replace the existing table or view with your data. Consider saving the data as a new table.

SQLCODE:  -00803   Database:  DB2
QMF Function:  Command
DSQ16805
Message:

Your command invoked a program not found in the current plan.

Explanation:

Your &V1 command executed the application plan &V3, which needs the program &V2..

If you were accessing remote data, the name of your plan may have been changed to DISTSERV.

However, this program was not found in the plan &V3.. 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 Information Center.

SQLCODE:  -00805   Database:  DB2
QMF Function:  Command
DSQ16817
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:  Command
DSQ16900
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:  Command
DSQ16904
Message:

Unavailable resource.

Explanation:

The request was not executed because the resource '&V4' of type '&V3' was unavailable at this time for the reason indicated by '&V2'. You may have entered an incorrect resource name. Or, the resource may be temporarily unavailable. See the DB2 Messages and Codes manual for a detailed explanation of the reason code &V2..

Some common causes for this condition are:

User Response:

Ensure that the specified resource is valid.

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:  Command
DSQ16905
Message:

DB2 resource limit was exceeded - &V1 terminated.

Explanation:

The &V1 command was terminated because a DB2 resource limit was exceeded.

User Response:

To avoid exceeding the DB2 resource limit, consider restructuring the tables and indexes or changing the resource limits. For further assistance, contact your QMF administrator.

SQLCODE:  -00905   Database:  DB2
QMF Function:  Command
DSQ16907
Message:

Cannot determine if the remote update was successful.

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:  Command
DSQ16911
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:  Command
DSQ16913
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:  Command
DSQ16918
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:  Command
DSQ16930
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 command again.

SQLCODE:  -00930   Database:  DB2
QMF Function:  Command
DSQ16948
Message:

Your command tried to access remote data while DDF is inactive.

Explanation:

Your &V1 command attempted to access data at the remote database, but Distributed Data Facility is not started. Your command is rolled back.

User Response:

You may continue using QMF. If problem persists, contact your QMF administrator.

SQLCODE:  -00948   Database:  DB2
QMF Function:  Command
DSQ16950
Message:

The location name is not known to the local DB2 subsystem.

Explanation:

You issued a "CONNECT TO <location>" command, and the location name neither specifies the local DB2 subsystem nor is listed in the DB2 communications database.

If the location name is not the local DB2 subsystem name, it must be defined in the DB2 SYSIBM.SYSLOCATIONS table.

User Response:

Verify that the specified location name is correct. If not, correct it and try again.

You can use the following steps to list all the location names defined in the SYSIBM.SYSLOCATIONS table:

  1. Enter the command "CONNECT ?" to display the CONNECT Command Prompt panel.
  2. Press <PF4> key to display the Location Names List. (Location names that are added to the SYSIBM.SYSLOCATIONS table after starting QMF will not appear in the list.)

If you are still unable to connect to the desired location, contact your QMF administrator.

SQLCODE:  -00950   Database:  DB2
QMF Function:  Command
DSQ17007
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:  SQL Query
DSQ17010
Message:

Value beginning '&V2' &V1 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:  SQL Query
DSQ17060
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:  SQL Query
DSQ17084
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:  SQL Query
DSQ17101
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:  SQL Query
DSQ17102
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:  SQL Query
DSQ17103
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:  SQL Query
DSQ17104
Message:

SQL error at or before &V3. &V1..

Reference line: ==>&V2.

Explanation:

Some common errors that produce this message are:

  1. An invalid character, or a name beginning with underscore.
  2. Missing or extra punctuation.
  3. A constant or a name where a keyword is expected.
  4. A non-numeric value where numeric is expected.
  5. The end of the query is missing.
  6. The first word is not a SQL command.
  7. You used a keyword that is valid in other database systems, but not in DB2.

The line of symbols below lists one or more symbols that might be 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 rerun it.

SQLCODE:  -00104   Database:  DB2
QMF Function:  SQL Query
DSQ17105
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:  SQL Query
DSQ17107
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:  SQL Query
DSQ17108
Message:

The name &V1 has the wrong number of qualifiers.

Explanation:

The object with the name &V1 can have only one qualifier. A column name is qualified with a table name, which is either qualified or unqualified, or a correlation name. In some contexts, a column name requires a table name qualifier.

User Response:

Qualify the object correctly and run the query again.

SQLCODE:  -00108   Database:  DB2
QMF Function:  SQL Query
DSQ17109
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:  SQL Query
DSQ17110
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:  SQL Query
DSQ17111
Message:

A column function does not use any column name.

Explanation:

The column functions AVG, MAX, MIN, and SUM must act on expressions that contain a column name from one of the tables accessed.

Correct:
SELECT SUM (SALARY * 1.15) FROM Q.STAFF

Incorrect:
SELECT SUM (18000 * 1.15) FROM Q.STAFF
User Response:

Make sure that all of your column functions have columns to act on and run the query again.

SQLCODE:  -00111   Database:  DB2
QMF Function:  SQL Query
DSQ17112
Message:

A column function uses an invalid expression.

Explanation:

The column functions are AVG, COUNT, MAX, MIN, and SUM. Column function expressions cannot contain column functions.

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

Change your query so that the column function has a correct expression and run it again.

SQLCODE:  -00112   Database:  DB2
QMF Function:  SQL Query
DSQ17113
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:  SQL Query
DSQ17115
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:  SQL Query
DSQ17117
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:  SQL Query
DSQ17118
Message:

You can't 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:  SQL Query
DSQ17119
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:  SQL Query
DSQ17120
Message:

A built-in function or a grouped column is used incorrectly, '&V3.'&V1..

Reference line: ==>&V2.

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 the view DV, then the following is

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

Change your query and run it again. If the problem is a grouped column in a view, try using the table the view is based on.

SQLCODE:  -00120   Database:  DB2
QMF Function:  SQL Query
DSQ17121
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:  SQL Query
DSQ17122
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:  SQL Query
DSQ17123
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:  SQL Query
DSQ17125
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:  SQL Query
DSQ17127
Message:

You cannot use DISTINCT more than once in a query.

Explanation:

Examples of DISTINCT usage:

Correct:
SELECT AVG(DISTINCT SALARY), DEPT
FROM STAFF
GROUP BY DEPT
HAVING AVG(SALARY) > 16000

Incorrect:
SELECT AVG(DISTINCT SALARY), DEPT
FROM STAFF
GROUP BY DEPT
HAVING AVG(DISTINCT SALARY) > 16000
User Response:

Remove all but one DISTINCT from your query and run it again.

SQLCODE:  -00127   Database:  DB2
QMF Function:  SQL Query
DSQ17128
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:  SQL Query
DSQ17129
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:  SQL Query
DSQ17130
Message:

An escape character used with the LIKE keyword is not valid.

Explanation:

To be an escape character, you must enclose a single character in quotes in the ESCAPE clause. The escape character can be in the string following LIKE only if it is followed by itself, %, or _. You cannot specify the ESCAPE clause if the column name at the left of the LIKE or NOT LIKE has the MIXED attribute. For example, in the following WHERE clause

WHERE COL1 LIKE 'AA+%BB%' ESCAPE '+'

'+' is the escape character, and COL1 is of type CHARACTER;, the WHERE clause will produce values of COL1 that begin with 'AA%BB'. In this example, in the character string following LIKE, any use of '+' other than '++', '+%', or '+_' is an error. (Note that if COL1 has the MIXED attribute, the escape character cannot be specified.)

User Response:

Fix the character string, or choose a different escape character and change the character string accordingly. Verify that the column name at the left of the LIKE or NOT LIKE does not have the MIXED attribute.

SQLCODE:  -00130   Database:  DB2
QMF Function:  SQL Query
DSQ17131
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:  SQL Query
DSQ17132
Message:

An incorrect value is used in a LIKE comparison &V1..

Reference line: ==>&V2.

Explanation:

The actual error may be just before or just after the LIKE.

LIKE should be preceded by a column name and followed by a character constant. Use the symbol '%' within the constant to stand for a string of zero or more characters; use '_' to stand for any single character.

For example, if you were searching a directory for a certain Johnson of whose spelling you were uncertain, you might say

   WHERE NAME LIKE 'J%NS_N'
User Response:

Change the condition using LIKE and run your query again.

SQLCODE:  -00132   Database:  DB2
QMF Function:  SQL Query
DSQ17133
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:  SQL Query
DSQ17134
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. The column cannot be used in search conditions, in sorting, or with arithmetic operations. Values used to insert or update must be constants; they cannot come from subqueries.

In SQL queries the column cannot be used with built-in column functions, HEX or VARGRAPHIC functions, ORDER BY, GROUP BY, UNION, or indexes.

User Response:

Change your use of any wide character column or remove it, and run the query again.

SQLCODE:  -00134   Database:  DB2
QMF Function:  SQL Query
DSQ17136
Message:

Sort key length cannot exceed 4,000 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 4,000 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:  SQL Query
DSQ17137
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:  SQL Query
DSQ17138
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:  SQL Query
DSQ17150
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:  SQL Query
DSQ17151
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:  SQL Query
DSQ17152
Message:

The DROP &V1 clause in the ALTER statement is invalid.

Explanation:

The DROP &V1 clause in the ALTER statement is invalid because &V2 is a &V3.. Either the DROP FOREIGN KEY clause of an ALTER TABLE statement tried to drop a check constraint, or the DROP CHECK clause of an ALTER TABLE statement tried to drop a referential constraint.

User Response:

Change the statement to use the correct DROP clause of the ALTER TABLE statement.

SQLCODE:  -00152   Database:  DB2
QMF Function:  SQL Query
DSQ17153
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:  SQL Query
DSQ17154
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:  SQL Query
DSQ17155
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:  SQL Query
DSQ17156
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:  SQL Query
DSQ17157
Message:

Only a table name can be specified in a FOREIGN KEY clause. &V1 is not a table name.

Explanation:

&V1 was identified in a FOREIGN KEY clause of a CREATE or ALTER TABLE statement. However, &V1 is not a table name. A FOREIGN KEY clause must identify a table.

User Response:

Be sure that a table name is used in the FOREIGN KEY clause.

SQLCODE:  -00157   Database:  DB2
QMF Function:  SQL Query
DSQ17158
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:  SQL Query
DSQ17159
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:  SQL Query
DSQ17160
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:  SQL Query
DSQ17161
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:  SQL Query
DSQ17164
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:  SQL Query
DSQ17170
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:  SQL Query
DSQ17171
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:  SQL Query
DSQ17180
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:  SQL Query
DSQ17181
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:  SQL Query
DSQ17182
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:  SQL Query
DSQ17183
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:  SQL Query
DSQ17184
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:  SQL Query
DSQ17185
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:  SQL Query
DSQ17193
Message:

Column &V1 has been specified incorrectly as NOT NULL.

Explanation:

In an ALTER TABLE statement, the column &V1 has been specified as NOT NULL and either the DEFAULT clause was not specified or was specified as DEFAULT NULL. When new columns are added to an existing table, a value must be assigned to the new column for all existing rows. By default, the null value is assigned. However, since the column has been defined as NOT NULL, a default value other than null must be defined.

User Response:

Correct the statement by either removing the NOT NULL restriction on the column or provide a default value other than NULL for the column. Then run the statement again.

SQLCODE:  -00193   Database:  DB2
QMF Function:  SQL Query
DSQ17197
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:  SQL Query
DSQ17198
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:  SQL Query
DSQ17199
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:  SQL Query
DSQ17203
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:  SQL Query
DSQ17204
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:  SQL Query
DSQ17205
Message:

Column name &V1 is not in table &V2..

Explanation:

You used column name &V1.. It was not found in table &V2.. You may have misspelled the name, or the table name may need to be qualified.

User Response:

Verify that the column name and owner are correct and spelled correctly.

SQLCODE:  -00205   Database:  DB2
QMF Function:  SQL Query
DSQ17206
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:  SQL Query
DSQ17207
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:  SQL Query
DSQ17208
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:  SQL Query
DSQ17212
Message:

The use of &V1 is not unique in the SQL statement.

Explanation:

The name &V1 appears multiple times in the SQL statement creating a conflict.

For a CREATE TRIGGER statement, a name used in the REFERENCING clause is not unique.

For a SELECT statement, a name used in the FROM clause is not unique.

User Response:

Change the statement to specify unique names.

In a trigger definition, change the names in the REFERENCING clause so that there are no duplicates.

In a SELECT statement, rewrite the FROM clause. Associate correlation names with table names or modify existing correlation names so that all tables are uniquely identified.

SQLCODE:  -00212   Database:  DB2
QMF Function:  SQL Query
DSQ17214
Message:

An expression in the &V2 clause is not valid.

Explanation:

In the &V2 clause, the expression beginning with "&V1" is not valid.

Refer to reason number &V3 in this list:

  1. Sort key expressions are not allowed in the ORDER BY clause of the SELECT statement when the UNION operator is used.
  2. Sort key expressions are not allowed in the ORDER BY clause when DISTINCT is used in the select clause.
  3. Grouping is caused by the presence of a column function in the ORDER BY clause but there is no GROUP BY clause.
  4. A GROUP BY clause expression cannot be a scalar-fullselect,
  5. An expression in a GROUP BY clause cannot be a scalar-fullselect, a fullselect that returns a single value.
User Response:

Modify the SELECT statement and run the query again. Refer to action number &V3 in this list:

  1. Remove the sort key expression from the ORDER BY clause. Use a column name or number instead.
  2. Remove DISTINCT from the select clause or change the sort key of the ORDER BY clause to a column name or number.
  3. Add a GROUP BY clause or remove the column function from the ORDER BY clause.
  4. Remove the expression from the GROUP BY clause. An alternative is to rewrite the query with a nested table expression or a common table expression.

SQLCODE:  -00214   Database:  DB2
QMF Function:  SQL Query
DSQ17216
Message:

The number of elements on each side of "&V1" are not the same.

Explanation:

The number of elements on the left and right sides of the predicate operator "&V1" are not the same. The number of elements must be the same on both sides.

These elements can appear in a list of expressions enclosed in parentheses or as the columns from a select statement enclosed in parentheses.

User Response:

Correct the predicate so that the same number of elements are on each side of the predicate operator.

If the predicate operator indicated is "=", the problem could be with an IN predicate written with a SELECT statement.

SQLCODE:  -00216   Database:  DB2
QMF Function:  SQL Query
DSQ17219
Message:

The Explain table &V1. does not exist.

Explanation:

The EXPLAIN statement requires one or more user-supplied explanation tables in which it places information. The table &V1 is not defined at the current database location.

User Response:

Create the required explanation table before using EXPLAIN. See the SQL Reference manual for more information on the EXPLAIN statement and creating the explanation tables.

SQLCODE:  -00219   Database:  DB2
QMF Function:  SQL Query
DSQ17220
Message:

An Explain table has an improper definition.

Explanation:

An error occurred during the execution of the EXPLAIN statement because a required explanation table is improperly defined.

EXPLAIN TABLE (AND COLUMN WHEN KNOWN):
&V1 &V2.

The definition could be incorrect due to:

User Response:

Correct the definition of the required explanation table before using EXPLAIN. See the SQL Reference manual for more information on the EXPLAIN statement and defining the explanation tables.

SQLCODE:  -00220   Database:  DB2
QMF Function:  SQL Query
DSQ17250
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:  SQL Query
DSQ17251
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:  SQL Query
DSQ17270
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:  SQL Query
DSQ17312
Message:

&V3 is used incorrectly &V1..

Explanation:

Some of the errors that produce this message are:

  1. Use of a name rather than a character constant after LIKE.
    Correct:   WHERE NAME LIKE 'J%'
    Incorrect: WHERE NAME LIKE J%
  2. Use of a name rather than a numeric or character constant in a parenthesized list after IN, ALL, or ANY.
    Correct:   WHERE NAME IN ('JOB','JIM')
    Incorrect: WHERE NAME IN (JOB, JIM)
  3. Use of a colon (':') in front of a name or keyword.
    Correct:   WHERE NAME = 'JOB' or
               WHERE NAME = JOB
    Incorrect: WHERE NAME = :JOB
User Response:

Correct the query and run it again.

SQLCODE:  -00312   Database:  DB2
QMF Function:  SQL Query
DSQ17313
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:  SQL Query
DSQ17332
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:  SQL Query
DSQ17338
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:  SQL Query
DSQ17351
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:  SQL Query
DSQ17372
Message:

Only one column defined as ROWID is allowed in a table.

Explanation:

An attempt was made to create a table with more than one ROWID column or to add a ROWID column to a table that already has one.

User Response:

Do not include more than one column of ROWID data type in a CREATE TABLE or ALTER TABLE SQL statement.

SQLCODE:  -00372   Database:  DB2
QMF Function:  SQL Query
DSQ17397
Message:

The option GENERATED is incorrectly specified.

Explanation:

GENERATED was specified in a CREATE or ALTER TABLE statement for a column with a data type that is not ROWID, or is not a distinct type that is based on ROWID. GENERATED can only be specified for a column with a data type of ROWID, or a distinct type that is based on ROWID.

User Response:

Eliminate the GENERATED clause or ensure that the data type of the object is ROWID.

SQLCODE:  -00397   Database:  DB2
QMF Function:  SQL Query
DSQ17399
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:  SQL Query
DSQ17401
Message:

Data of different types must not be used in an expression or condition.

Explanation:

You used data of different types in an expression or condition. For example, the following is not valid because character data ('COMM') is used in a numeric expression:

Invalid     WHERE SALARY = 12*'COMM'
User Response:

Change any expression or condition so that data of the same type is used.

SQLCODE:  -00401   Database:  DB2
QMF Function:  SQL Query
DSQ17402
Message:

Numeric data is required.

Explanation:

AVG and SUM column functions, DECIMAL, DIGITS, FLOAT, and INTEGER scalar functions require numeric data. Non-numeric data cannot be used. Arithmetic expressions requires numeric or datetime data.

User Response:

Change your query to include all numeric data with the arithmetic expression or function. Run the query again.

SQLCODE:  -00402   Database:  DB2
QMF Function:  SQL Query
DSQ17404
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:  SQL Query
DSQ17405
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:  SQL Query
DSQ17406
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:  SQL Query
DSQ17407
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:  SQL Query
DSQ17408
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:  SQL Query
DSQ17409
Message:

COUNT was used incorrectly.

Explanation:

The built-in function, COUNT, can be used only with a "*" or with DISTINCT and a column name. Examples of usage:

  1. COUNT(*) gives the number of rows selected.
  2. COUNT(DISTINCT column name) gives the number of different values in the column.
User Response:

Change your use of COUNT and run the query again.

SQLCODE:  -00409   Database:  DB2
QMF Function:  SQL Query
DSQ17410
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:  SQL Query
DSQ17411
Message:

The CURRENT DATE/TIME, CURRENT SQLID, or USER keyword cannot be used as specified.

Explanation:

The CURRENT DATE/TIME, CURRENT SQLID, or USER keyword appearing within an SQL statement is applied in a way that is invalid for its data type:

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

Change your SQL statement and run the query again.

SQLCODE:  -00411   Database:  DB2
QMF Function:  SQL Query
DSQ17412
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:  SQL Query
DSQ17413
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:  SQL Query
DSQ17414
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:  SQL Query
DSQ17415
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:  SQL Query
DSQ17416
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:  SQL Query
DSQ17417
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:  SQL Query
DSQ17418
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:  SQL Query
DSQ17419
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:  SQL Query
DSQ17420
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:  SQL Query
DSQ17421
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:  SQL Query
DSQ17433
Message:

The value beginning with "&V1" is too long.

Explanation:

A system cast or adjustment function was called to transform the value in some way but the value is too long. Truncation is not allowed where this value is used.

The value appears in one of the following situations:

User Response:

If the value is a literal string in the SQL statement, it is too long for its intended use.

If the value is not a literal string, examine the SQL statement to determine where the transformation is taking place. Either the input to the transformation is too long, or the target is too short.

Check the SQL Reference manual for specific length limits. They may differ between various database servers.

Correct the usage and run the query again.

SQLCODE:  -00433   Database:  DB2
QMF Function:  SQL Query
DSQ17440
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.

SQLCODE:  -00440   Database:  DB2
QMF Function:  SQL Query
DSQ17441
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:  SQL Query
DSQ17442
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:  SQL Query
DSQ17457
Message:

The name &V1 is reserved for system use.

Explanation:

The user defined function or distinct type cannot be created because the name selected is reserved for use by the system.

Names that cannot be used for functions or distinct types, even if they are delimited identifiers, include:

"=" "<" ">" ">=" "<=" "&&=" "&&>" "&&<" "!=" "!>" "!<" "<>" "¬=" "¬<" "¬>" ALL AND ANY BETWEEN DISTINCT EXCEPT EXISTS FALSE FOR FROM IN IS LIKE MATCH NOT NULL ONLY OR OVERLAPS SIMILAR SOME TRUE TYPE UNIQUE UNKNOWN

User Response:

Select a name for the function or distinct type that is not reserved for system use.

SQLCODE:  -00457   Database:  DB2
QMF Function:  SQL Query
DSQ17478
Message:

An object dependency prevents statement execution.

Explanation:

A DROP or REVOKE statement cannot remove an object while another object has a dependency on it.

THE OBJECT NAME (OR ITS TYPE IF KNOWN):
&V1.
THE DEPENDANT OBJECT AND TYPE (IF KNOWN):
&V2. &V3.

DROP
If the object is a function, the dependencies for DROP could be:
  • Another function is sourced on (implemented by) it.
  • A view uses this function.
  • A trigger package uses this function.
  • A table uses this function in a check constraint or user-defined default.

If the object is a distinct type, the dependencies could be:

  • This distinct type is a parameter of a function.
  • This distinct type is used in a column of a table.
REVOKE
If the object is a function, the dependencies for REVOKE could be:
  • A function owned by the revokee is sourced on this object.
  • A view owned by the revokee uses this object.
  • A trigger package owned by the revokee uses this object.
  • A table uses this function in a check constraint or user-defined default.

If the object is a distinct type, the dependencies for REVOKE could be:

  • This distinct type is a parameter of a function owned by the revokee.
  • A distinct type is used in a column of a table owned by the revokee.
User Response:

Either decide to not remove the object at all or remove the dependent object first.

SQLCODE:  -00478   Database:  DB2
QMF Function:  SQL Query
DSQ17481
Message:

The GROUP BY clause contains &V1 nested within &V2..

Explanation:

The following types of nesting are not allowed within a GROUP BY clause:

CUBE within CUBE, ROLLUP or GEL ROLLUP within CUBE, ROLLUP or GEL () within CUBE, ROLLUP or GEL GROUPING SET within CUBE, ROLLUP, GROUPING SET or GEL

where GEL represents a grouping-expression -list, an element shown in the syntax diagram of the GROUP BY clause. Refer to the SQL Reference manual for more information.

User Response:

Modify the GROUP BY clause to remove the nesting and run the query again.

SQLCODE:  -00481   Database:  DB2
QMF Function:  SQL Query
DSQ17495
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:  SQL Query
DSQ17512
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:  SQL Query
DSQ17513
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:  SQL Query
DSQ17528
Message:

The table &V1 already has that unique constraint.

Explanation:

Duplicate unique constraints are not allowed.

For a CREATE TABLE statement, a UNIQUE clause uses the same column list as the PRIMARY KEY clause or another UNIQUE clause.

For an ALTER TABLE statement, a UNIQUE clause uses the same column list as the PRIMARY KEY or a UNIQUE constraint that already exists for the table.

"&V2" is either the CONSTRAINT name in the SQL statement or the first name specified in the column list of the UNIQUE clause followed by three periods.

User Response:

Remove the duplicate UNIQUE clause or change the column list to a set of columns that is not already part of a unique constraint.

SQLCODE:  -00528   Database:  DB2
QMF Function:  SQL Query
DSQ17530
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:  SQL Query
DSQ17531
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:  SQL Query
DSQ17532
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:  SQL Query
DSQ17533
Message:

Cannot insert multiple rows into a self-referencing table.

Explanation:

An INSERT operation with a subselect attempted to insert multiple rows into a self-referencing table. The subselect of the INSERT operation should return no more than one row of data.

User Response:

Make sure the search condition of the subselect returns no more than one row of data.

SQLCODE:  -00533   Database:  DB2
QMF Function:  SQL Query
DSQ17534
Message:

Cannot update a primary key or unique constraint in multiple rows.

Explanation:

An UPDATE operation attempted to update a primary key or unique constraint in multiple rows of the table. An UPDATE statement that affects the primary key or unique constraint cannot be used to update more than one row of the table.

User Response:

Make sure the search condition of the UPDATE statement selects no more than one row of the table to be updated.

SQLCODE:  -00534   Database:  DB2
QMF Function:  SQL Query
DSQ17536
Message:

The DELETE statement is invalid because table &V1 can be affected.

Explanation:

A DELETE operation was attempted with table &V1, which was referred to in a subquery. However, this table is a descendant of the object table of the operation and is not protected from change by a delete rule of RESTRICT, so the deletion cannot be done.

User Response:

Do not refer to a table in a subquery of a DELETE statement if the table can be affected by that statement.

SQLCODE:  -00536   Database:  DB2
QMF Function:  SQL Query
DSQ17537
Message:

You used column name &V1 more than once.

Explanation:

A primary key or foreign key cannot contain duplicate column names. In a PRIMARY KEY or FOREIGN KEY clause, you used column name &V1 more than once.

User Response:

Specify unique column names.

SQLCODE:  -00537   Database:  DB2
QMF Function:  SQL Query
DSQ17538
Message:

Foreign key &V1 does not conform to the description of the primary key of table &V2..

Explanation:

Either the foreign key identified by &V1 does not have the same number of columns as the primary key of table &V2, or the descriptions of these keys are not identical. The requirement for identical descriptions includes data type, length attribute, and field procedure.

User Response:

Correct the FOREIGN KEY clause so that the description of the foreign key conforms to that of the primary key of the indicated table.

SQLCODE:  -00538   Database:  DB2
QMF Function:  SQL Query
DSQ17539
Message:

Table &V1 does not have a primary key.

Explanation:

You specified table &V1 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.

SQLCODE:  -00539   Database:  DB2
QMF Function:  SQL Query
DSQ17540
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:  SQL Query
DSQ17541
Message:

Foreign key &V1 is invalid because it is a duplicate referential constraint.

Explanation:

The indicated FOREIGN KEY clause defines the same foreign key and parent table as another referential constraint.

User Response:

Remove the duplicate referential constraint from the statement.

SQLCODE:  -00541   Database:  DB2
QMF Function:  SQL Query
DSQ17542
Message:

&V1 cannot be a column of a primary key or unique constraint because it can contain null values.

Explanation:

Column &V1 can contain null values; therefore, it cannot be included in a primary key or unique constraint clause.

User Response:

When defining the primary key or unique constraint use only columns that cannot contain null values. Correct the primary key or unique constraint clause and run the statement again.

SQLCODE:  -00542   Database:  DB2
QMF Function:  SQL Query
DSQ17544
Message:

The check constraint cannot be added.

Explanation:

The check constraint cannot be added because the table contains a row that violates the constraint. At least one existing row in the table violates the check constraint that is to be added in the ALTER TABLE statement.

User Response:

Examine the check constraint definition that is specified in the ALTER TABLE statement and the data in the table to determine why the ALTER TABLE statement was rejected.

SQLCODE:  -00544   Database:  DB2
QMF Function:  SQL Query
DSQ17545
Message:

The operation is not allowed because a row violates the CHECK CONSTRAINT &V1.

Explanation:

Table check constraint violations occurred on an INSERT or UPDATE statement. The resulting row violated the check constraint definition on the table.

User Response:

Examine the data and the check constraint definition to determine why the INSERT or UPDATE statement was rejected. The data must be changed to satisfy the check constraint. The check constraint definition is contained in the SYSIBM.SYSCHECKS catalog table.

SQLCODE:  -00545   Database:  DB2
QMF Function:  SQL Query
DSQ17546
Message:

The CHECK CONSTRAINT named &V1 is invalid.

Explanation:

A table check constraint named &V1 in the CREATE TABLE or ALTER TABLE statement is invalid. The constraint definition could be in error for one or more of the following reasons:

Additional restrictions can exist for check constraint definitions.

User Response:

Correct the constraint definition and run the query again. See the SQL Reference manual for more information on the CREATE TABLE statement and defining a check constraint.

SQLCODE:  -00546   Database:  DB2
QMF Function:  SQL Query
DSQ17548
Message:

The CHECK CONSTRAINT that is defined with &V1 is invalid.

Explanation:

A check constraint in the CREATE TABLE or ALTER TABLE statement is invalid for one or more of the following reasons:

User Response:

Correct the constraint definition and run the query again.

SQLCODE:  -00548   Database:  DB2
QMF Function:  SQL Query
DSQ17551
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:  SQL Query
DSQ17552
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:  SQL Query
DSQ17553
Message:

&V1 is not a valid authorization ID.

Explanation:

The authorization ID specified in SET CURRENT SQLID is neither your primary authorization ID nor one of your secondary authorization IDs.

User Response:

Correct the authorization ID in the statement or contact your QMF administrator to have the specified authorization ID defined for your use.

SQLCODE:  -00553   Database:  DB2
QMF Function:  SQL Query
DSQ17554
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:  SQL Query
DSQ17555
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:  SQL Query
DSQ17556
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:  SQL Query
DSQ17557
Message:

Keyword &V3.&V1. is invalid as used.

Reference line: ==>&V2.

Explanation:

The error may have been caused by any of the following:

  1. Something is misspelled, or a keyword is out of order.
  2. The mixture of privileges specified is not allowed. The privileges must all be of one type.
  3. REVOKE UPDATE(column-list) has been specified. Only GRANT UPDATE, not REVOKE, allows a column list.

The line below lists some of the keywords that might possibly be valid instead of &V3. in the context so far. &V4.

User Response:

Correct the query and continue.

SQLCODE:  -00557   Database:  DB2
QMF Function:  SQL Query
DSQ17558
Message:

Invalid use of "AT ALL LOCATIONS" on GRANT or REVOKE.

Explanation:

The location qualifier specified for a GRANT or REVOKE is invalid. Only table privileges (SELECT, INSERT, UPDATE, and so on), excluding ALTER and INDEX privileges, should be granted to IDs at different locations.

User Response:

See DB2 SQL Reference for valid keywords for GRANT or REVOKE statement.

SQLCODE:  -00558   Database:  DB2
QMF Function:  SQL Query
DSQ17559
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:  SQL Query
DSQ17571
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:  -00571   Database:  DB2
QMF Function:  SQL Query
DSQ17574
Message:

The DEFAULT value conflicts with the column definition.

Explanation:

USER, CURRENT SQLID, or a constant value was specified as a default value for a column, but either the target column length is too short or it's data type is incompatible.

User Response:

Change the statement so that the default value conforms to the column definition.

SQLCODE:  -00574   Database:  DB2
QMF Function:  SQL Query
DSQ17580
Message:

The result-expressions of a CASE expression cannot all be NULL.

Explanation:

There is a CASE expression in the statement that has all the result-expressions coded with the keyword NULL.

User Response:

Change the CASE expression to include at least one result-expression with a keyword other than NULL and run the query again.

SQLCODE:  -00580   Database:  DB2
QMF Function:  SQL Query
DSQ17581
Message:

The data types of the result-expressions of a CASE expression are not compatible.

Explanation:

There is a CASE expression in the statement that has result-expressions that are not compatible. The data types of the result-expressions might be incompatible because the CASE condition result data types are not all:

The data types must match. For example: If you are using character data in one instance all data types must be character.

User Response:

Correct the result-expressions so that the are compatible and run the query again.

SQLCODE:  -00581   Database:  DB2
QMF Function:  SQL Query
DSQ17582
Message:

The search-condition in a SEARCH-WHEN-CLAUSE is not valid.

Explanation:

The search-condition in a SEARCH-WHEN-CLAUSE specifies a quantified predicate, an IN predicate, or an EXISTS predicate, which are not allowed.

User Response:

Correct the search-condition and run the query again.

SQLCODE:  -00582   Database:  DB2
QMF Function:  SQL Query
DSQ17601
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:  SQL Query
DSQ17602
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:  SQL Query
DSQ17603
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:  SQL Query
DSQ17604
Message:

Column definition problem.

Explanation:

Your query specifies a column that has a length, precision, or scale outside the data type limit. Some possible causes of your query error are:

User Response:

Change the column definition to conform to the data type limit and run your SQL 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:  SQL Query
DSQ17607
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:  SQL Query
DSQ17612
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:  SQL Query
DSQ17613
Message:

The primary key is too long or has too many columns.

Explanation:

The sum of the length attributes of the columns identified in a PRIMARY KEY clause is greater than 254 bytes, or the number of columns identified is greater than 16.

User Response:

Modify the table definition to make the total length of the columns identified in the primary key less than or equal to 254 bytes, or change the PRIMARY KEY clause to specify no more than 16 columns.

SQLCODE:  -00613   Database:  DB2
QMF Function:  SQL Query
DSQ17614
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:  SQL Query
DSQ17616
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:  SQL Query
DSQ17617
Message:

Table &V1. cannot have a TYPE 1 index.

Explanation:

A type 1 index cannot be created on the following tables:

In addition, a type 1 index cannot be created on a ROWID column of a table.

User Response:

Either create the index as TYPE 2 or, if LOCKSIZE ROW was used, alter the LOCKSIZE of the table space containing the table to a value other than ROW.

SQLCODE:  -00617   Database:  DB2
QMF Function:  SQL Query
DSQ17618
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:  SQL Query
DSQ17621
Message:

DBID &V1 was previously assigned to &V2..

Explanation:

The database being created was assigned a DBID of &V1, which is identical to the DBID assigned to database &V2.. There is an inconsistency between the DB2 catalog and directory.

User Response:

Notify the system programmer. The inconsistency must be corrected before CREATE DATABASE will be successful.

SQLCODE:  -00621   Database:  DB2
QMF Function:  SQL Query
DSQ17622
Message:

You cannot specify FOR MIXED DATA in CREATE or ALTER TABLE statement.

Explanation:

You specified FOR MIXED DATA is specified in a column description of a CREATE or ALTER TABLE statement, but the MIXED DATA install option for this subsystem is set to NO.

User Response:

Change the FOR clause to the allowable options BIT or SBCS. If FOR MIXED DATA option is required, consult your DB2 Information Center to reset the MIXED DATA install option to YES.

SQLCODE:  -00622   Database:  DB2
QMF Function:  SQL Query
DSQ17623
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:  SQL Query
DSQ17624
Message:

Table &V1 already has a primary key.

Explanation:

A primary key cannot be defined for table &V1 because it already has a primary key. A table cannot have more than one primary key.

User Response:

If you want a different primary key for this table, then the existing primary key must be dropped first.

SQLCODE:  -00624   Database:  DB2
QMF Function:  SQL Query
DSQ17625
Message:

Table &V1 does not have an index to enforce the uniqueness of the primary key.

Explanation:

When adding a primary key to a table using ALTER TABLE, a unique index must already be defined with a key that is identical to that specified in the PRIMARY KEY clause. Table &V1 does not have a unique index for the specified primary key.

User Response:

Make sure the key list specified on the ALTER TABLE statement identifies an existing unique index of the table.

SQLCODE:  -00625   Database:  DB2
QMF Function:  SQL Query
DSQ17626
Message:

The ALTER statement cannot be executed because the page set is not stopped.

Explanation:

An ALTER statement specifies BUFFERPOOL, USING, PRIQTY, or GBPCACHE clause, but the page set is not stopped.

User Response:

Stop the page set, then try again.

SQLCODE:  -00626   Database:  DB2
QMF Function:  SQL Query
DSQ17627
Message:

The ALTER statement is invalid because the index or table space has user-managed data sets.

Explanation:

The index or table space that you are trying to alter has user-managed data sets, but the ALTER statement contains a PRIQTY, SECQTY, or ERASE clause. These clauses are valid only for DB2-managed data sets. The primary and secondary space allocation of a user-managed data set cannot be changed by means of an ALTER statement.

User Response:

Verify that the correct index or table space is specified.

SQLCODE:  -00627   Database:  DB2
QMF Function:  SQL Query
DSQ17628
Message:

The clauses are mutually exclusive.

Explanation:

Mutually exclusive clauses were specified in one or more of the following ways:

User Response:

Specify one clause or the other, but not both.

SQLCODE:  -00628   Database:  DB2
QMF Function:  SQL Query
DSQ17629
Message:

You cannot specify SET NULL for foreign key &V1..

Explanation:

The SET NULL delete rule cannot be specified for the FOREIGN KEY clause &V1 because no column of the key allows null values.

User Response:

Either change a column of the key to allow null values or change the delete rule.

SQLCODE:  -00629   Database:  DB2
QMF Function:  SQL Query
DSQ17630
Message:

WHERE NOT NULL invalid for type 1 indexes.

Explanation:

A type 1 index cannot be created with the WHERE NOT NULL specification.

User Response:

Either remove the WHERE NOT NULL specification or create the index as a type 2 index.

SQLCODE:  -00630   Database:  DB2
QMF Function:  SQL Query
DSQ17631
Message:

Foreign key &V1 is too long or has too many columns.

Explanation:

The sum of the length attributes of the columns identified in the FOREIGN KEY clause for &V1 is greater than 254 bytes, or the number of columns identified is greater than the database limit.

User Response:

Modify the table definition to conform to the limit of the sum of the length attributes of the columns identified in the FOREIGN KEY clause.

SQLCODE:  -00631   Database:  DB2
QMF Function:  SQL Query
DSQ17632
Message:

The table cannot be defined as a dependent of &V1 because of delete rule restrictions.

Explanation:

You cannot define the table as a dependent of table &V1.. The relationship would conflict with existing relationships. For example, the relationship might cause the table to be delete-connected to itself.

User Response:

Remove the FOREIGN KEY clause from the statement.

SQLCODE:  -00632   Database:  DB2
QMF Function:  SQL Query
DSQ17633
Message:

The delete rule must be &V1..

Explanation:

The FOREIGN KEY clause of the ALTER TABLE statement must specify a delete rule of &V1 because of one of the following:

  1. The foreign key would cause the table to be a dependent of itself. In this case, the delete rule must be CASCADE.
  2. The foreign key would cause the table to be delete-connected to another table through multiple paths. Such relationships must have the same delete rule.
User Response:

Change the delete rule in the FOREIGN KEY clause.

SQLCODE:  -00633   Database:  DB2
QMF Function:  SQL Query
DSQ17634
Message:

The delete rule must not be CASCADE.

Explanation:

The CASCADE delete rule specified in the FOREIGN KEY clause is not valid because of one of the following:

  1. The foreign key would cause a table to be delete-connected to itself in a cycle of tables.
  2. The foreign key would cause another table to be delete-connected to one table through multiple paths using different delete rules or a delete rule of SET NULL.
User Response:

Change the delete rule in the FOREIGN KEY clause.

SQLCODE:  -00634   Database:  DB2
QMF Function:  SQL Query
DSQ17635
Message:

The delete rules cannot be different or cannot be SET NULL.

Explanation:

The delete rules specified in two FOREIGN KEY clauses of the CREATE TABLE statement are not valid. The foreign keys would cause the table to be delete-connected to one table through multiple paths using different delete rules or a delete rule of SET NULL.

User Response:

Change the delete rule in one or both of the FOREIGN KEY clauses. If the table is to be delete-connected to one table through multiple paths, the relationships must use the same delete rule (CASCADE or RESTRICT).

SQLCODE:  -00635   Database:  DB2
QMF Function:  SQL Query
DSQ17636
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:  SQL Query
DSQ17637
Message:

&V3.&V1. is given twice.

Reference line: ==>&V2.

Explanation:

This query can use keyword &V3. only once. It was found two or more times.

User Response:

Correct the query and run it again.

SQLCODE:  -00637   Database:  DB2
QMF Function:  SQL Query
DSQ17638
Message:

Table &V1 cannot be created because the column definitions are missing.

Explanation:

The CREATE TABLE statement does not contain any column definitions.

User Response:

Add at least one column definition to the statement.

SQLCODE:  -00638   Database:  DB2
QMF Function:  SQL Query
DSQ17639
Message:

A nullable column of a foreign key with a delete rule of set null cannot be a column of a partitioned key.

Explanation:

A partition key of the clustering index cannot be updated. Therefore, a foreign key column with a delete rule of SET NULL cannot be a column of a partition key if that column is nullable. If this error occurs for an ALTER TABLE operation, the foreign key cannot be created. If this error occurs for a CREATE INDEX operation, the index cannot be created.

User Response:

If the error was CREATE INDEX, either change the index partition key definition or drop and redefine the referential constraint with a different delete rule. If the error was ALTER TABLE, either change the referential delete rule or drop and redefine the partition index key so that all nullable index keys are not part of the foreign Keys.

SQLCODE:  -00639   Database:  DB2
QMF Function:  SQL Query
DSQ17640
Message:

LOCKSIZE ROW cannot be specified.

Explanation:

LOCKSIZE ROW cannot be specified because a table in this tablespace has a type 1 index. If LOCKSIZE ROW is specified for a table space, all indexes on tables in the table space must be type 2 indexes.

User Response:

Either use the ALTER INDEX statement to convert all type 1 indexes to type 2 indexes or use another LOCKSIZE option.

SQLCODE:  -00640   Database:  DB2
QMF Function:  SQL Query
DSQ17642
Message:

Too many columns specified in the unique key.

Explanation:

Your CREATE TABLE statement uses too many columns in the UNIQUE clause. The total number of columns specified must be exceed the database limits.

User Response:

Reduce the totals number of key columns in the UNIQUE clause. Refer to the SQL Reference manual for database limits.

SQLCODE:  -00642   Database:  DB2
QMF Function:  SQL Query
DSQ17644
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:  SQL Query
DSQ17646
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:  SQL Query
DSQ17647
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:  SQL Query
DSQ17650
Message:

Something is preventing ALTER INDEX from executing.

Explanation:

The ALTER INDEX statement cannot be executed because of reason number &V1.. in this list:

  1. You cannot alter an index to type 1 if its associated table space has a LOCKSIZE specification of ROW.
  2. You cannot alter an index to type 1 if it was defined with UNIQUE WHERE NOT NULL.
  3. You cannot alter an index to type 1 if its associated table space has been defined as a LARGE table space.
  4. You cannot alter an index to type 1 on an ASCII table.
  5. You cannot alter PIECESIZE for a partitioning index.
  6. You cannot alter PIECESIZE 4G for a non-partitioned index on a non-LARGE table.
  7. You cannot alter an index to type 1 with the COPY YES attribute.
  8. You cannot alter an index to type 1 on an auxiliary table.
  9. You cannot alter an index to type 1 if its key includes a ROWID column.
User Response:

Correct the situation indicated in reason number &V1.. above before running the statement again.

SQLCODE:  -00650   Database:  DB2
QMF Function:  SQL Query
DSQ17652
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:  SQL Query
DSQ17653
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:  SQL Query
DSQ17659
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:  SQL Query
DSQ17662
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:  SQL Query
DSQ17663
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:  SQL Query
DSQ17664
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:  SQL Query
DSQ17665
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:  SQL Query
DSQ17666
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:  SQL Query
DSQ17667
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:  SQL Query
DSQ17668
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:  SQL Query
DSQ17669
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:  SQL Query
DSQ17670
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:  SQL Query
DSQ17671
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:  SQL Query
DSQ17672
Message:

DROP is not allowed on TABLE &V1.

Explanation:

The DROP operation failed for one of the following reasons:

User Response:

Before dropping the table, alter the table specifying DROP RESTRICT ON DROP.

SQLCODE:  -00672   Database:  DB2
QMF Function:  SQL Query
DSQ17673
Message:

A primary index cannot be created.

Explanation:

A primary key cannot be created because the table contains rows that are duplicates with respect to the values of the identified primary key columns. The primary key definition failed because the table being altered already contains rows that duplicate the values of the PRIMARY KEY clause columns.

User Response:

Remove the erroneous rows from the table and define the primary key again.

SQLCODE:  -00672   Database:  DB2
QMF Function:  SQL Query
DSQ17676
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:  SQL Query
DSQ17677
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:  SQL Query
DSQ17678
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:  SQL Query
DSQ17680
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:  SQL Query
DSQ17681
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:  SQL Query
DSQ17683
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:  SQL Query
DSQ17684
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:  SQL Query
DSQ17686
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:  SQL Query
DSQ17687
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:  SQL Query
DSQ17689
Message:

Number of columns defined in the dependent table exceeds the maximum.

Explanation:

The maximum number of columns allowed for a dependent table is 749.

Possible causes of this error are:

User Response:

Correct your SQL statement so that the number of columns defined in the dependent table is no more than 749 columns.

SQLCODE:  -00689   Database:  DB2
QMF Function:  SQL Query
DSQ17690
Message:

Your SQL statement was rejected by DB2 Data Definition Control Support.

Explanation:

DB2 Data Definition Control Support (DDCS) rejected your SQL statement due to reason code &V1.. Refer to the DB2 Messages and Codes manual for an explanation.

User Response:

Verify that you have specified the correct object name. Consult your Information Center to verify the DDL registration install option is set properly and check if the desired Data Definition Control Support mode is running. Then check the application registration and object registration tables to determine if the entries are correct. If they are not, update the registration table accordingly.

SQLCODE:  -00690   Database:  DB2
QMF Function:  SQL Query
DSQ17691
Message:

Cannot find the required registration table &V1.

Explanation:

The DB2 Data Definition Control Support cannot find the Application Registration Table and/or Object Registration table. Your query will not run until these tables are properly defined.

User Response:

Consult your Information Center to verify the registration tables are created properly and the table names are correct.

SQLCODE:  -00691   Database:  DB2
QMF Function:  SQL Query
DSQ17696
Message:

Invalid use of &V2 in a trigger definition.

Explanation:

The CREATE TRIGGER statement for &V1 includes an invalid use of &V2. as either a correlation-name or a temporary table identifier in the REFERENCING clause.

Refer to reason number &V3.. in this list:

  1. A DELETE trigger cannot use these in the REFERENCING clause:
    • NEW correlation-name
    • NEW_TABLE identifier
  2. An INSERT trigger cannot use these in the REFERENCING clause:
    • OLD correlation-name
    • OLD_TABLE identifier
  3. A BEFORE trigger cannot use these in the REFERENCING clause:
    • OLD_TABLE identifier
    • NEW_TABLE identifier
User Response:

Correct the REFERENCING clause of the CREATE TRIGGER statement before running the statement again.

SQLCODE:  -00696   Database:  DB2
QMF Function:  SQL Query
DSQ17697
Message:

Invalid REFERENCING clause in a trigger definition.

Explanation:

The CREATE TRIGGER statement includes a REFERENCING clause with one of the following invalid combinations:

  1. The clause, FOR EACH STATEMENT, used with one or both of these correlation names:
    • OLD correlation-name
    • NEW correlation-name
  2. The clause, FOR EACH ROW, used with one or both of these temporary table identifiers:
    • OLD_TABLE identifier
    • NEW_TABLE identifier
User Response:

Remove the invalid correlation names or temporary table identifiers from the REFERENCING clause or change the trigger granularity before running the statement again.

SQLCODE:  -00697   Database:  DB2
QMF Function:  SQL Query
DSQ17713
Message:

Your query specified an invalid value for &V1 register.

Explanation:

Your statement specified an invalid value for the &V1 special register. For the SET CURRENT DEGREE statement, the value of CURRENT DEGREE must be 'ANY', '1', or '1 '.

User Response:

Use a valid value to set the &V1 special register.

SQLCODE:  -00713   Database:  DB2
QMF Function:  SQL Query
DSQ17730
Message:

The parent table must be in a read-only shared database.

Explanation:

The table that you are creating or altering is in a read-only shared database. A foreign key in your CREATE or ALTER statement references a parent table that is not in a read-only shared database. The parent of a table in a read-only shared database must also be in a read-only shared database. The parent of a table in a shared database must also be in a shared database.

User Response:

Make sure that the FOREIGN KEY clause refers to the correct parent table.

SQLCODE:  -00730   Database:  DB2
QMF Function:  SQL Query
DSQ17731
Message:

You must define &V1 with SHAREOPTIONS(1,3).

Explanation:

The VSAM SHAREOPTIONS for the user-defined dataset &V1 must be (1,3) for all the indexes and table spaces in the shared database.

User Response:

Use the VSAM command LISTC to display the SHAREOPTIONS for the dataset &V1. If SHAREOPTIONS is not (1,3), correct it.

SQLCODE:  -00731   Database:  DB2
QMF Function:  SQL Query
DSQ17732
Message:

The table space or index space is not defined on the owning subsystem.

Explanation:

The database specified in your CREATE statement is defined on the subsystem with ROSHARE READ attribute. The table space or index must be defined on the owning subsystem before you can create it in the database.

User Response:

Verify that the table space or index is defined on the owning subsystem that owns the shared database.

SQLCODE:  -00732   Database:  DB2
QMF Function:  SQL Query
DSQ17733
Message:

Table space, index or table is inconsistent with the owning subsystem.

Explanation:

The definition of a table space, index or table in a ROSHARE READ database defined as ROSHARE READ must be consistent with its description in the owning subsystem.

User Response:

Verify that the definition of the table space, index or table is consistent with that of the owning subsystem.

SQLCODE:  -00733   Database:  DB2
QMF Function:  SQL Query
DSQ17734
Message:

You cannot ALTER the ROSHARE attribute of a database.

Explanation:

You cannot alter a database from ROSHARE READ to either ROSHARE OWNER or ROSHARE NONE.

User Response:

Verify that the correct database was specified on the ALTER DATABASE statement. To change the ROSHARE attribute of a read-only shared database, DROP and recreate the database.

SQLCODE:  -00734   Database:  DB2
QMF Function:  SQL Query
DSQ17735
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:  SQL Query
DSQ17736
Message:

Your CREATE statement contains an invalid OBID &V1.

Explanation:

Your OBID &V1 is either out of the acceptable range of 1 to 65535, or &V1 is already in use for the given database.

User Response:

Verify that the given OBID is valid. If the existing object is in error, then DROP and CREATE that object using the correct OBID value.

SQLCODE:  -00736   Database:  DB2
QMF Function:  SQL Query
DSQ17737
Message:

You cannot use an implicit table space in a read-only shared database.

Explanation:

Your CREATE TABLE statement uses the IN DATABASE clause to indicate the database in which the table is to be created. This implicitly creates a table space in the database. Table spaces cannot be created implicitly in read-only shared databases.

User Response:

Create a table space for the table, using the same name on the owning subsystem. Then rerun the CREATE TABLE statement, specifying the database and table space names.

SQLCODE:  -00737   Database:  DB2
QMF Function:  SQL Query
DSQ17747
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:  SQL Query
DSQ17748
Message:

An auxiliary table &V1. can have only one index.

Explanation:

An index already exists for the specified auxiliary table. An auxiliary table can have only one index, but the CREATE INDEX statement would create a second index.

User Response:

Do not attempt to create a second index for the specified auxiliary table.

SQLCODE:  -00748   Database:  DB2
QMF Function:  SQL Query
DSQ17751
Message:

Invalid triggered SQL statement in a trigger definition.

Explanation:

The trigger definition for &V1 includes an unsupported triggered SQL statement. The SQL statements supported as a triggered SQL statement depend on the type of trigger.

Certain DB2 servers support these SQL statements in both types of triggers:
- a SIGNAL SQLSTATE statement.
- a CALL SQL statement.

User Response:

Check the trigger definition for any triggered SQL statement that does not match the lists above and remove it.

See the SQL Reference manual for more information on the CREATE TRIGGER statement and supported triggered SQL statements.

SQLCODE:  -00751   Database:  DB2
QMF Function:  SQL Query
DSQ17763
Message:

Table space is invalid.

Explanation:

The table space is invalid for one of the following reasons:

User Response:

Either

SQLCODE:  -00763   Database:  DB2
QMF Function:  SQL Query
DSQ17764
Message:

LOB table space and base table space must be in the same database.

Explanation:

An attempt was made to create an auxiliary table in a LOB table space that is not in the same database as the associated base table space.

User Response:

Specify a LOB table space in the same database as the associated base table space and run the query again.

SQLCODE:  -00764   Database:  DB2
QMF Function:  SQL Query
DSQ17766
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:  SQL Query
DSQ17767
Message:

Missing or invalid column specification for index &V1..

Explanation:

The CREATE INDEX statement failed for one of the following reasons:

User Response:

Correct the syntax of the CREATE INDEX statement:

SQLCODE:  -00767   Database:  DB2
QMF Function:  SQL Query
DSQ17768
Message:

Auxiliary table already exists for the specified column or partition.

Explanation:

An attempt was made to create an auxiliary table, but an auxiliary table for the specified column or partition already exists. When the base table belongs to a non-partitioned table space, there can be only one auxiliary table per LOB column of the table. When the base table belongs to a partitioned table space, for any given LOB column, all values of the LOB column for a given partition are stored in their own auxiliary table. There must be one auxiliary table per partition of the base table space.

User Response:

Check that the correct table name, column name, and if applicable, partition number have been specified. If a different name is desired for the existing auxiliary table, the RENAME TABLE statement can be used to rename the auxiliary table.

SQLCODE:  -00768   Database:  DB2
QMF Function:  SQL Query
DSQ17770
Message:

ROWID column is required when defining LOB columns.

Explanation:

An attempt was made to create a table &V1 with a LOB column or to add a LOB column to a table, but the table does not have a ROWID column. A table with a LOB column must also have a ROWID column.

User Response:

If creating a table with a LOB column, define a column with type ROWID in the same table. If using ALTER to add a LOB column to a table, first use ALTER to add a column with type ROWID to the table.

SQLCODE:  -00770   Database:  DB2
QMF Function:  SQL Query
DSQ17797
Message:

Invalid triggered SQL statement in a trigger definition.

Explanation:

The trigger definition for &V1 includes an unsupported triggered SQL statement. The SQL statements supported as a triggered SQL statement depend on the type of trigger.

Certain DB2 servers support these SQL statements in both types of triggers:
- a SIGNAL SQLSTATE statement.
- a CALL SQL statement.

User Response:

Check the trigger definition for any triggered SQL statement that does not match the lists above and remove it.

See the SQL Reference manual for more information on the CREATE TRIGGER statement and supported triggered SQL statements.

SQLCODE:  -00797   Database:  DB2
QMF Function:  SQL Query
DSQ17798
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:  SQL Query
DSQ17801
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:  -00800   Database:  DB2
QMF Function:  SQL Query
DSQ17802
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:  SQL Query
DSQ17803
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:  SQL Query
DSQ17805
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:  SQL Query
DSQ17811
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:  SQL Query
DSQ17815
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:  SQL Query
DSQ17817
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:  SQL Query
DSQ17840
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:  SQL Query
DSQ17872
Message:

A valid CCSID has not been specified for this system.

Explanation:

A valid CCSID was not specified on either the ASCII CODED CHARACTER SET or the EBCDIC CODED CHARACTER SET subsystem parameter on installation panel DSNTIPF.

User Response:

Contact your system administrator to have the necessary CCSID defined on your system.

SQLCODE:  -00872   Database:  DB2
QMF Function:  SQL Query
DSQ17873
Message:

Data encoded with different CCSIDs cannot be referenced in the same SQL statement.

Explanation:

You cannot refer to a column defined in an ASCII table in the same SQL statement as a column defined in an EBCDIC table.

User Response:

Correct the SQL statement and run the query again.

SQLCODE:  -00873   Database:  DB2
QMF Function:  SQL Query
DSQ17874
Message:

The TABLE encoding scheme conflicts with the TABLE SPACE encoding scheme.

Explanation:

If CCSID ASCII was specified, then the containing table space is EBCDIC. If CCSID EBCDIC was specified, then the containing table space is ASCII. The encoding scheme of the table must be the same as the table space which contains the table.

User Response:

Correct the SQL statement and run the query again.

SQLCODE:  -00874   Database:  DB2
QMF Function:  SQL Query
DSQ17875
Message:

&V1 cannot be used with the ASCII data referenced encoding scheme.

Explanation:

ASCII data was referenced in one of the following situations:

User Response:

Correct the SQL statement and run the query again.

SQLCODE:  -00875   Database:  DB2
QMF Function:  SQL Query
DSQ17876
Message:

TYPE 1 INDEX cannot be created for a table defined as ASCII.

Explanation:

A CREATE TYPE 1 INDEX statement was specified for an ASCII table. Only type 2 indexes are supported for ASCII tables.

User Response:

Correct the SQL statement to specify TYPE 2 index for the index being created and run the query again.

SQLCODE:  -00876   Database:  DB2
QMF Function:  SQL Query
DSQ17877
Message:

CCSID ASCII is not allowed for this database or table space.

Explanation:

The database or table space specified is required to be EBCDIC.

User Response:

Remove the CCSID ASCII clause from the statement and run the query again.

SQLCODE:  -00877   Database:  DB2
QMF Function:  SQL Query
DSQ17878
Message:

The PLAN_TABLE used for EXPLAIN cannot be ASCII.

Explanation:

PLAN_TABLEs must be encoded EBCDIC for use with EXPLAIN.

User Response:

Drop the existing PLAN_TABLE and recreate it with the EBCDIC encoding scheme.

SQLCODE:  -00878   Database:  DB2
QMF Function:  SQL Query
DSQ17879
Message:

Invalid column definition specified on the CREATE TABLE statement for and ASCII table.

Explanation:

A CREATE TABLE statement for an ASCII table cannot define a column as GRAPHIC, VARGRAPHIC, or LONG VARGRAPHIC when the MIXED DATA install option is set to NO.

User Response:

Contact your system administrator to properly set up the install options for ASCII tables, or change the data types of the columns in your CREATE TABLE statement.

SQLCODE:  -00879   Database:  DB2
QMF Function:  SQL Query
DSQ17900
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:  SQL Query
DSQ17904
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 the 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:  SQL Query
DSQ17905
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:  SQL Query
DSQ17907
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:  SQL Query
DSQ17911
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:  SQL Query
DSQ17913
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:  SQL Query
DSQ17918
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:  SQL Query
DSQ17930
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:  SQL Query
DSQ17948
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:  SQL Query
DSQ18104
Message:

An SQL error occurred at or before &V3..

Explanation:

A syntax error was detected at the specified token. The text " &V4 " indicates up to 20 characters of the statement that preceded the error. Some common errors that produce this message are:

  1. An invalid character, or a name beginning with underscore.
  2. Has missing or extra punctuation.
  3. A constant or name where keyword is expected.
  4. A non-numeric value where numeric is needed.
  5. The end of the query is missing.
  6. The first word of query not a SQL command name.
  7. You used some keywords that are valid in other database system, but not in DB2.

The line of symbols below lists one or more symbols that might be 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. &V5

User Response:

Correct the query and rerun it.

DSQ18440
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.

DSQ18557
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.

DSQ18632
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.

DSQ18633
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.

DSQ19104
Message:

See DSQ18104

User Response:

Follow the directions in the referenced message.

DSQ19440
Message:

See DSQ18440

User Response:

Follow the directions in the referenced message.

DSQ19441
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.

DSQ19557
Message:

See DSQ18557

User Response:

Follow the directions in the referenced message.

DSQ19632
Message:

See DSQ18632

User Response:

Follow the directions in the referenced message.

DSQ19633
Message:

See DSQ18633

User Response:

Follow the directions in the referenced message.

[ Previous Page | Next Page | Contents ]