Doubt regarding Datastage String Function
Posted: Thu Mar 26, 2009 1:53 am
Hi,
I have a doubt in using the Compare function in Datastage.
This function is used as
If (Compare (Trim(EXSTCRR_TRANS.MW , '0' , 'R') ,'.' ) = 0) Then 0 Else 1
If (Compare (Trim(EXSTCRR_TRANS.MW , '0' , 'R') ,'' ) = 0) Then 0 Else 1
What's the actual output of this function in the scenario mentioned above
Also if we are using If funtion as mentioned below please explain whether is it performing AND r OR operation
If (VCZero = VIZero = VeInZero = 0) Then 0 Else 1
Regards,
Balakrishna
I have a doubt in using the Compare function in Datastage.
This function is used as
If (Compare (Trim(EXSTCRR_TRANS.MW , '0' , 'R') ,'.' ) = 0) Then 0 Else 1
If (Compare (Trim(EXSTCRR_TRANS.MW , '0' , 'R') ,'' ) = 0) Then 0 Else 1
What's the actual output of this function in the scenario mentioned above
Also if we are using If funtion as mentioned below please explain whether is it performing AND r OR operation
If (VCZero = VIZero = VeInZero = 0) Then 0 Else 1
Regards,
Balakrishna