DB2 Warning

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ramkarthik
Participant
Posts: 27
Joined: Thu Jun 26, 2008 6:13 am
Location: chennai

DB2 Warning

Post by ramkarthik »

1. HP72LoadCustSegETLTable..LoadETLCustSeg: SQLExecDirect: Returned success with info for statement 'DELETE FROM UHCDM001.ETL_CUSTOMER_SEGMENT'. See following DB2 error for details.

2. HP72LoadCustSegETLTable..LoadETLCustSeg: [IBM][CLI Driver][DB2/AIX64] SQL0513W The SQL statement will modify an entire table or view. SQLSTATE=01504
ramkarthik
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And? :?

Ask a question.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You have executed DELETE FROM table WHERE condition and no row in the table meets the condition. DB2 has returned an informational message showing you that this has obtained. Because it is an "unusual" event, DataStage logs it as an alert (warning).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Was really hoping for a question to respond to. And actually, the informational message is because there is no where clause and it deleted every record from the table. :shock:

Hopefully, that's what they intended.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is it just me, or wasn't the message "no rows affected"? Or is this a different thread? Odd, it's not even Monday!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Different thread.

Posting from another airport lounge? :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Hotel room. Airport lounge is tonight (local time).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
John Smith
Charter Member
Charter Member
Posts: 193
Joined: Tue Sep 05, 2006 8:01 pm
Location: Australia

Post by John Smith »

You can ignore the warning if you know what you are doing because DB2 is warning you that you are deleting ALL records from your table using the SQL statement. Is that what you want to do?
Post Reply