From the course: COBOL Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Inserting records in a master data file

Inserting records in a master data file - COBOL Tutorial

From the course: COBOL Essential Training

Start my 1-month free trial

Inserting records in a master data file

- [Instructor] Often COBOL programs manage information about employees by storing their data in large sequential files, then daily or weekly transaction files are created which contain the changes required to update these records. For example, the transaction file might contain new additions, changes, or even deletions of the main employee records. Let's take a look at a flow chart depicting this activity. We have a program called ProcessEmployee. The ProcessEmployee takes in a master employee file. It also takes in the weekly transaction file. It produces a new master employee file along with any errors that might have occurred, specifically if you're adding new employees, any duplicates that you might find. Now, the question is, how do I insert these new records? The problem is, on the left, I have my transaction file, and I want to actually insert them into my master file, but we can't insert into a sequential file. So…

Contents