I received some great help yesterday with the following syntax
vector v=OCC_P to ILIUM_P.
compute UIV_P=0.
loop #i=1 to 29.
do if v(#i)=1.
compute UIV_P=#i.
BREAK.
end if.
end loop.
But now I want to do the reverse and calculate a variable starting from the bottom of the vector. I tried the following, which did not work.
vector v= OCC_P to ILIUM_P.
compute LIV_P=0.
loop #i=29 to 1.
do if v(#i)=1.
compute LIV_P=#i.
BREAK.
end if.
end loop.
In advance thanks for the help.
Jean Hanson