Re: How to load the case with given primary id
Posted: February 11th, 2022, 12:18 pm
Hi Manish,
I have not reviewed your entire application, but I see you're declaring ~40 arrays at the beginning of your program with indices of 50,000. Of the 5 I checked, none were being referenced. If these arrays are not being used, they should be commented out/deleted (and if you do think you need them, I would then question why you need so many and of such a size).
>As each time the data entry starts first it creates case-list file from primary data file
I see you are using a .dat (text) file for your external (not primary) data file. While CSPro does build an index file (.csidx) of the cases to expedite things, a .csdb file would be faster, and would definitely facilitate R/Ws to the file. Is there a reason you are using a .dat file rather than .csdb?
Since you are doing this on a regular (monthly) basis, you might want to write an intermediate program to create this cumulative value at the end of each month so that interviewers load the already-calculated value, rather than calculating the (static?) value every time they launch CSEntry.
Sherrell
I have not reviewed your entire application, but I see you're declaring ~40 arrays at the beginning of your program with indices of 50,000. Of the 5 I checked, none were being referenced. If these arrays are not being used, they should be commented out/deleted (and if you do think you need them, I would then question why you need so many and of such a size).
>As each time the data entry starts first it creates case-list file from primary data file
I see you are using a .dat (text) file for your external (not primary) data file. While CSPro does build an index file (.csidx) of the cases to expedite things, a .csdb file would be faster, and would definitely facilitate R/Ws to the file. Is there a reason you are using a .dat file rather than .csdb?
Since you are doing this on a regular (monthly) basis, you might want to write an intermediate program to create this cumulative value at the end of each month so that interviewers load the already-calculated value, rather than calculating the (static?) value every time they launch CSEntry.
Sherrell