Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Flow of Enquiry
Extract the File Name from the Enquiry Application
– Note that it is a single value field. Therefore only
one file name can be entered.
Eg.
SUBROUTINE NOFILE.ENQ.WS(Y.RETURN)
Concat file
Id is the Customer Id
Contains a list of all accounts pertaining to a Customer
In a Concat file, multi values are delimited with a ‘Field
Marker’
Concat file
Id is the Customer Id
Contains a list of all LD and MM contract ids of a particular
Customer
In a Concat file, multi values are delimited with a ‘Field
Marker’
STEP 1
Write routine that displays the customer id and their credit
balances.
Enquiry name should be prefixed with ‘E’
Example: E.CUS.CREDIT.BAL
CustomerID*AmountFMCustomerID*AmountFM
CustomerID*Amount
OPENFILES:
CALL OPF(FN.CUS.ACC,F.CUS.ACC)
CALL OPF(FN.ACC,F.ACC)
CALL OPF(FN.LD,F.LD)
CALL OPF(FN.MM,F.MM)
CALL OPF(FN.LMM.CUS,F.LMM.CUS)
RETURN
PROCESS:
SEL.CMD = “SELECT “:FN.CUS.ACC
CALL EB.READLIST(SEL.CMD,SEL.LIST,’’,NO.OF.REC,RET.CODE)
LOOP
REMOVE Y.CUS.ID FROM SEL.LIST SETTING CUS.ACC.POS
WHILE Y.CUS.ID:CUS.ACC.POS
CALL
F.READ(FN.CUS.ACC,Y.CUS.ID,R.CUS.ACC.REC,F.CUS.ACC,CUS.ACC.ERR)
STEP 3