'#' in Where condition value of Oracle Query

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
balu536
Premium Member
Premium Member
Posts: 103
Joined: Tue Dec 02, 2008 5:01 am

'#' in Where condition value of Oracle Query

Post by balu536 »

Hi,
I'm using an Oracle query where one of columns in Where condition has '#' in value.

The query runs fine in Toad or SQL Developer but is failing in the Oracle Connector. Please help.

Original Query:
*************
SELECT * FROM TABLE_A WHERE COLUMN_A = 'AB CDE #' AND STG_ETL_BATCH_ID = 1


Query in the Director Log after Job run:
********************************
The following SQL statement failed: SELECT * FROM TABLE_A WHERE COLUMN_A = 'AB CDE STG_ETL_BATCH_ID = 1
********************************
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DataStage notes that "#" is a reserved character. It can (should) be replaced with the special value __035__ (documented here).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
balu536
Premium Member
Premium Member
Posts: 103
Joined: Tue Dec 02, 2008 5:01 am

Post by balu536 »

Thank you Ray!
Post Reply