Check that

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
pradeep_nov18
Participant
Posts: 92
Joined: Wed Mar 05, 2008 4:09 am
Location: chennai
Contact:

Check that

Post by pradeep_nov18 »

Hi ALL,

I have requirement

Input(SRC DATATYPE:CHAR(16)) Required(TGT DATATYPE:date(10)

INPUT OUTPUT
00000000******** NULL
20080701******** 2008-07-01

I have give derviation in the column

If SAP_ATL_COST_SAVING_copy_ln2.ZPRT_COSTSAVINGS_BEDAT = '00000000 ' Then Setnull() Else StringToDate(SAP_ATL_COST_SAVING_copy_ln2.ZPRT_COSTSAVINGS_BEDAT [1,4] : "-" : SAP_ATL_COST_SAVING_copy_ln2.ZPRT_COSTSAVINGS_BEDAT [5,2] : "-" : SAP_ATL_COST_SAVING_copy_ln2.ZPRT_COSTSAVINGS_BEDAT [7,2],"%yyyy-%mm-%dd")

BUT the valid data(for eg:20080701********) output is as expected but if the value is (00000000********) than it is takin default in teradata side

please let me how to achieve the required Output and correct me if i am wrong

Thanks in Advance
pradeep.v
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Check that?
-craig

"You can never have too many knives" -- Logan Nine Fingers
pradeep_nov18
Participant
Posts: 92
Joined: Wed Mar 05, 2008 4:09 am
Location: chennai
Contact:

Hi

Post by pradeep_nov18 »

chulett wrote:Check that?
derivation which has posted not working.
pradeep.v
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I know. Just making a point that you need to do a better job of picking Subjects for your posts. "Check that" and "Hi all"? Please.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

And posting the same question over and over is frowned upon.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply