Left outer join in HASH file

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

We are obviously missing something or you've left out some critical details - this is dead simple and should work as desired and as (allegedly) designed... unless you are not telling us everything. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Post by karthi_gana »

ray.wurlod wrote:Your steps 1 through 3 can be summarised as "get ALL the records".
get all the records with prtf_id (if fnd_id matches otherwise simply place NULL in prtf_id column)
Karthik
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Again, for the umpteenth time, your design as posted will do exactly that. What are we missing? :?

What exact 8.x version are you running, btw? If it is anything other than the latest iteration of 8.1.x.x then suggest you check with your official support provider and see if this is a known bug in your platform's version.
-craig

"You can never have too many knives" -- Logan Nine Fingers
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

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

Why do you think it will not accept NULL. Seq file will accept NULL.
Arun
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I'll side with Craig on the NULL in sequential files question. Try writing a null to a sequential file in DataStage and then reading the null.
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

arunkumarmm wrote: Why do you think it will not accept NULL. Seq file will accept NULL.
Unless you specify a default for NullFieldValues within the Sequential file stage properties you will have trouble reading NULL's.
Kris

Where's the "Any" key?-Homer Simpson
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not in a Server job. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
arunpramanik
Participant
Posts: 63
Joined: Fri Jun 22, 2007 7:27 am
Location: Kolkata

Post by arunpramanik »

kris007 wrote: Unless you specify a default for NullFieldValues within the Sequential file stage properties you will have trouble reading NULL's.
I don't think so, if the field is set as Nullable = Yes, the NULL will be stored with nothing separated by the field delimiter (,) with the default setting something like
"ABC",,90.00
Certainly you can read the same out from sequential file with same default setting
Post Reply