[EpiData-list] RE: EpiData-list Digest, Vol 49, Issue 13 reply

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Fri Nov 30 06:49:52 CST 2007


Thank you for your quick answer. 
Your advice works! 
Another question.

I have a  long list of all the countries of  the world with  
only one variable named  COUNTRY_NAME  , a  25 characters string. 

Is it possible to use the LEGAL command with a REC file with only one variable?

Or do I have to add lable names or numbers for each country to use the

COMMENT LEGAL  solution?

Franco L. Sanavro

Epidemiologist

Regional Health Centre

GGD Zuid-Holland Zuid

Dordrecht

The Netherlands 
 

-----Oorspronkelijk bericht----- 
Van: epidata-list-bounces at lists.umanitoba.ca 
[mailto:epidata-list-bounces at lists.umanitoba.ca]Namens 
epidata-list-request at lists.umanitoba.ca 
Verzonden: zaterdag 24 november 2007 19:03 
Aan: epidata-list at lists.umanitoba.ca 
Onderwerp: EpiData-list Digest, Vol 49, Issue 13 


Send EpiData-list mailing list submissions to 
        epidata-list at lists.umanitoba.ca 

To subscribe or unsubscribe via the World Wide Web, visit 
        http://lists.umanitoba.ca/mailman/listinfo/epidata-list 
or, via email, send a message with subject or body 'help' to 
        epidata-list-request at lists.umanitoba.ca 

You can reach the person managing the list at 
        epidata-list-owner at lists.umanitoba.ca 

When replying, please edit your Subject line so it is more specific 
than "Re: Contents of EpiData-list digest..." 


EpiData-list mailing list 
___________________________________ 

Today's Topics: 

   1. Re: How to use large amounts of of legal values in        chk file 
      (epidata-list at lists.umanitoba.ca) 
   2. Re: Using Comment legal in recfiles 
      (epidata-list at lists.umanitoba.ca) 


---------------------------------------------------------------------- 

Message: 1 
Date: Fri, 23 Nov 2007 23:55:34 +0100 
From: epidata-list at lists.umanitoba.ca 
Subject: Re: [EpiData-list] How to use large amounts of of legal 
        values in       chk file 
To: epidata-list at lists.umanitoba.ca 
Message-ID: <47475A66.5060104 at tbrieder.org> 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed 

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 at 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 
>   
-- 
Hans L Rieder, MD, MPH 
Jetzikofenstr. 12 
3038 Kirchlindach 
   Switzerland 

Tel: +41 31 829 4577 
Mob: +41 79 321 9122 
Web: http://www.tbrieder.org 




------------------------------ 

Message: 2 
Date: Sat, 24 Nov 2007 01:23:55 +0100 
From: epidata-list at lists.umanitoba.ca 
Subject: [EpiData-list] Re: Using Comment legal in recfiles 
To: epidata-list at lists.umanitoba.ca 
Message-ID: <47476F1B.6000001 at epidata.dk> 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed 

3. 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). 
> 
>   
On the page www.epidata.dk/examples.php there are two examples of using 
comment legal based on external files, - see these entitled: "Comment 
legal recfile - Birds and tick names" plus "Comment legal recfile - 
Bacteria list". 

regards 

Jens Lauritsen 
EpiData Association 


------------------------------ 

________________________________________ 
EpiData-list at lists.umanitoba.ca 
http://lists.umanitoba.ca/mailman/listinfo/epidata-list 


End of EpiData-list Digest, Vol 49, Issue 13 
******************************************** 



More information about the EpiData-list mailing list