SCD stage END_Dt column derivation

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
edwds
Premium Member
Premium Member
Posts: 32
Joined: Mon May 01, 2006 1:06 pm

SCD stage END_Dt column derivation

Post by edwds »

I am using a SCD stage and implementing Type II.

When I try to ASSIGN a Default Future date "2999-01-01" to END_DT column, I am getting the following error. Setting it to NULL works fine but I wanted a default future date. When I try to assign a date value through a Job parameter it does not work.


Invalid derivation for the SCD type 2 expired date column 'END_EFFCTV_DT' - the correct derivation should be either a literal or SetNull() function call.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Make sure that the date literal is of the correct format for your job.
Try surrounding your date with quote characters.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

Re: SCD stage END_Dt column derivation

Post by nirdesh2 »

Just check the datatype of END_EFFCTV_DT whether it is date or Timestamp. If it is Timestamp then assign the value like '2099-12-12 00:00:00' . I am using in this way and it is working fine.
Nirdesh Kumar
edwds
Premium Member
Premium Member
Posts: 32
Joined: Mon May 01, 2006 1:06 pm

Post by edwds »

Thanks guys. It worked now. I was trying to assign the value to END_Dt column through a Job parameter and it doesn't work that way.

Thanks a lot.
Post Reply