Skip to main content

top_n_borrowers

1.Description

This program takes cf files and ucic_master2.txt generated by customer_master_gen to give two different top_n files.

2.1 Process Config Fields

top_n_borr_config

2.1.1 Additional Input file

This file contains:

#FileTypeDescriptionRequired
1Output Metadata filesOutput MetadataProvide the path to the output metadata files of SA,CA,TD and RD.true
2UCICReferenceOutput of customer_master_gentrue
3Exchange RateExchangeRateExchange_rate filetrue

2.2 Process Arguments

top_n_borr_pa

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

2.2.1 Mandatory Parameters
#ParametersDescriptionExample
1process_configPath to process config file that needs to be processed/path/to/process_config.json
2as_on_dateThe date for which the program has to run2024-11-28
3log_file_pathPath to write logstest-bed/log.txt
4diagnostics_file_pathPath to write diagnostics logstest-bed/diag_log.txt
5country_cdThis gives the country codeUS
6base_ccyBase currencyINR
7connection_stringConnection String JSON DataConnection string should be in json format
8top_cust_countNumber of top customers10
2.2.2 Non-Mandatory Parameters
#ParametersDescriptionDefault ValueExample
1log_levelLevel of diagnostics written to the log fileinfodebug
2is_perf_diagnostics_enabledFlag to enable performance diagnosticsfalsetrue
3prod_typeProduct type (optional)""Retail
4optionPipe-separated key-value pairs""key1,value1
5is_consolidatedFlag to indicate if currency is consolidatedfalsetrue

2.3 Derivations

top_n_borr_der

3. Output and data loading to DB

This program generates a total of two files:

1) top_n_borr.txt: This file data is loaded into TopNAdvCust table.

2) top_n_borr_adv.txt: This file data is loaded into TopNAdvCustAcc table.