Skip to main content

src_gl_recon_data

1. Description

src_gl_recon_data program reads the cf file, llg recon outputs and one master file and aggregates the amount grouped by src_field_cd, gl_type, src_gl_cd, gl_desc and src_ccy.

2. Program location

<installation_path>/src_gl_recon_data

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
4llg-recon-filePath to the llg-recon-file directory where the outputs from llg_gl_recon_aggr are placedtest-bed/loans_llg_gl_recon.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)

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-levelfile where logs are writteninfoerror/warn/info/debug/trace/none
3diagnostic-flagset to write diagnostics or nottruetrue/false
4default-gl-codeif no rules are satisfied, then this gl code will be used80008888
5master-filepath to master file. This master file contains glcode, tblglcode and almdesc separated by pipe.NAtest-bed/master.txt
6optionAdditional 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
1gl_amountamountamount
2gl_cdgl_codegl_cd
3ccycurrencycurr

4. Output

4.1 Output file-1 : Aggregated Output

It will be uploaded in SrcGLReconData table.

#FieldDescriptionColumnsExample
1formatted_as_on_dateDate of operation as passed through inputAsOnDate26-09-2023
2src_field_cdInput File nameSrcFileCdloans
3gl_typehardcoded in the codeGLTypeempty_string
4src_gl_cdIt takes gl_code from input-file using gl_cd field of required-field as key, if not found then takes the default llg code passed as input parameter.Then checks if masterfile path has been passed as input parameter, then take gl_code value from gl_master_map using previously generated gl_code as key.SrcGLCd1111
5gl_descgl description from alm file with gl_code as keyGLDescBorrowings -Loans
6src_ccycurrency type initialized in inputSrcCCYINR
7gl_amtif is_consolidated, then converted aggregated amount else aggregated amountSrcGLAmtLCY750000
8conv_data_gl_amtif is_consolidated, then aggregated amount else converted aggregated amountSrcGLAmtCCY15000

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:

  • gl_amt :
      Aggregated on the basis of AggregatorKeys generated, which consists of src_field_cd, gl_type, src_gl_cd, gl_desc and src_ccy

    gl_amt+ = amount
  • converted gl_amt :
       If is_consolidated is set to true, it converts the gl_amt to base_currency type and store it,
    else if is_consolidated is set to false, converted gl_amt is same as gl_amt.

5. Process configuration in streamdef table:

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