Page 1 of 1

Edit ID variables in CSDB

Posted: September 17th, 2021, 3:02 am
by Enkhbayar
Hi all,

I think it's not possible, but just in case I'm asking here. Does anyone know how to edit ID variables in CSDB? for example, sometimes enumerators switch HHIDs when they start an interview. HH-5 interview instead of HH-6 etc. If data is stored as ASCII, it's easy to correct ID variables using file-read and file-write functions.

Thanks,
Enkhbayar

Re: Edit ID variables in CSDB

Posted: September 17th, 2021, 11:22 am
by sherrell
Hello Enkhbayar,

Unless you have locked the ID variables from modification, enumerators can always change the IDs from within a case, whether the case is in progress or has been saved, and whether it's a text file or CSDB file. Of course, if they try to change the IDs and it matches another case in the file, then they can't.

You can also change it programmatically from another app. For example, you could put the following logic into another (for ex, menu) application:

loadcase(DICT, "5");
ID=6;
writecase(DICT);

Sherrell