Thanks Jens for your suggestions. I'll keep them in my EpiData "How To" file.
Suzanna Vidmar Senior Research Officer Clinical Epidemiology and Biostatistics Unit
Murdoch Childrens Research Institute Royal Children's Hospital Flemington Road Parkville Victoria 3052 Australia
telephone: +61 3 9345 6372 facsimile: +61 3 9345 6000 email: suzanna.vidmar@mcri.edu.au www.mcri.edu.au
-----Original Message----- From: epidata-list-bounces@lists.umanitoba.ca [mailto:epidata-list-bounces@lists.umanitoba.ca] On Behalf Of epidata-list@lists.umanitoba.ca Sent: Monday, 2 August 2010 2:06 AM To: epidata-list@lists.umanitoba.ca Subject: Re: [EpiData-list] Extending command over multiple lines
The correspondance on this topic all seems correct. To avoid very long
lines some logic can be helpfull and work (with some experimentation).
(The following examples should work, but please verify I have not tested
in detail)
find months spelling errors:
------------------------------------------------------------------------ ------------------------------------------
admit1mon after entry if pos(admit1mon,"JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC") = 0 then HELP "Month is a 3 character field, e.g. JAN, FEB, etc" TYPE=ROR GOTO admit1mon CLEAR admit1mon ENDIF end end ------------------------------------------------------------------------ ------------------------------------------
If for some reason you prefer to use months for entry I would suggest this: admitm range 1 12 after entry tempm = 1 +(3*admitm) -3 admit1mon = copy("JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC",temp,3) end end
admit1mon noenter end ------------------------------------------------------------------------ ------------------------------------------ Also - since numbers are faster to enter than letters I would prefer the
second suggestion.
regards Jens Lauritsen Epidata Association _______________________________________________ EpiData-list mailing list EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list