473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Cannot delete table data with db2 connect

I have a database which I have loaded onto our as/400 v4r5. All the
tables and data have loaded successfully. I am using DB2 connect to
access. I now want to delete the data in a table which is where the
problem is starting.
I type delete from tablename in the command centre and get the
following message

SQL7008N REXX variable "*N" contains inconsistent data.

Explanation:

A variable that contained inconsistent data was passed to REXX.

The command cannot be processed.

User Response:

If the variable is an SQLDA, verify that the data and length
fields have been assigned correctly. If it is a REXX variable,
verify that the type of data is appropriate to the command where
it is being used.
I have also tried from the command line processor and get exactly the
same error. Apparantly I have all the necessary authority to delete
data.

If anyone could give some help or advice on what to do, it would be
much appreciated.

Many Thanks,
Trevor Davies.
Nov 12 '05 #1
2 5124
Trevor Davies wrote:
I have a database which I have loaded onto our as/400 v4r5. All the
tables and data have loaded successfully. I am using DB2 connect to
access. I now want to delete the data in a table which is where the
problem is starting.
I type delete from tablename in the command centre and get the
following message

SQL7008N REXX variable "*N" contains inconsistent data.
<snip>
I have also tried from the command line processor and get exactly the
same error. Apparantly I have all the necessary authority to delete
data.

If anyone could give some help or advice on what to do, it would be
much appreciated.


If SQL7008 is returned from the AS/400 server, often it is because the
DML operation is being performed under commitment control, while the
target table is not journaled. Journaling is required for commitment
control. See reason code 3 in the message snippet below. You will need
to either start journaling the table, or run w/o commitment control.

(This is a common problem - try Google with search terms of "SQL7008"
and "AS/400" .. you will likely get numerous hits.)

===> DSPMSGD RANGE(SQL7008) MSGF(QSQLMSG)

Message ID . . . . . . . . . : SQL7008

Message file . . . . . . . . : QSQLMSG

Library . . . . . . . . . : QSYS

Message . . . . : &1 in &2 not valid for operation.

Cause . . . . . : The reason code is &3. Reason codes are:

1 -- &1 has no members.

2 -- &1 has been saved with storage free.

3 -- &1 not journaled, or no authority to the journal. Files with
an RI constraint action of CASCADE, SET NULL, or SET DEFAULT must be
journaled to the same journal.

4 and 5 -- &1 is in or being created into production library but
the user has debug mode UPDPROD(*NO).
--
Karl Hanson
Nov 12 '05 #2
Trevor Davies wrote:
I have a database which I have loaded onto our as/400 v4r5. All the
tables and data have loaded successfully. I am using DB2 connect to
access. I now want to delete the data in a table which is where the
problem is starting.
I type delete from tablename in the command centre and get the
following message

SQL7008N REXX variable "*N" contains inconsistent data.
<snip>
I have also tried from the command line processor and get exactly the
same error. Apparantly I have all the necessary authority to delete
data.

If anyone could give some help or advice on what to do, it would be
much appreciated.


If SQL7008 is returned from the AS/400 server, often it is because the
DML operation is being performed under commitment control, while the
target table is not journaled. Journaling is required for commitment
control. See reason code 3 in the message snippet below. You will need
to either start journaling the table, or run w/o commitment control.

(This is a common problem - try Google with search terms of "SQL7008"
and "AS/400" .. you will likely get numerous hits.)

===> DSPMSGD RANGE(SQL7008) MSGF(QSQLMSG)

Message ID . . . . . . . . . : SQL7008

Message file . . . . . . . . : QSQLMSG

Library . . . . . . . . . : QSYS

Message . . . . : &1 in &2 not valid for operation.

Cause . . . . . : The reason code is &3. Reason codes are:

1 -- &1 has no members.

2 -- &1 has been saved with storage free.

3 -- &1 not journaled, or no authority to the journal. Files with
an RI constraint action of CASCADE, SET NULL, or SET DEFAULT must be
journaled to the same journal.

4 and 5 -- &1 is in or being created into production library but
the user has debug mode UPDPROD(*NO).
--
Karl Hanson
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: MAB71 | last post by:
I'm running an ISP database in SQL 6.5 which has a table 'calls'. When the new month starts I create a new table with the same fields and move the data of previous month into that table and delete...
0
by: karenmiddleol | last post by:
The following code works fine I can connect to a SQL database and list all the records in the Orders table onto a web page. Now our users want me to modify it so that each row displayed as a...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
0
by: Trevor Davies | last post by:
I have a database which I have loaded onto our as/400 v4r5. All the tables and data have loaded successfully. I am using DB2 connect to access. I now want to delete the data in a table which is...
22
by: Smutny30 | last post by:
Hello, I am preparing a database that will store 10 n * GBs - 100 n * GBs of data. I calculated to have 1,2 GB of bufferpools. I run the DB2 v. 8.2.1 alone on 4 GB box. I obtain : ...
1
by: alan | last post by:
in my project there are 5 textbox : tbOrderid, tbSeqNum, tbFoodCode, tbFoodDesc and tbPrice 9 button: btInsert, btdelete, btUpdate, btClear, btBind, btFirst, btPrevious, btNext and btLast i...
6
by: Aaron Smith | last post by:
Ok. I have a dataset that has multiple tables in it. In one of the child tables, I have a column that I added to the DataSet (Not in the DataSource). This column does not need to be stored in the...
6
by: polocar | last post by:
Hi, I'm writing a program in Visual C# 2005 Professional Edition. This program connects to a SQL Server 2005 database called "Generations" (in which there is only one table, called...
3
by: FNA access | last post by:
Hello all, I am relitivley new to mySQL. I started by downloading from the mySQL site. I then downloaded mySQL administrator and mySQL Query browser. With my set up I got a user root with a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.