Vous êtes sur la page 1sur 1

SUBROUTINE SAMPLE

$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_AA.LOCAL.COMMON
$INSERT I_F.AA.TERM.AMOUNT

GOSUB INIT
GOSUB MAIN
RETURN

INIT:

* TO GET ARRANGEMENT DETAILS

ARRANGEMENT.ID = c_aalocArrId
AA.ARRANGEMENT.REC = c_aalocArrangementRec
AA.ARR.ACT.ID = c_aalocArrActivityId
CURR.ACTIVITY = c_aalocActivityId
EFFECTIVE.DATE = c_aalocActivityEffDate
RETURN

MAIN:

***** *********************************************
idPropertyClass = 'TERM.AMOUNT'
idProperty = ''
effectiveDate = c_aalocActivityEffDate
returnIds = ''
returnConditions = ''
returnError = ''
Y.ARR.ID = c_aalocArrId

CALL
AA.GET.ARRANGEMENT.CONDITIONS(Y.ARR.ID,idPropertyClass,idProperty,effectiveDate,ret
urnIds,returnConditions,returnError)
R.AA.TERM.AMOUNT = RAISE(returnConditions)
Y.COLLATERAL.ID = R.AA.TERM.AMOUNT<AA.AMT.LOCAL.REF,Y.COLL.REF.POS>
Y.TERM.AMOUNT = R.AA.TERM.AMOUNT<AA.AMT.AMOUNT>

RETURN

LOCAL.FIELD.LOCATE:
* ----------------------

APPL.NAME = 'AA.PRD.DES.TERM.AMOUNT'
Y.LOC.FIELDS ='LT.COLL.REF'
CALL MULTI.GET.LOC.REF(APPL.NAME,Y.LOC.FIELDS,FLD.POS)
Y.COLL.REF.POS = FLD.POS<1,1>

RETURN

END