Skip to main content

llg_gl_recon_aggr

1. Description

llg_gl_recon_aggr program reads a cf file and aggregates the amount grouped by llg, gl_cd, and currency.

2. Program location

<installation_path>/llg_gl_recon_aggr

3. Input

Click ⬇️ to download the sample data.

3.1 Mandatory Parameters

#ParametersDescriptionExample
1as_on_dateThe date for which the program has to run26-09-2023
2input-filePath to the input filetest-bed/out.cf
3account-metadata-filePath to the metadata filetest-bed/om.json
4rules-file-pathPath to the rules filetest-bed/rules.txt
5req-fields-filePath to the required-field filetest-bed/req.json
6output-filePath to the output filetest-bed/op/loans
7log-filePath to write logstest-bed/op/log.txt
8diagnostics-log-filePath to write diag-logstest-bed/op/diag.txt
9exchange-rate-filePath to the exchange-rate filetest-bed/ex.txt
10src_local_ccySource local currency. 🔗INR
11db-nameDatabase name where output to be loadedORACLE/MSSQL
12schema-nameSchema name in the database where output to be loadeddbo
13connection-stringConnection credentials to connect to the databaseOracle (Username|Password|IP:PORT/Servicename) and Mssql (Server|Database|UserName|Password)
14default-llg-codeif no rules are satisfied, then this llg code will be used7000
15default-gl-codeif no rules are satisfied, then this gl code will be used8000

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
2log_levelLevel of diagnostics written to the log file.infoerror/warn/info/debug/trace/none
3diagnostic-flagFlag used to enable detailed loggingtruetrue/false
4optionAdditional parameters to be used for sqlcmd,sqlldr & sqlplus.The option parameters should be pipe seperated,containing the identification key and its value.""m,2|l,10

Required field file

#ParametersDescriptionExample
1acc_numaccount number""
2amountamount fieldnet_bal
3gl_cdgl_code fieldgl_cd
4ccycurrencycurr

4. Output

4.1 Output file-1 : Aggregated Output

It will be uploaded in LLGReconData table.

#FieldDescriptionColumnsExample
1formatted_as_on_dateDate of operation as passed through inputAs_On26-09-2023
2source_nameInput File nameSourceFileCdloans
3keys.llgllg code generated using rules fileLLGID8888
4keys.gl_cdgl_cd extracted from metadataGLCode1111
5keys.ccycurrency type initialized in inputCcyIDINR
6values.aggr_amtif is_consolidated, then converted aggregated amount else aggregated amountBalLCY750000
7conv_data.aggr_amtif is_consolidated, then aggregated amount else converted aggregated amountBalCCY15000

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:

  • aggr_amt :
      Aggregated on the basis of AggregatorKeys generated, which consists of llg, gl_cd and ccy

    aggr_amt = amount

    Note: If fieldtype is Cashflows, aggr_amt = summation of cashflow object's principal amounts.
  • converted aggr_amt :
       If is_consolidated is set to true, it converts the aggr_amt to base_currency type amount,
    else if is_consolidated is set to false, converted amount will be same as the original aggregated amount

5. Process configuration in streamdef table:

  .........
{
"processName": "LLG GL RECON",
"processId": "1",
"processBinary": "{SH_PROGRAMS}/llg_gl_recon_aggr",
"processArguments": [
"--input-file",
"{SH_CFDATA}/IND/{ddmmyyyy}/gl.cf",
"--account-metadata-file",
"{SH_RESOURCES}/IND/OPERATIONAL-FILES/CF-METADATA-FILES/gl_metadata.json",
"--rules-file-path",
"{SH_RESOURCES}/IND/OPERATIONAL-FILES/BALM-RULE-FILES/balm_gl_rules.txt",
"--req-fields-file",
"{SH_RESOURCES}/IND/OPERATIONAL-FILES/BALM-REQ-FIELD-FILES/balm_llg_gl_req_fields.json",
"--default-llg-code",
"8888",
"--default-gl-code",
"8000",
"--is-consolidated",
"false",
"--output-file",
"{SH_SUMMARYDATA}/IND/BALM/{ddmmyyyy}/llg-gl-recon/gl",
"--as-on-date",
"{AsOnDate}",
"--log-file",
"{SH_LOGS}/IND/BALM/{ddmmyyyy}/balm-gl-llg-recon-log.txt",
"--diagnostics-log-file",
"{SH_LOGS}/IND/BALM/{ddmmyyyy}/balm-gl-llg-recon-diaglog.txt",
"--src-local-ccy",
"INR",
"--db-name",
"{DB}",
"--schema-name",
"{BALM_SCHEMA}",
"--connection-string",
"{BALM_CONN_STR}",
"--exchange-rate-file",
"{SH_RESOURCES}/IND/{ddmmyyyy}/exchangeRate.txt"
],
"processDependencies": [
],
"processReport": "{SH_SUMMARYDATA}/IND/BALM/{ddmmyyyy}/llg-gl-recon/gl_llg_gl_recon-health-check-report.json",
"processType": "AGGR",
"infoLog": "{SH_LOGS}/IND/BALM/{ddmmyyyy}/balm-gl-llg-recon-log.txt",
"errorLog": ""
}
.........