This is the final part of the following trilogy:
- Change the file's size and reuse deleted records
- Remove the deleted records from the file
- Create a program to perform both of the above
The earlier posts described how to manually perform the SQL statements needed. In this post I am going to show a program that combines both of the SQL statements, and makes a program that can be run time and again.
I am not going to repeat a lot of what I said in those posts, therefore, I recommend you read them before you start with this one.
I will show this program in three parts, as I think that will make it easier to explain and for you to understand. This is the first part:



