reject logic issue with space

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
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

reject logic issue with space

Post by marpadga18 »

Requirement is : Src_Seq_stage>> Trans _stage>>>sql servtgt

Reject stage from Trans_stage


In this scenario I am able to reject records to reject file and load remaining records to tgt table if there is no space in || column it is rejecting to reject file
UK ||SUSAN MCCLUSKEY |c/o: FLEMING

But in this scenario it is not rejecting
UK | |SUSAN MCCLUSKEY |c/o: FLEMING
the problem is with space If I keep space while testing it is not rejecting and loading that space to tgt table which is should not do

constarints i am giving in the transformer are
Output link: Src_Input_link.Address_Book_Number <> ''
reject link: Src_Input_link.Address_Book_Number = ''

so need some input how to overcome this problem
I have many coulmns but i posted only 1 column any input :(:(
Last edited by marpadga18 on Thu Nov 04, 2010 9:41 am, edited 1 time in total.
Thanks,
M
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Post by vinothkumar »

Check Trim function
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Post by marpadga18 »

vinothkumar wrote:Check Trim function
i need to reject records if it has space
Thanks,
M
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Post by vinothkumar »

You need to reject recrods if there are no values and space in Src_Input_link.Address_Book_Number . If yes, for reject link use

Trim(Src_Input_link.Address_Book_Number)=''
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Post by marpadga18 »

vinothkumar wrote:You need to reject recrods if there are no values and space in Src_Input_link.Address_Book_Number . If yes, for reject link use

Trim(Src_Input_link.Address_Book_Number)=''
Hey thanks ""Vinoth"" & ""DSXchange""is working fine thanks for ur input
Thanks,
M
Post Reply