i have one query giving me "OPEN" AND CLOSED" acounts.
the first part of query giving "open" Accounts
union all
Second part of query giving "closed"accounts
The query contains the column Account_status determine "OPEN" and "CLH" account and also having other column determine Account_number.
My jobs design
db2 stage.........xfm.................file....
output i required:
if account_status is open and closed for same account number then give only OPEN Account number and if account_status is closed (no open) then closed account number only
i tried by giving the constraint in the transformer stage not getting the result
Code: Select all
If lnk_ACCOUNT_NUMBER.ACCT_STATUS='OPN' OR lnk_ACCOUNT_NUMBER.ACCT_STATUS='CLH' Then lnk_ACCOUNT_NUMBER.ACCT_STATUS='OPN' Else IF lnk_ACCOUNT_NUMBER.ACCT_STATUS='CLH' THEN lnk_ACCOUNT_NUMBER.ACCT_STATUS='CLH' ELSE lnk_ACCOUNT_NUMBER.ACCT_STATUS='OPN'