Page 1 of 1

condition on variable

Posted: October 3rd, 2016, 8:36 pm
by OLODO
hi,
I have an application with 3 lines. The third line is left empty during the recordings of previous variables. Now i want to put a condition on the current variable not to inquire when the line 3 is empty. I don't know how to put her condition. I need help.

thank!!

Re: condition on variable

Posted: October 4th, 2016, 7:26 am
by Gregory Martin
If you're referring to record occurrences when you saw "lines," then you can use the totocc function to determine how many occurrences your roster has.

For example, if you have a roster with the following items: LN, NAME, SEX, AGE, you could do this:
PROC CURRENT_VARIABLE

preproc

    
if totocc(LN) < 3 then
        
skip to NEXT_VARIABLE;
    
endif;

Re: condition on variable

Posted: October 4th, 2016, 8:10 am
by OLODO
Thanks. it's go well