hi,
i have been asked to do the following
…...store CurrencyCodePurchased & CurrencyCodeSold as temp variables
…..perform a lookup of the currency in SecurityCaption11 to the XrateNotional file Base field (new)
…..starting with the first currency code in that file, find the first code that is either CurrencyCodePurchased or CurrencyCodeSold
…..if the match is CurrencyCodePurchased, take the rate field and multiply this by the BaseCurrencyPurchased (in 167) amount and populate to NotionalAmount
…..if the match is CurrencyCodeSold, take the rate field and multiply this by the BaseCurrencySold amount and populate to NotionalAmount
first part i need to get which i dont know how to is the varibale part
Currency CurrencyCodePurchased CurrencyCodeSold
XPD US$ JPY
XAU US$ JPY
XPT JPY £
XAG JPY CHF
KWD
BHD
OMR
LVL
JOD
GBP
KYD
EUR
CHF
JPY
so i need to loop through the currency column in first table and then read the value from that table to the CurrencyCodePurchased then the CurrencyCodesold column until i find a match. i need to do it row by row so that both the CurrencyCodePurchased then the CurrencyCodesold columns are check by the value from the currency column until a match is found.
is this possible and how do i go about doing it