Skip to main content

mis_cat_dep

1.Description

Tis program reads input file, cust_master_file, rbi_cat_def_file, rbi_cat_map_file and aggregates the data based on ca,sa,td,depth,order,aggr_key.

2. Input

2.1 Mandatory Parameters

#ParametersDescriptionExample
1as_on_dateThe date for which the program has to run26-09-2023
2process-configPath to process config file that needs to be processedconfigs/process.json
3connection-stringConnection credentials to connect to the databaseOracle (Username|Password|IP:PORT/Servicename)
4display-currencyThe display currencyUSD
5log-filePath to write logslogs/application.log
6diagnostics-log-filePath to write diagnostics logslogs/diagnostics.log

2.2 Non Mandatory Parameters

#ParametersDescriptionDefault valueExample
1log-levelLevel of diagnostics written to the log fileinfodebug
2diagnostics-flagFlag to enable/disable performance diagnostics in the diagnostics log filefalsetrue

3. Output

The output for each account in each file is of the format

output_file|as_on_date|disp_ccy|aggr_key|rbi_cat_name|ca_amt|sa_amt|td_amt|depth|order|is_highlight|

3.1 Output Derivation Logic

For each account:
>the aggr_key is fetched from the master_file based on cust_id.
>if rbi_cat_depth_order has rbi_cat_id then
-rbi_cat_name value is stamped
-depth is value stamped
-order is value stamped
-is_highlight is value stamped
>else
-rbi_cat_name value is stamped as empty
-depth is value stamped as 0
-order is value stamped as 0
-is_highlight is value stamped as empty

4. Process configuration in streamdef table:

{
"processName": "mis_cat_dep_2",
"processId": "1",
"processBinary": "{SH_PROGRAMS}/mis_cat_dep_2_data",
"processArguments": [
"--process-config",
"${PROCESS_CONFIG}",
"--log-file",
"${LOG_FILE}",
"--diagnostics-log-file",
"${DIAGNOSTICS_FILE}",
"--display-ccy",
"RUP",
"--as-on-date",
"31-03-2020",
"--log-level",
"info",
"--diagnostics-flag",
"false",
"--connection-string",
"{CONN_STR}"
],
"processDependencies": [],
"processReport": "{SH_SUMMARYDATA}/IND/BALM/{ddmmyyyy}/summary-mis-cat-dep-report.json",
"processType": "",
"infoLog": "{SH_LOGS}/IND/BALM/{ddmmyyyy}/summary-mis-cat-dep-log.txt",
"errorLog": ""
}