[EpiData-list] Consistency in number of digits

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Mon May 18 09:05:12 CDT 2009


Dear Nicki,

how will your identifier look like? Why doesn`t it work like this?

v1=2
v2=105
v3=27
v4=7

ident= v1*1000000000 + v2*1000000 + v3*1000 + v4 = 2105027007 (with 3 
digits/variable)

Regards
Juergen


epidata-list at lists.umanitoba.ca schrieb:
> Dear All,
>
> I apologise if this question is simple but I really can't figure it out.
>
> In creating my chk file, I need to ensure that four of the variables 
> contain a certain number of digits. I know this is normally controlled 
> by number fields the .qes file. However, in this instance I need zeros 
> to be included at the beginning (eg. 0003) so that all responses 
> contain the same number of digits. This is because I will be putting 
> these 4 variables together to create a 10 digit identifier later in 
> the chk file.
>
> At the moment, whenever I enter 0003, the zeros are removed and I am 
> left with just 3.
>
> Does anyone know if there is a way to ensure the zeros remain, and to 
> ensure that each variable entered contains 4 digits?
>
> Many thanks in advance for your advice!
>
> Nicki
>
>
> Nicki Bailey
> Centre Administrator
> Leonard Cheshire Disability and Inclusive Development Centre
> Department of Epidemiology and Public Health
> University College London
> 4 Taviton Street, London, WC1H 0BT, UK
> Tel: +44 (0) 207 679 5589
> Fax: +44 (0) 207 388 2291
> www.lcdisability.org/idc 
> _______________________________________________
> EpiData-list mailing list
> EpiData-list at lists.umanitoba.ca
> http://lists.umanitoba.ca/mailman/listinfo/epidata-list

-- 
***********************************************************
Freiburger Institut fuer angewandte Sozialwissenschaft e.V.
FIFAS
Erasmusstr. 16, D-79098 Freiburg
Telefon: (0761) 28 83 64  Fax: (0761) 29 27 493
Web: 	www.fifas.de
E-Mail:	info at fifas.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: info.vcf
Type: text/x-vcard
Size: 213 bytes
Desc: not available
Url : http://lists.umanitoba.ca/pipermail/epidata-list/attachments/20090518/15e5bcf3/info.vcf


More information about the EpiData-list mailing list