Re: EpiData-list Digest, Vol 82, Issue 6
Thanks Hans and Jamie. Your suggestion worked for me.
Regards,
Bola
--- On Mon, 9/8/10, epidata-list-request@lists.umanitoba.ca epidata-list-request@lists.umanitoba.ca wrote:
From: epidata-list-request@lists.umanitoba.ca epidata-list-request@lists.umanitoba.ca Subject: EpiData-list Digest, Vol 82, Issue 6 To: epidata-list@lists.umanitoba.ca Date: Monday, 9 August, 2010, 10:00
Send EpiData-list mailing list submissions to epidata-list@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@lists.umanitoba.ca
You can reach the person managing the list at epidata-list-owner@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 define Jumps at a variable using another variable (epidata-list@lists.umanitoba.ca)
----------------------------------------------------------------------
Message: 1 Date: Sun, 8 Aug 2010 13:21:13 -0400 From: epidata-list@lists.umanitoba.ca Subject: Re: [EpiData-list] How to define Jumps at a variable using another variable To: epidata-list@lists.umanitoba.ca Message-ID: BLU0-SMTP69AE1A89EB290445795DDAFD930@phx.gbl Content-Type: text/plain; charset=us-ascii
You should do this with GOTO as Hans suggests:
a06 before entry if (a04 >=0 and a04 <=18) then goto a08 endif end end
blocks that begin with a variable name cannot appear within the block for another variable. If you need to use the variable tempv elsewhere, then include this at the top of your check file
before file define tempv # global end
Jamie
On 2010-08-05, at 7:25 AM, epidata-list@lists.umanitoba.ca wrote:
Variable a04 is exact age of respondent while variable a06 is another question. Variable a06 is only applicable to respondents whose age range is 0-18 otherwise a jump is required to variable a08. This is what I have done below but I keep getting error message.
Kindly help on how I can achieve the jumps.
Thank you.
Bola Adedoyin (Mrs) DC Pro-Data Consult Lagos, Nigeria
a06 BEFORE ENTRY define tempv # IF a04 RANGE 0 18 THEN tempv=1 ELSE tempv=2 ENDIF tempv JUMPS 2 a08 END END END END
------------------------------
________________________________________ EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list
End of EpiData-list Digest, Vol 82, Issue 6 *******************************************
participants (1)
-
epidata-list@lists.umanitoba.ca