How to use large amounts of of legal values in chk file
We are building a data-entry system for the registration of medical contact for the youth in our organisation. Therefore we need several hundreds of schoolcodes and zipcodes (postcode).
For the quality of data I want to use this data in the chk file in the following way. In stead of:
LABELBLOCK LABEL_POSTCODE LEGAL 2234 2344 2544 2645 . ETC END
POSTCODE LEGAL USE LABEL_POSTCODE MUSTENTER END
I want to use an externel file POSTCODE.INC whith the data and used the following syntax:
LABELBLOCK LABEL_POSTCODE INCLUDE POSTCODE.INC END
POSTCODE LEGAL USE LABEL_POSTCODE MUSTENTER END
But I only get errors.
Someone has a solution?
Franco L. Sanavro Epidemiologist Regional Health Centre GGD Zuid-Holland Zuid Postbus 166 3300 AD Dordrecht The Netherlands 078 6321817 fsanavro@ggdzhz.nl www.ggdzhz.nl
EpiData Entry most likely does not recognize *.inc. Assume that your POSTCODE.INC file has two fields: name postcode
where NAME is the place and POSTCODE its postal code. Make a text file, eg NAMECODE.TXT containing only these two fields, semi-colon delimited. Then make a QES file, e.g., NAMECODE.QES with just two fields:
name _________________ postcode ####
Then use the import function to import the NAMECODE.TXT file.
Now edit the NAMECODE.CHK file so that:
name key 1 end
postcode key 2 end
Go now to your MAINFILE.REC and edit the MAINFILE.CHK in the appropriate place to:
postalname COMMENT LEGAL namecode.rec SHOW TYPE COMMENT postalcode END
postalcode NOENTER END
(assuming you have these two fields). Now the data entry person gets the external file as a label block, with POSTALNAME as the field value that can be found quickly, and the POSTALCODE as the value label, written into the appropriate field.
Hans
epidata-list@lists.umanitoba.ca wrote:
We are building a data-entry system for the registration of medical contact for the youth in our organisation. Therefore we need several hundreds of schoolcodes and zipcodes (postcode).
I want to use an externel file POSTCODE.INC whith the data and used the following syntax:
LABELBLOCK LABEL_POSTCODE INCLUDE POSTCODE.INC END
POSTCODE LEGAL USE LABEL_POSTCODE MUSTENTER END
But I only get errors.
Someone has a solution?
Franco L. Sanavro
participants (1)
-
epidata-list@lists.umanitoba.ca