How to check the condition?
Posted: Thu Mar 26, 2009 6:31 am
Like this in mapping document :-- Populate with MPS.CHN_T1.CHN_STAT_DTE if T5_CUST_MERCH.MERCH_PRNT_CHN_NBR is not null and the Chains status code is closed (MPS.CHN_T1.MCT_STAT_COD = 'C'). Otherwise set to '99991231'
I have stag variable called svChnStatDate: - If IsNull(In_Amex_Chnt1_Demo.CHN_STAT_DTE) Then '99991231' Else TimestampToString(In_Amex_Chnt1_Demo.CHN_STAT_DTE,"%yyyy-%mm-%dd %hh:%nn:%ss")
I am trying to write a condition for this T5_CUST_MERCH.MERCH_PRNT_CHN_NBR is not null and the Chains status code is closed (MPS.CHN_T1.MCT_STAT_COD = 'C'). Otherwise set to '99991231'
like this
If IsNull(In_Amex_Chnt1_Demo.MERCH_PRNT_CHN_NBR) Then
Str('9999123') Else If (In_Amex_Chnt1_Demo.MCT_STAT_COD = 'C')
Then Str('9999123') Else svChnStatDate[1,4]:svChnStatDate[6,2]:svChnStatDate[9,2]
Please help me on this?
I have stag variable called svChnStatDate: - If IsNull(In_Amex_Chnt1_Demo.CHN_STAT_DTE) Then '99991231' Else TimestampToString(In_Amex_Chnt1_Demo.CHN_STAT_DTE,"%yyyy-%mm-%dd %hh:%nn:%ss")
I am trying to write a condition for this T5_CUST_MERCH.MERCH_PRNT_CHN_NBR is not null and the Chains status code is closed (MPS.CHN_T1.MCT_STAT_COD = 'C'). Otherwise set to '99991231'
like this
If IsNull(In_Amex_Chnt1_Demo.MERCH_PRNT_CHN_NBR) Then
Str('9999123') Else If (In_Amex_Chnt1_Demo.MCT_STAT_COD = 'C')
Then Str('9999123') Else svChnStatDate[1,4]:svChnStatDate[6,2]:svChnStatDate[9,2]
Please help me on this?