Getting rid of old data?
Posted: November 19th, 2019, 3:58 am
Hi,
I'm working on an app to collect prices for CPI, and of course I want to compare to the prices last month. Hence I have an external dictionary with a csdb file of the relevant data.
And each month, I want to get rid of the data that I don't need anynore. I can't just delete the datafile as it's already opened in the app, so I tried to loop through it using delcase on every observation before reading the new data from a tab separated file.
This work-ish, but I notice that the datafile grows despite the number of occurences stays approximately the same, and this is of course a worry in the long run.
Any other suggestion on how to do it? (I guess I could make a separate app which does not open the dictionary and use this to delete the datafile, but this is also not very elegant..
Anne
I'm working on an app to collect prices for CPI, and of course I want to compare to the prices last month. Hence I have an external dictionary with a csdb file of the relevant data.
And each month, I want to get rid of the data that I don't need anynore. I can't just delete the datafile as it's already opened in the app, so I tried to loop through it using delcase on every observation before reading the new data from a tab separated file.
This work-ish, but I notice that the datafile grows despite the number of occurences stays approximately the same, and this is of course a worry in the long run.
Any other suggestion on how to do it? (I guess I could make a separate app which does not open the dictionary and use this to delete the datafile, but this is also not very elegant..
Anne