Professional Documents
Culture Documents
Warning: This document, is protected by copyright law and international treaties. No part of this
document may be reproduced or transmitted in any form or by any means, electronic or mechanical,
for any purpose, without the express written permission of TEMENOS Holdings NV Unauthorized
reproduction or distribution of this presentation or any portion of it, may result in severe civil and
criminal penalties, and will be prosecuted to the maximum Copyright © 2004under
extent possible TEMENOS HOLDINGS
applicable law.” NV
Information in this document is subject to change without notice.
1
Agenda
2
Prerequisites
3
Why NOFILE Enquiry ?
Routine
4
Setting up the ENQUIRY Application
ENQUIRY : FILE.NAME Field - Mandatory
Define it in STANDARD.SELECTION
5
Setting up the ENQUIRY Application
6
Setting up a NOFILE Enquiry
STANDARD.SELECTION record
ENQUIRY record
7
NOFILE Enquiry Example
Customer Report
Date : <Today’s date> User : <User Id of the user executing the enquiry>
Customer Number : <Customer ID>
Account No Total Fwd Cr Total Fwd Dr Total Cr Int Total Dr Int
XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX
XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX
XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX
A customer, at any point in time, may want to know the total of his
Forward credit movements (Money that is due to the customer at a future
date)
Forward debit movements (Money that the customer is liable to pay at a
future date)
Accrued interest that is due to the customer (total)
Accrued interest that the customer is liable to pay (total)
8
Files To Be Used
9
Solution 1 - Algorithm
AC1FMAC2FMAC3FMAC4
AcIdFMCoCodeFMLCYAmtFMTranCodeFMCusIDFM……………….
10
Solution 1 - Algorithm
CrIntDateFMCrNoOfDaysFMCrIntRateFMCrIntAmtFMCrIntCategFM…..TotalInterest
PrFstDateFMPrLstDtFMDrIntDateFMDrNoOfDaysFM..TotalInterest
11
Routine for the NOFILE Enquiry
SUBROUTINE TRG.CUS.REPORT(AC.DET.ARR)
GOSUB INITIALISATION
GOSUB OPEN.FILES
GOSUB PROCESS
RETURN
12
Routine for the NOFILE Enquiry
*--------------*
INITIALISATION:
*--------------*
FN.CUSTOMER.ACCOUNT = 'F.CUSTOMER.ACCOUNT'
F.CUSTOMER.ACCOUNT = ''
FN.ACCT.ENT.FWD = 'F.ACCT.ENT.FWD'
F.ACCT.ENT.FWD = ''
FN.STMT.ENTRY = 'F.STMT.ENTRY'
F.STMT.ENTRY = ''
FN.ACCR.ACCT.CR = 'F.ACCR.ACCT.CR'
F.ACCR.ACCT.CR = ''
FN.ACCR.ACCT.DR = 'F.ACCR.ACCT.DR'
F.ACCR.ACCT.DR = ''
RETURN
13
Routine for the NOFILE Enquiry
*----------*
OPEN.FILES:
*----------*
CALL OPF(FN.CUSTOMER.ACCOUNT,F.CUSTOMER.ACCOUNT)
CALL OPF(FN.ACCT.ENT.FWD,F.ACCT.ENT.FWD)
CALL OPF(FN.ACCR.ACCT.CR,F.ACCR.ACCT.CR)
CALL OPF(FN.STMT.ENTRY,F.STMT.ENTRY)
CALL OPF(FN.ACCR.ACCT.DR,F.ACCR.ACCT.DR)
RETURN
*-------*
PROCESS:
*-------*
CALL
F.READ(FN.CUSTOMER.ACCOUNT,CUSTOMER.NO,CUS.ACC.REC,F.CUSTOMER.ACCOUNT,CUS.ACC.R.ERR)
14
Routine for the NOFILE Enquiry
LOOP
WHILE AC.ID:AC.POS
GOSUB CALC.ENT.FWD
GOSUB CALC.ACCR.INT
AC.DET.ARR<-1> = AC.ID:"*":CR.AMT:"*":DR.AMT:"*":CR.TOT.INT:"*":DR.TOT.INT
REPEAT
RETURN
15
Routine for the NOFILE Enquiry
*------------*
CALC.ENT.FWD:
*------------*
LOOP
REMOVE ACCT.ENT.ID FROM ACCT.ENT.REC SETTING ACCT.ENT.POS
WHILE ACCT.ENT.ID:ACCT.ENT.POS
CALL F.READ(FN.STMT.ENTRY,ACCT.ENT.ID,STMT.ENTRY.REC,F.STMT.ENTRY,STMT.ENTRY.R.ERR)
ACCT.ENT.AMT = STMT.ENTRY.REC<AC.STE.AMOUNT.LCY>
IF ACCT.ENT.AMT LT 0 THEN
DR.AMT += ABS(ACCT.ENT.AMT)
END ELSE
CR.AMT += ACCT.ENT.AMT
END
16
Routine for the NOFILE Enquiry
REPEAT
RETURN
*-------------*
CALC.ACCR.INT:
*-------------*
CR.TOT.INT = AC.CR.REC<IC.ACRCR.TOTAL.INTEREST>
CALL F.READ(FN.ACCR.ACCT.DR,AC.ID,AC.DR.REC,F.ACCR.ACCT.DR,ACCT.DR.R.ERR)
DR.TOT.INT = AC.DR.REC<IC.ACRDR.TOTAL.INTEREST>
RETURN
END
17
STANDARD SELECTION Record
18
STANDARD SELECTION Record
Routine Type
Selection Type
19
Enquiry Set Up
20
ENQUIRY Record
21
Executing The Enquiry
Before the Enquiry results are displayed, since we have defined a selection
field, this appears for the user to input the CUSTOMER ID to be manipulated
22
Sample Output
23
Summary
24
Summary (Cont.)
Selection fields defined, can be used within the routine using the
COMMON variables D.FIELDS and D.RANGE.AND.VALUES
defined in I_ENQUIRY.COMMON
25