DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
karthi_gana



Group memberships:
Premium Members

Joined: 28 Apr 2009
Posts: 232

Points: 1768

Post Posted: Wed Jul 21, 2010 4:09 am Reply with quote    Back to top    

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

Premium Poster
Participant

Group memberships:
Heartland Usergroup

Joined: 17 Jan 2005
Posts: 3293
Location: United Kingdom
Points: 13965

Post Posted: Wed Jul 21, 2010 4:30 am Reply with quote    Back to top    

Isn't that the default working mechanism - unless you have constrained something !!??
Rate this response:  
Not yet rated
chulett

Premium Poster


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

Post Posted: Wed Jul 21, 2010 5:43 am Reply with quote    Back to top    

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!
Rate this response:  
Not yet rated
karthi_gana



Group memberships:
Premium Members

Joined: 28 Apr 2009
Posts: 232

Points: 1768

Post Posted: Wed Jul 21, 2010 7:16 am Reply with quote    Back to top    

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
Rate this response:  
Not yet rated
Sainath.Srinivasan

Premium Poster
Participant

Group memberships:
Heartland Usergroup

Joined: 17 Jan 2005
Posts: 3293
Location: United Kingdom
Points: 13965

Post Posted: Wed Jul 21, 2010 7:32 am Reply with quote    Back to top    

See the row count per link and find where the constraint is.
Rate this response:  
Not yet rated
battaliou
Participant



Joined: 24 Feb 2003
Posts: 98
Location: London
Points: 605

Post Posted: Wed Jul 21, 2010 8:02 am Reply with quote    Back to top    

Er, you're trying to put NULL into a sequential file? Good luck.

_________________
CENTURION: What's this, then? 'Romanes Eunt Domus'? 'People called Romanes they go the house'?

BRIAN: It-- it says, 'Romans, go home'.

Rate this response:  
Not yet rated
chulett

Premium Poster


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

Post Posted: Wed Jul 21, 2010 8:32 am Reply with quote    Back to top    

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!
Rate this response:  
Not yet rated
Sainath.Srinivasan

Premium Poster
Participant

Group memberships:
Heartland Usergroup

Joined: 17 Jan 2005
Posts: 3293
Location: United Kingdom
Points: 13965

Post Posted: Wed Jul 21, 2010 9:38 am Reply with quote    Back to top    

Ensure that all columns are nullable. Or set a dummy value if the lookup fails.
Rate this response:  
Not yet rated
karthi_gana



Group memberships:
Premium Members

Joined: 28 Apr 2009
Posts: 232

Points: 1768

Post Posted: Thu Jul 22, 2010 12:28 am Reply with quote    Back to top    

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
Rate this response:  
Not yet rated
Sainath.Srinivasan

Premium Poster
Participant

Group memberships:
Heartland Usergroup

Joined: 17 Jan 2005
Posts: 3293
Location: United Kingdom
Points: 13965

Post Posted: Thu Jul 22, 2010 1:57 am Reply with quote    Back to top    

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.
Rate this response:  
Not yet rated
karthi_gana



Group memberships:
Premium Members

Joined: 28 Apr 2009
Posts: 232

Points: 1768

Post Posted: Thu Jul 22, 2010 3:57 am Reply with quote    Back to top    

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
Rate this response:  
Not yet rated
Sainath.Srinivasan

Premium Poster
Participant

Group memberships:
Heartland Usergroup

Joined: 17 Jan 2005
Posts: 3293
Location: United Kingdom
Points: 13965

Post Posted: Thu Jul 22, 2010 4:06 am Reply with quote    Back to top    

Idea They may be non-nullable in the hashed file. But if the lookup fails, the return is null.
Rate this response:  
Not yet rated
karthi_gana



Group memberships:
Premium Members

Joined: 28 Apr 2009
Posts: 232

Points: 1768

Post Posted: Thu Jul 22, 2010 4:15 am Reply with quote    Back to top    

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
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
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

Post Posted: Thu Jul 22, 2010 4:34 am Reply with quote    Back to top    

Your steps 1 through 3 can be summarised as "get ALL the records".

_________________
Zenith Solutions (Australia) Pty Ltd
-- from obscurity to clarity
Rate this response:  
Not yet rated
arunpramanik
Participant



Joined: 22 Jun 2007
Posts: 51
Location: Kolkata
Points: 350

Post Posted: Thu Jul 22, 2010 5:15 am Reply with quote    Back to top    

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
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours