带有 VECTOR(index) 的 SPSS LOOP 给出 spss-error 4023
SPSS LOOP with VECTOR(index) gives spss-error 4023
我有以下循环语法:
VECTOR tb= tb1 TO tb16 / X(16).
EXECUTE.
loop #i = 1 to 5.
if (tb(#i) > 0) X(#i) = tb(#i).
end loop.
exe.
SPSS 告诉我:
>Error # 4023 in column 5. Text: tb
>An expression contains a string of characters followed by a left parenthesis,
>indicating that the string of characters is a function or vector name, but the
>characters do not match any existing function or vector. Check the spelling.
>Execution of this command stops.
请帮忙。
向量定义后删除EXECUTE.
。这将从内存中删除 tb
向量。 tb
存储在内存中,直到第一个 EXECUTE.
我有以下循环语法:
VECTOR tb= tb1 TO tb16 / X(16).
EXECUTE.
loop #i = 1 to 5.
if (tb(#i) > 0) X(#i) = tb(#i).
end loop.
exe.
SPSS 告诉我:
>Error # 4023 in column 5. Text: tb
>An expression contains a string of characters followed by a left parenthesis,
>indicating that the string of characters is a function or vector name, but the
>characters do not match any existing function or vector. Check the spelling.
>Execution of this command stops.
请帮忙。
向量定义后删除EXECUTE.
。这将从内存中删除 tb
向量。 tb
存储在内存中,直到第一个 EXECUTE.