Excellent! Thanks.
David --
On Mon, Nov 22, 2010 at 02:08:48AM +0100, epidata-list@lists.umanitoba.ca wrote:
The Check function is COPY - works the same as SUBSTR in Analysis
id = copy(firstname,1,1)+lastname(1,1)
Jamie
On 2010-11-21, David wrote:
Thanks. Sorry, I was not clear in my original post. I need to do this in the chk file during data entry, not during analysis. I see that substr() is available in analysis, but does not seem to be available for chk files during data entry. What I would like to do is something like:
- example.qes
firstname A______ lastname A______ id A__
- example.chk
lastname AFTER ENTRY LET id=firstname[1,1] + lastname[1,1] END
Then if I enter Fred Bloggs I get id="FB"
David
David Whiting, PhD | Senior Epidemiology & Public Health Specialist tel +32-2-6437945 | mob +32-496-266436 | David.Whiting@idf.org
International Diabetes Federation 166 Chaussée de la Hulpe, B-1170 Brussels, Belgium tel +32-2-5385511 | fax +32-2-5385114 info@idf.org | www.idf.org | VAT BE 0433.674.528
IDF | Promoting diabetes care, prevention and a cure worldwide
_______________________________________________
EpiData-list mailing list EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list