Notes
Posted: January 24th, 2020, 3:17 pm
Is there a way, in batch mode, to get all the notes for all the fields in the questionnaire in csdb file, using 7.3 version?
A place to discuss the Census and Survey Processing System
https://www.csprousers.org/forum/
Code: Select all
PROC DUMMY2_FF
numeric num = sqlquery( A , entrySessions,"select cases.key, notes.field_name, notes.record_occurrence, notes.content from notes join cases on notes.case_id = cases.id");
do numeric ctr = 1 while ctr <= num
NOTES_A.ID=entrySessions(ctr,1);
NOTES_A.FIELD=entrySessions(ctr,2);
NOTES_A.RECORD_OCC=tonumber(entrySessions(ctr,3));
NOTES_A.NOTES_NOTE=entrySessions(ctr,4);
writecase(NOTES_A);
enddo;