Deleting Data with Datastage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jassu
Premium Member
Premium Member
Posts: 7
Joined: Wed Dec 03, 2008 4:13 am
Location: USA

Deleting Data with Datastage

Post by jassu »

Hi,
I am trying to delete data from the table using DB2_UDB_Enterprise stage.I am using the Delete option in this stage. But when I run the job it is giving me the following error.
"Unable to convert the adapter spec ostrstream object with a value of `' to ustring."
I am not using the USTRING type any where in the Job and I am passing a value in the delete statement like "DELETE FROM <TABLE_NAME> WHERE <COLUMN_NAME>=VALUE".
Please help me in finding a solution for this problem.
mithun.mg
Participant
Posts: 11
Joined: Thu Feb 22, 2007 6:04 am
Location: banglore

Re: Deleting Data with Datastage

Post by mithun.mg »

Hi Jassu,

Please check on what keys the table you are trying to delete is partitoned.

If suppose the the table is partiotned on colA and ColB ,Then try using the below query in your DB2 Enterprise stage:

"DELETE FROM <TABLE_NAME> WHERE <COLUMN_NAME>=VALUE OR COLA=-1 OR COLB=-1".

If the tables is partitoned on any date column then use col='01-01-0001'
Thanks & Regards
MITHUN M G
ETL Devloper
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Import the target table definition. Are there any NChar or NVarChar columns defined in the imported table definitions? If so, these are the ustrings about which the exporter is complaining.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply