[EpiData-list] Date-illegal entry

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Fri Nov 14 12:23:26 CST 2008


You cannot make an entry "-77" in a date field.  You need another 
variable before the date field to decide (with, let's say value 0 if no 
need to enter, and value 1 if you want to enter) whether you want to 
enter a date or skip it:

enterdate
  AFTER ENTRY
   IF enterdate=0 THEN
      GOTO varx
  ENDIF
END

legdat
RANGE 01/01/1900 31/12/2008
LEGAL
30/12/2009
24/11/2008
END
END

varx
  ......
END

Hans

epidata-list at lists.umanitoba.ca wrote:
> Thank you for your response to my date question.
>
> During entry, if the date field is not applicable to a certain record
> (whereas I do not need to enter a date for that specific record, rather
> skip it) what do I designate as my skip code. I did have -77, but when I
> would enter that, it would say it was an illegal entry.
>
> How do I write the code, so that a skip is -77, and it still be a legal
> entry in some instances?
>
> legdat
>   RANGE 01/01/1900 31/12/2008
>   LEGAL
>     30/12/2009
>     24/11/2008
>   END
> END
>
> (somewhere in there, I need to put it a skip code)
>
> Thank you for your time, 
>
> Lindsay
>   

-- 
Hans L Rieder, MD, MPH
Jetzikofenstrasse 12
3038 Kirchlindach
  Switzerland

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




More information about the EpiData-list mailing list