You are on page 1of 4

1. SYSTEM.CLEAR.

FILES
2. Routine to create account.closure records in nau file - MASTER.AC.CLOSE
MASTER.AC.CLOSE
PROGRAM MASTER.AC.CLOSE
*
DEBUG
OPEN "FMCU.ACCOUNT" TO F.AC ELSE
PRINT 'CANNOT OPEN FMCU.ACCOUNT'
RETURN
END
*
OPEN "FMCU.ACCOUNT.CLOSURE$NAU" TO F.AC.CLOSE ELSE
PRINT 'CANNOT OPEN FMCU.ACCOUNT.CLOSURE$NAU'
RETURN
END
*
AC.CLOSE.REC = ''
AC.CLOSE.REC<23> = '90'
AC.CLOSE.REC<34> = "Y"
*
SELECT F.AC
LOOP
READNEXT AC.ID ELSE AC.ID = ''
WHILE AC.ID NE ''
PRINT "PROCESSING AC.ID = " :AC.ID
WRITE AC.CLOSE.REC TO F.AC.CLOSE, AC.ID
REPEAT
STOP
END

3. EBS.AUTO.FUNCTION to commit and authorise account closure records


R11CONV01
EBS AUTO FUNCTION SEE
FILE.NAME......... ACCOUNT.2898
PGM/FILE TYPE H/FIN
-----------------------------------------------------------------------------1. 1 SELECTION...... WITH RECORD.STATUS EQ CLOSED
1. 2 SELECTION...... WITH MNEMONIC NE ''
2 FUNCTION.......... I
3 SAMPLE.SIZE....... 1
4. 1 INPUT.BUFFER... ID
4. 2 INPUT.BUFFER... F5
7 VERSION........... ,
16. 1 DATE.TIME...... 22 JUN 12 12:21
17 AUTHORISER........ 2898_INPUTTER
18 CO.CODE........... AU-002-0001
-----------------------------------------------------------------------------22 JUN 2012 12:32:37 USER (01 SEP) INPUTTER
[2898,INPAGE 1
ACTION
AWAITING PAGE INSTRUCTIONS

4. Ensure Internal Accounts are not closed. Review Internal Accounts and ensure
they are opened again - they are closed and history restored to open again to
ensure balances are clear and we start off on a clean note.
R11CONV01

EBS AUTO FUNCTION SEE

FILE.NAME......... ACCOUNT.CLOSURE.9213 PGM/FILE TYPE U/FIN


-----------------------------------------------------------------------------2 FUNCTION.......... I
3 SAMPLE.SIZE....... 1
4. 1 INPUT.BUFFER... ID
4. 2 INPUT.BUFFER... Y
4. 3 INPUT.BUFFER... F5
4. 4 INPUT.BUFFER... Y
7 VERSION........... ,
16. 1 DATE.TIME...... 22 JUN 12 09:18
17 AUTHORISER........ 841_INPUTTER
18 CO.CODE........... AU-002-0001
-----------------------------------------------------------------------------22 JUN 2012 12:33:33 USER (01 SEP) INPUTTER
[2898,INPAGE 1
ACTION
AWAITING PAGE INSTRUCTIONS

5. Clear the table AC.SUB.ACCOUNT


jsh RBK_R11_CONV01 ~ -->SELECT FMCU.AC.SUB.ACCOUNT
49 Records selected
>DELETE FMCU.AC.SUB.ACCOUNT

49 record(s) deleted.

6. Ensure no customer accounts exist in the ACCOUNT table.


LIST FMCU.ACCOUNT WITH CUSTOMER NE '' ONLY

PAGE

1 11:07:10

25 JUN 2012

PAGE

1 11:09:01

25 JUN 2012

PAGE

1 11:07:58

25 JUN 2012

PAGE

1 11:08:15

25 JUN 2012

PAGE

1 11:08:30

25 JUN 2012

@ID................
No Records Listed
LIST FMCU.ACCOUNT$NAU WITH CUSTOMER NE '' ONLY
@ID................
No Records Listed
jsh RBK_R11_CONV01 ~ -->SELECT FMCU.ACCOUNT$HIS WITH CUSTOMER NE '' ONLY
36396 Records selected
>DELETE FMCU.ACCOUNT$HIS
36396 record(s) deleted.
jsh RBK_R11_CONV01 ~ -->SELECT FMCU.ACCOUNT$HIS WITH CUSTOMER NE '' ONLY
No Records selected

7. Ensure no Deposits exist in the AZ.ACCOUNT table.


LIST FMCU.AZ.ACCOUNT ONLY
@ID.............
No Records Listed
LIST FMCU.AZ.ACCOUNT$NAU ONLY
@ID.............
No Records Listed
LIST FMCU.AZ.ACCOUNT$HIS ONLY
@ID.............
No Records Listed

8. Ensure no Limits exist in the LIMIT table.


jsh RBK_R11_CONV01 ~ -->SELECT FMCU.LIMIT
No Records selected
jsh RBK_R11_CONV01 ~ -->SELECT FMCU.LIMIT$NAU
No Records selected
jsh RBK_R11_CONV01 ~ -->SELECT FMCU.LIMIT$HIS
No Records selected

9. Customer related tables to be cleared next. Attached below is the list of tables
having classification as CUS on the FILE.CONTROL table. The routine prompts for
table to be cleared, care was taken to clean only relevant tables. Not all tables
in the list were cleared.

Customer Tables.txt

MASTER.CLR.CUS.TABLES
*----------------------------------------------------------------------------* <Rating>469</Rating>
*----------------------------------------------------------------------------SUBROUTINE MASTER.CLR.CUS.TABLES

$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.FILE.CONTROL
*
F.FILE.CON = "F.FILE.CONTROL"
FV.FILE.CON = ""
CALL OPF(F.FILE.CON,FV.FILE.CON)
*
SEL.LIST = '' ; SEL.NO = ''
*
FILE.TYPES<-1> = "$NAU"
FILE.TYPES<-1> = "$HIS"
FILE.TYPES<-1> = ""
*
SEL.CMD = "SSELECT " : F.FILE.CON : " WITH CLASSIFICATION EQ 'CUS'"
EXECUTE SEL.CMD CAPTURING CAP.VALS RETURNING SEL.NO
READLIST SEL.LIST ELSE SEL.LIST = ''
IF NOT(SEL.LIST) THEN RETURN
*
LOOP
REMOVE SEL.ID FROM SEL.LIST SETTING POS
WHILE SEL.ID:POS
*
F.FILE.TO.CLR = '' ; FV.FILE.TO.CR = '' ; SEL.CLR = ''
CLR.LIST = '' ; CLR.NO = '' ; USR.ANS = ''
CLR.CMD = ''
*
FOR I = 1 TO DCOUNT(FILE.TYPES,FM)
F.FILE.TO.CLR = "F." : SEL.ID : FILE.TYPES<I>
GOSUB OPN.FILE
*
IF NOT(ETEXT) THEN
SEL.CLR = "SELECT " : F.FILE.TO.CLR
EXECUTE SEL.CLR CAPTURING CLR.VALS RETURNING CLR.NO
READLIST CLR.LIST ELSE CLR.LIST = ''
IF CLR.LIST THEN
PRINT "Table " : F.FILE.TO.CLR : " has " : CLR.VALS
PRINT "OK to Clear (Y/N)?"
INPUT USR.ANS
IF USR.ANS = 'Y' THEN
CLR.CMD = "CLEAR.FILE " : F.FILE.TO.CLR
PRINT "EXECUTING " : CLR.CMD
EXECUTE CLR.CMD CAPTURING CAP.CLR.VALS RETURNING RET.CLR.VALS
END
END ELSE
PRINT "Table " : F.FILE.TO.CLR : " has no records."
END
END
NEXT I
*
REPEAT
*
RETURN
*
OPN.FILE:
*
ETEXT = ''
F.FILE.TO.CLR<-1> = "NO.FATAL.ERROR"
FV.FILE.TO.CLR = ""
CALL OPF(F.FILE.TO.CLR,FV.FILE.TO.CLR)
RETURN
*
RETURN
END

10. Clear Rubik specific transaction files.


11. Ran the COB crashes on rubik reports, print statement and observed some records on
ac.charge.request
11. clear AC.CHARGE.REQUEST.
12. Clear EXCEPTION.LOG.FILE
jsh RBK_R11_CONV01 ~ -->SELECT F.EXCEPTION.LOG.FILE
7795 Records selected
>DELETE F.EXCEPTION.LOG.FILE
7795 record(s) deleted.

13. Clear ACCOUNT.STATEMENT

jsh RBK_R11_CONV01 ~ -->SELECT FMCU.ACCOUNT.STATEMENT


7955 Records selected
>DELETE FMCU.ACCOUNT.STATEMENT
7955 record(s) deleted.
jsh RBK_R11_CONV01 ~ -->SELECT FMCU.ACCOUNT.STATEMENT$HIS
2230 Records selected
>DELETE FMCU.ACCOUNT.STATEMENT$HIS
2230 record(s) deleted.

13. Run a COB

14. Remove the ACCOUNT.CLOSURE records


jsh RBK_R11_CONV01 ~ -->SELECT FMCU.ACCOUNT.CLOSURE
7946 Records selected
>DELETE FMCU.ACCOUNT.CLOSURE
7946 record(s) deleted.

15. Remove the FMCU.ALTERNATE.ACCOUNT records.


jsh RBK_R11_CONV01 ~ -->SELECT FMCU.ALTERNATE.ACCOUNT
16373 Records selected
>DELETE FMCU.ALTERNATE.ACCOUNT
16373 record(s) deleted.

16. Remove the FMCU.DE.ADDRESS records pertaining to AU0020001.


jsh RBK_R11_CONV01 ~ -->SELECT F.DE.ADDRESS WITH @ID LIKE AU002...
7715 Records selected
>DELETE F.DE.ADDRESS
7715 record(s) deleted.

17. Remove DE.ROUTING records pertaining to AU0020001.


jsh RBK_R11_CONV01 ~ -->SELECT F.DE.ROUTING LIKE AU0020001....
11 Records selected
>DELETE F.DE.ROUTING
11 record(s) deleted.

You might also like