| Author |
Message |
karthi_gana

Group memberships: Premium Members
Joined: 28 Apr 2009
Posts: 232
Points: 1768
|
|
| DataStage® Release: 8x |
| Job Type: Server |
| OS: Unix |
|
All,
1) I have a sequential file. It contain 16000 records.
2) I have a HASH file. It contains 2000 records
I desiged the job like,
| Code: |
Seq_File _____> Transformer <--------- Hash File
|
|
|
v
Final_Seq_File |
Seq_File contains Fund_Id, Portfolio_Id
Hash File contains Portfolio_id
Final_Seq_File contains 2000 records now.
But my requirement is, I have to store all 16000 records in the Final_Seq_File alongg with Portfolio_id (HASH FILE), if Portfolio_id is not matching with Seq_File, simply i have to store 'NULL'.
|
_________________ Karthik |
|
|
|
 |
Sainath.Srinivasan
Participant
Group memberships: Heartland Usergroup
Joined: 17 Jan 2005
Posts: 3293
Location: United Kingdom
Points: 13965
|
|
|
|
|
|
|
Isn't that the default working mechanism - unless you have constrained something !!??
|
|
|
|
|
 |
chulett
 since January 2006
Group memberships: Premium Members, Inner Circle, Server to Parallel Transition Group
Joined: 12 Nov 2002
Posts: 28935
Location: Denver, CO
Points: 149513
|
|
|
|
|
|
|
Right, you have a constraint that only allows lookup successes to pass - you need to "turn that off".
|
_________________ -craig
And as in uffish thought he stood, the Jabberwock, with eyes of flame,
Came whiffling through the tulgey wood, and burbled as it came!
|
|
|
|
 |
karthi_gana

Group memberships: Premium Members
Joined: 28 Apr 2009
Posts: 232
Points: 1768
|
|
|
|
|
|
| chulett wrote: |
| Right, you have a constraint that only allows lookup successes to pass - you need to "turn that off". |
I don't have any constraint under 'Transformer'.
|
_________________ Karthik |
|
|
|
 |
Sainath.Srinivasan
Participant
Group memberships: Heartland Usergroup
Joined: 17 Jan 2005
Posts: 3293
Location: United Kingdom
Points: 13965
|
|
|
|
|
|
|
See the row count per link and find where the constraint is.
|
|
|
|
|
 |
battaliou
Participant
Joined: 24 Feb 2003
Posts: 98
Location: London
Points: 605
|
|
|
|
 |
chulett
 since January 2006
Group memberships: Premium Members, Inner Circle, Server to Parallel Transition Group
Joined: 12 Nov 2002
Posts: 28935
Location: Denver, CO
Points: 149513
|
|
|
|
|
|
|
Have you checked your job's log to see if there were warnings logged during the write to the sequential file?
|
_________________ -craig
And as in uffish thought he stood, the Jabberwock, with eyes of flame,
Came whiffling through the tulgey wood, and burbled as it came!
|
|
|
|
 |
Sainath.Srinivasan
Participant
Group memberships: Heartland Usergroup
Joined: 17 Jan 2005
Posts: 3293
Location: United Kingdom
Points: 13965
|
|
|
|
|
|
|
Ensure that all columns are nullable. Or set a dummy value if the lookup fails.
|
|
|
|
|
 |
karthi_gana

Group memberships: Premium Members
Joined: 28 Apr 2009
Posts: 232
Points: 1768
|
|
|
|
|
|
| chulett wrote: |
| Have you checked your job's log to see if there were warnings logged during the write to the sequential file? |
Yes...I have checked the log...i din't see any warnings...
|
_________________ Karthik |
|
|
|
 |
Sainath.Srinivasan
Participant
Group memberships: Heartland Usergroup
Joined: 17 Jan 2005
Posts: 3293
Location: United Kingdom
Points: 13965
|
|
|
|
|
|
Did you ensure that all NULL returns are made into a non-null values.
DataStage server is observed to be notorious in losing rows where NULLs are moved into non-nullable columns.
|
|
|
|
|
 |
karthi_gana

Group memberships: Premium Members
Joined: 28 Apr 2009
Posts: 232
Points: 1768
|
|
|
|
|
|
| Sainath.Srinivasan wrote: |
Did you ensure that all NULL returns are made into a non-null values.
DataStage server is observed to be notorious in losing rows where NULLs are moved into non-nullable columns. |
I am using only two columns in the HASH file, both of them are NON NULL values.
so i choose 'NO' for Nullable property.
|
_________________ Karthik |
|
|
|
 |
Sainath.Srinivasan
Participant
Group memberships: Heartland Usergroup
Joined: 17 Jan 2005
Posts: 3293
Location: United Kingdom
Points: 13965
|
|
|
|
|
|
They may be non-nullable in the hashed file. But if the lookup fails, the return is null.
|
|
|
|
|
 |
karthi_gana

Group memberships: Premium Members
Joined: 28 Apr 2009
Posts: 232
Points: 1768
|
|
|
|
|
|
| karthi_gana wrote: |
| Sainath.Srinivasan wrote: |
Did you ensure that all NULL returns are made into a non-null values.
DataStage server is observed to be notorious in losing rows where NULLs are moved into non-nullable columns. |
I am using only two columns in the HASH file, both of them are NON NULL values.
so i choose 'NO' for Nullable property. |
I am just thinking the below steps...
1) Get matching records
2) Get unmatching records
3) Merge both the files
i think it may be a workaround for this problem...
|
_________________ Karthik |
|
|
|
 |
ray.wurlod
Participant
Group memberships: Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group
Joined: 23 Oct 2002
Posts: 41076
Location: Canberra, Australia
Points: 228937
|
|
|
|
|
|
|
Your steps 1 through 3 can be summarised as "get ALL the records".
|
_________________ Zenith Solutions (Australia) Pty Ltd
-- from obscurity to
clarity
|
|
|
|
 |
arunpramanik
Participant
Joined: 22 Jun 2007
Posts: 51
Location: Kolkata
Points: 350
|
|
|
|
|
|
| karthi_gana wrote: |
2) Get unmatching records
i think it may be a workaround for this problem... |
That is what you are not getting in the job you have designed, so your work around will not work
|
|
|
|
|
 |
|
|