Edit ID variables in CSDB

Discussions about editing and cleaning data
Forum rules
New release: CSPro 8.0
Post Reply
Enkhbayar
Posts: 68
Joined: November 10th, 2014, 11:48 pm

Edit ID variables in CSDB

Post 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
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Edit ID variables in CSDB

Post 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
Post Reply