Skip to main content

balm_aggr_dim_nm_2

1. Description

Balm_aggr_dim_nm_2 program reads a cf file which is in metadata format and aggregates the principal amount and rate principal amount weighted grouped by llg, currency, cashflow type and item id for the non maturity products like current account, saving account, etc.

Note: If item_id is not provided, then this program works similar to balm_aggr_nm_2 program.🔗

2. Program location

<installation_path>/balm_aggr_dim_nm_2

3.Screen Configuration

3.1 Process Config Fields

balm_aggr_dim_nm_config_image Here enter the base input file and additional inputs required for the setup.

3.1.1 Additional Input file 🔗
#FileTypeDescription
1AGGR_RuleFunction callCalls getrules function which downloads the file to the provided path. The function takes four parameters: fileid, rule_type, connection_string to database, path to download the rule file.
2Exchange_RateFile_pathProvide the path to the exchange rate file.

3.2 Process Derivations

balm_aggr_dim_nm_derivations_image

Here select the aggregator in the first field. The dropdown will show either maturity_aggr or nonmat_aggr depending on the type of source. Map all the values accordingly to the requirements.Account Number,Concat, Cashflows and Institution has to be filled mandatorily.

3.2.1 Derivation desc
#ParametersDescriptionExample
1concatany non empty stringbranch_cd
2prin_amtprincipal amountnet_bal
3currcurrencycurr
4countrycountry""
5acc_noaccount numbergl_cd
6int_rtinterest rate""
7item_idItem id for aggregation purpose. If not provided, then it will take "NA" as value and won't consider item_id for aggregation and the program will work similar to balm_aggr_nm program.branch_cd
8npanpa field""

3.3 Process Arguments

balm_aggr_dim_nm_pa_image

Here enter the process arguments to be passed to the program. The mandatory and non-mandatory fields are given below.

3.3.1 Mandatory Parameters
#ParametersDescriptionExample
1src_local_ccySource local currency. 🔗INR
2display_local_ccyDisplay local currency. 🔗RUP
3consol_ccyConsolidated currency. 🔗INR
4default_llg_codeIf no rules are satisfied, then this llg code will be used.08888
5dim_idIt is the dimentional id. It will remain same for all inputs. It is used for stamping purpose only.SEG
3.3.2 Non Mandatory Parameters
#ParametersDescriptionDefault valueExample
1is_consolidatedIs consolidated flag is used to define the currency type of given amount in input field. If is_consolidated flag is set, then the amount given is of consolidated type else it is in the curr input type.🔗falsetrue or false
2is_amt_absThe flag that decides whether amount should be taken as absolute or not.truetrue or false
3log_levelLevel of diagnostics written to the log file.infoerror/warn/info/debug/trace/none
4is_perf_diagnostics_enabledThe flag that decides whether performance diagnostics will be written to the diagnostics log file.falsetrue or false
5npa-valuesNPA values separated by comma. If any of the value is found for the given npa field(passed in required field), then rate is taken as 0 for that account.""A123,B123
6interest_decimal_precisionThe value which decides the interest rate round off precision.44
7amount_decimal_precisionThe value which decides the amount value round off precision.22

Click ⬇️ to download the sample data.

4. Output

4.1 Output file-1 : Aggregated Output

It will be uploaded in DimMasterProductTotals table.

#FieldDescriptionColumnsExample
1llg.categoryLLG code as per the rule satisfied or default value. 🔗SubType_ID8888
2llg.item_idExtra field for aggregation purpose.If not provided, then it will take "NA" as value and won't consider item_id for aggregation and the program will work similar to balm_aggr_m program. If provided, lets say item_id=acc_no, then the aggreagtion will be based on acc_no alongside with llg, currency and cashflow type.Item_ID1018
3llg.dim_idDimentional id for stamping purpose only.Dim_IDSEG
4as_on_dateDate of operation as passed through input.As_On03-10-2023
5llg.currencyCurrency type for the amount displayed in the subsequent columns.Currency_IDINR
6ALLHardcodedSLRorIRSALL
7llg.cf_typeOutflow or Inflow. 🔗CashflowTypeO or I
8tot_prin_amtTotal principal amount. 🔗Amount257369007.28
9rt_prin_amt_weightedRate principal amount weighted. 🔗InterestRate0.0000

4.2 Output file-2 : Health report

The health check report gives summary about the processed accounts such as success counts, failed counts, etc.🔗

Output derivation logic:

  • tot_prin_amt :
    Aggregated on the basis of LLGkey generated(consisting of llg.currency, llg.category and llg.cf_type) and item_id.

    tot_prin_amt = Σ prin_amt

    Note: If is_amt_abs is set, then before summation take absolute value of principal amount.

  • rt_prin_amt_weighted :
    Aggregated on the basis of LLGkey generated(consisting of llg.currency, llg.category and llg.cf_type) and item_id.

    rt_prin_amt_weighted = Σ prin_amt * int_rt / tot_prin_amt

    Note: If is_amt_abs is set, then before summation take absolute value of principal amount and interest rate.