Page 1 of 1

Check on items belonging to different rosters

Posted: August 5th, 2017, 5:10 am
by Tsheringcee
Dear all

Thnk you so much for the prompt response .it really helps me. I want to know how can we check if the values on two items are equal to individual persons in two different roster. For example I want to put a check where the marital status (m1)should not be 3 if the numbers of times married (m33) in a different roster for the same person is 2. M1 is in the first roster and m33 is the third roster.

Thank you

Re: Check on items belonging to different rosters

Posted: August 7th, 2017, 8:21 am
by Gregory Martin
If the row number of the people on both rosters are is same, you can write code like this:
PROC M33

    if M33 = 2 and M1(curocc()) = 3 then
        errmsg("...");
        reenter;
    endif;

Re: Check on items belonging to different rosters

Posted: August 9th, 2017, 6:22 am
by Tsheringcee
Thank u so much