Guest_imported
New member
- Jan 1, 1970
- 0
Ok I have to for my cobol data structures class delete duplicate records and report excess records. I have to read a txt file consisting of customer info into an array then determine which records are excess and which are duplicates. I have to then wait till after all records are loaded into the array to print it. My last semester of cobol I had to do something similar with a Transaction file and a Master file. However last semester I printed out the array while I was loading it. I never had to actually modify an array that was already loaded. If an record needed to be changed I would print the transaction-file-record instead of the master. If a file needed to be deleted I would simply code it so that record didn't print. ***I Quess what I am really asking is how do you modify an array after its already loaded? Specifically is there a way I can delete a record from an array after its already loaded into the array? I know this is a confusing and ambiguous post but please I would be very grateful for any help I can get.