Hello,
I am working on a project where I need to retain records from an ADABAS file that will eventually be purged from the database. These records will need to be stored into a flat file.
The proposed flat file will need to contain two types of records
1) General Account Info
2) Account Payment transactions
This is because the current ADABAS file stores ONE account that could have MANY payment transactions. Below is a sample of the layout:
01 ARI VIEW OF AR-INACTIVATION
02 ACCOUNT-NUM
02 AR-INACT-SEQ-NUM
02 AR-INACT-STAT-CODE
02 AR-INACT-STAT-DATE
02 AMT-TRANS-CODE
02 AR-INACT-CURR-BAL
02 C*INACTIVE-BALANCE-TRANSACTION
02 AR-INACT-AMT-TRANS-CODE(1:99)
02 AR-INACT-BAL-TRANS-AMT(1:99)
02 AR-INACT-BAL-TRANS-DATE(1:99)
The work file will need to be searched to determine if an account from the AR-INACTIVATION file already exists in it or not. If it does not exist, I will need to append that account's record information from the AR-INACTIVATION file into the work file.
I was thinking of creating some type of user defined array to READ all of the existing records of the work file into and then use the array to search for account records. I thought of creating the process this way because I am not sure if it is efficient to continuously read a work file in a program to search for a value. However, since the work file will accumulate over time, I am not sure if this will work. Are there limits as to how many records can be stored in an array and a work file?
There is a possibility that we will be changing the purging process in the near future so that records scheduled for purging from this file will be stored into a new ADABAS file that will never be purged. However, if I can come up with a solution to use for atleast the next year, that would be great.
Thank you for your help in advance!
~Erica~