i have one problem when i try to update null value in "SERVER JOB" in "Datastage 7.5.1.A"
UPDATE SOR_DATA_SVC SET JOB_INST_ID=?,LAST_UDT_TMS=?,DSC=? WHERE DATA_SVC_TP=? AND DATA_SVC_CODE=? AND COALESCE(DATA_SVC_SUB_CODE,'')=COALESCE(?,'');
Null value can be updated after i put that update command but the "NOT NULL VALUE" can not be updated.
can anyone give me a hand
thx in advance
COALESCE handling null value
Moderators: chulett, rschirm, roy
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard. :D
You would be far better off converting the NULL to "" within the job design. There is a built-in Transform called NullToEmpty exactly for that purpose.
You would be far better off converting the NULL to "" within the job design. There is a built-in Transform called NullToEmpty exactly for that purpose.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
What is happening to make you say "it doesn't work"? That is not a particularly specific symptom description.
If you've used NullToEmpty to remove nulls from the column, also lose the second COALESCE from the sql statement. It's unnecessary.
If you've used NullToEmpty to remove nulls from the column, also lose the second COALESCE from the sql statement. It's unnecessary.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
