Is there any difference between a single quote to a double quote when defining a value in parallel job transformer stage?
I am trying to do null handling for a lookup value by assigning it to '-1 ' which has a space character in the string, but the records always get rejected while loading due to the foreign constraint saying it didnt find the parent key. The parent key is a char(3) of value '-1 '. So how to do this in Datastage?
single quote vs double quote
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 41
- Joined: Tue Jan 24, 2006 3:43 pm
- Location: United States
- Contact:
single quote vs double quote
Knowledge is Power
I don't think the type of quote matters.
Have you tried dumping the records to the Peek stage, or a Sequential File stage, instead of loading them into a table? Then you can see what's actually in there.
What error message do you get?
How are you handling the nulls? What have you tried?
Have you tried dumping the records to the Peek stage, or a Sequential File stage, instead of loading them into a table? Then you can see what's actually in there.
What error message do you get?
How are you handling the nulls? What have you tried?
Choose a job you love, and you will never have to work a day in your life. - Confucius
Hi,
I will make some assumptions before suggesting something.
----I assume that the 'Parent Key' is having referential integrity on the primary key of the same table. So, both fields reside in same table.
----"-1" is the place holder value that you are trying pass incase of NULL\Space.
If my assumptions are right then,
--- You should insert a record where primary key value is "-1" and Parent Key is NULL. This should happen before loading any of the other valid record. I assume that your primary or parent key is integer in nature, you should enclose -1 in double quote or single qoute.
--- Try loading other valid records.
Hope this helps
I will make some assumptions before suggesting something.
----I assume that the 'Parent Key' is having referential integrity on the primary key of the same table. So, both fields reside in same table.
----"-1" is the place holder value that you are trying pass incase of NULL\Space.
If my assumptions are right then,
--- You should insert a record where primary key value is "-1" and Parent Key is NULL. This should happen before loading any of the other valid record. I assume that your primary or parent key is integer in nature, you should enclose -1 in double quote or single qoute.
--- Try loading other valid records.
Hope this helps
Ping me if I am wrong...
-
- Participant
- Posts: 1
- Joined: Wed Feb 10, 2010 10:28 pm
- Location: Australia