condition on variable

Discussions about CSEntry
Post Reply
OLODO
Posts: 14
Joined: September 30th, 2016, 3:31 pm
Location: Cotonou (Bénin)

condition on variable

Post 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!!
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: condition on variable

Post 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;
OLODO
Posts: 14
Joined: September 30th, 2016, 3:31 pm
Location: Cotonou (Bénin)

Re: condition on variable

Post by OLODO »

Thanks. it's go well
Post Reply