If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Task Center return code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-08, 12:33
toette toette is offline
Registered User
 
Join Date: Nov 2004
Posts: 15
DB2 Task Center return code

hello everybody,

i need a solution for db2 task center. via the import command i put data into a table. at first, this is no problem. but the job even shows a success (return code 0) if some data records were rejected. it is not a success it is an error.

the job shoud fail because in my situation it is not good when the next job starts.

does anyone know a solution for this problem?

thanks
toette
Reply With Quote
  #2 (permalink)  
Old 03-26-08, 12:59
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You did not specify the DB2 version or OS.

You could try the clause "warningcount 1" on your import statement.

Andy
Reply With Quote
  #3 (permalink)  
Old 03-27-08, 04:24
toette toette is offline
Registered User
 
Join Date: Nov 2004
Posts: 15
good morning,

os = win 2003 sp2. i already tried to set "warningcount=1" but the return code is the same (value 0).

does anyone have another idea?

toette
Reply With Quote
  #4 (permalink)  
Old 03-27-08, 07:38
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You will have to define what "success" means on the Run Properties tab, otherwise Task Centre considers as successful any task that completes.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On