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!!
condition on variable
-
- Posts: 1796
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: condition on variable
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:
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;
preproc
if totocc(LN) < 3 then
skip to NEXT_VARIABLE;
endif;
Re: condition on variable
Thanks. it's go well