Previous Topic: Listing Transactions not on the Master FileNext Topic: Using the Match-file Facility for Table Initialization


Demonstration

Objective

This report lists transactions not on the master file. Multiple transactions are matched against a single-entry master file.

Procedure

The contents of the input buffer for the run (K denotes master records kept in the input buffer):

Master file

Transaction file

(SYS010)

(SYS011)

 

15060

 

15060

 

15060

15999

 

16070

16070

19235

19235

21056

21056

23055

23055

23055K

23055

23055K

23055

27777

 

29557

29557

30115K

30115

30115K

30115

30115K

31113

30115K

31113

31275

31275

32115

 

33470

33470

33470K

33470

34440

34440

34440K

34440

34440K

34440

34440K

34440

34440K

36682

69876

69876

69876K

69876

99083

99083

99083K

99083

Complete Code

 col. 2
 ▼
 IN  80 MK=M-ACCOUNT MB=KEEP
 REC M-ACCOUNT     1    5           'ACCOUNT'

 IN 80 MK=T-ACCOUNT
 REC T-ACCOUNT     1     5          'ACCOUNT'
 REC T-TRANS-IND   6     1          'DEPOSIT/' 'WITHDRAWAL'
 REC T-TRANS-AMT   7    11  2 DP=2  'AMOUNT OF' 'TRANSACTION'
 REC T-DATE       18     6  2       'DATE'
 REC T-BRANCH     24     2          'BRANCH'
 REC T-NAME       26    20          'NAME'
 SEL BUFFER WHEN T-ACCOUNT GT M-ACCOUNT $Transactions without masters
 80OUT D
 80SORT T-BRANCH - T-DATE D T-ACCOUNT
 803 LISTING OF TRANSACTIONS WITHOUT MASTERS
 8051*010 T-BRANCH                HR
 8051*020 T-ACCOUNT               HR
 8051*030 T-NAME                  HR
 8051*050 T-TRANS-AMT             HR
 8051*060 T-TRANS-IND             HR
 8051*070 T-DATE  FD              HR

Result

REPORT NO. 80 LISTING OF TRANSACTIONS WITHOUT MASTERS mm/dd/yy PAGE 1 AMOUNT OF DEPOSIT/ BRANCH ACCOUNT NAME TRANSACTION WITHDRAWAL DATE 32 15060 SHARON ARMSTRONG 100,990.11 D mm/dd/yy 32 15060 SHARON ARMSTRONG 990.11 W mm/dd/yy 32 15060 SHARON ARMSTRONG 10,099.01 D mm/dd/yy 40 31113 MARY CATREY 36.00 W mm/dd/yy 40 31113 MARY CATREY 36.00 D mm/dd/yy 45 36682 JEAN WREN 4,000.78 W mm/dd/yy

Note: The report would show actual dates in the format shown.