Page 1 of 1

Preproc 5 questions

Posted: May 21st, 2017, 11:47 am
by MrTaco
is there a way to preproc all 5 questions eg. Q1 = 2, Q2 = 2. etc if answer is = 2 to skip

instead of using this logic:

Code: Select all

PROC Q6_8J

preproc
if Q6_8G = 2 and Q6_8H = 2 and Q6_8I = 2 then skip to Q6_15;endif;


thanks

Re: Preproc 5 questions

Posted: May 22nd, 2017, 12:02 am
by josh
Not sure what you mean. What exactly are you are trying to do?

Re: Preproc 5 questions

Posted: May 22nd, 2017, 3:54 am
by MrTaco
please refer to the attachment.

Code: Select all

PROC Q6_8J

preproc
if Q6_8G = 2 and Q6_8H = 2 and Q6_8I = 2 then skip to Q6_15;endif;


I normally use this logic above but i thought the could be a shorter and best logic to solve.

Re: Preproc 5 questions

Posted: May 22nd, 2017, 8:16 am
by josh
I don't see any way to make that shorter.