Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Objectives
Session 1
Introduction to Nofile Enquiry & creation of Standard Selection
Session 2
Creation of NOFILE Enquiry
Session 3
Examples
Session 4
Workshops
Why NOFILE Enquiry
FILE.NAME – Holds the T24 application from where data is going to be extracted
FIXED.SELECTION – Allows the user to filter data before its displayed (same for all
users who execute the enquiry)
Before data is actually displayed, all the ENQUIRY application has, are a list of ID’s
that satisfy all the filters mentioned above
Sli
de
Setting Up An ENQUIRY Record
A NOFILE enquiry does not have an associate file, so it does not have field
definitions and hence no Standard Selection record
Try to create a Standard Selection record with an ID of your choice. Does T24 allow
you to do so ?
Sli
de
How Does The ENQUIRY Application Work
If we take time to understand these validations, you will see that they are very
meaningful
An application that stores data, must have fields and hence it will have a standard
selection record
Sli
de
Creating NoFile Enquiry
So now that we know the problems we will face, lets see what a NOFILE enquiry is
made up of
Sli
de
Create an Enquiry to Display the following details
Total Fwd Cr – Total of the forward credit movements (Money that is due to the
customer at a future date)
Total Fwd Dr – Total of the forward debit movements (Money that the customer is
liable to pay at a future date)
Total Dr Interest - Accrued interest that the customer is liable to pay (total)
Sli
de
Solution – jBASE BASIC Routine
The details that must be displayed in the report are picked up from multiple
applications
Sli
de
Solution – jBASE BASIC Routine
ID is CUSTOMER
Sli
de
Solution – jBASE BASIC Routine
ACCT.ENT.FWD
ID is ACCOUNT
Sli
de
SYS.FIELD.NO and USR.FIELD.NO
To access the customer number input by the user, use the common
variables in I_ENQUIRY.COMMON
CUSTOMER.ID EQ 1234
D.FIELDS<1> = CUSTOMER.ID
D.LOGICAL.OPERANDS<1> = EQ
D.RANGE.AND.VALUE<1> = 1234
Sli
de
Solution - jBASE Basic Code
*SUBROUTINE TO WRITE A NOFILE ENQUIRY
SUBROUTINE TEST.NOFILE(AC.DETAILS)
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.CUSTOMER.ACCOUNT
$INSERT I_F.STMT.ENTRY
$INSERT I_F.ACCR.ACCT.CR
$INSERT I_F.ACCR.ACCT.DR
$INSERT I_ENQUIRY.COMMON
GOSUB INIT
GOSUB OPENFILES
GOSUB PROCESS
RETURN
Sli
de
Solution - jBASE Basic Code
INIT: C.ID = ’’
Sli
de
Solution - jBASE Basic Code
FN.INT.CR = 'F.ACCR.ACCT.CR'
F.INT.CR = '‘
CALL OPF(FN.INT.CR,F.INT.CR)
FN.INT.DR = 'F.ACCR.ACCT.DR'
F.INT.DR = '‘
CALL OPF(FN.INT.DR,F.INT.DR)
RETURN
PROCESS:
CUSTOMER.NO = D.RANGE.AND.VALUE<CUS.POS>
END
CALL F.READ(FN.CA,CUSTOMER.NO,R.CA,F.CA,CA.ERR)
NO.OF.AC = DCOUNT(R.CA,FM)
Sli
de
Solution - jBASE Basic Code
NO.OF.AC = DCOUNT(R.CA,FM)
FOR I = 1 TO NO.OF.AC
AC.ID = FIELD(R.CA,@FM,I)
CALL F.READ(FN.FWD,AC.ID,R.FWD,F.FWD,FWD.ERR)
LOOP
WHILE ST.ID:FWD.POS
CALL F.READ(FN.ST,ST.ID,R.ST,F.ST,ST.ERR)
STMT.AMOUNT = R.ST<AC.STE.AMOUNT.LCY>
IF STMT.AMOUNT LT 0 THEN
Sli
de
Solution - jBASE Basic Code
END ELSE
END
REPEAT
CALL F.READ(FN.INT.CR,AC.ID,R.AC.CR.REC,F.INT.CR,ACCT.CR.ERR)
CR.INT = R.AC.CR.REC<IC.ACRCR.TOTAL.INTEREST>
CALL F.READ(FN.INT.DR,AC.ID,R.AC.DR.REC,F.INT.DR,ACCT.DR.ERR)
DR.INT = R.AC.DR.REC<IC.ACRDR.TOTAL.INTEREST>
AC.DETAILS<-1> =
AC.ID:"*":DR.AMT:"*":CR.AMT:"*":DR.INT:"*":CR.INT
NEXT I
RETURN
Sli
de
jBASE Debug mode
Sli
de
NOFILE – ENQUIRY record
Sli
de
NOFILE – ENQUIRY record
A valid application name should be given in the field FILE.NAME which is checked
against STANDARD.SELECTION (SS) application
Sli
de
NOFILE – ENQUIRY record
What could be the way out to overcome these validations in case of a Nofile
enquiry?
Sli
de
NOFILE – ENQUIRY record
Sli
de
Solution – STANDARD.SELECTION
Sli
de
Solution – ENQUIRY
Sli
de
Solution – ENQUIRY
Sli
de
Solution – ENQUIRY
Sli
de
Executing The Enquiry
Sli
de
Enquiry Output
Sli
de
WorkShop 1
Create a nofile enquiry which displays the FT id, Debit account name,
Customer Mnemonic, Credit Account name, customer name.
Routine
Routine
Routine
Standard Selection
Enquiry
Result
Error Shots
Error Shots
Error Shots
www.capgemini.com/financialservices