bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: DO REPEAT duplicate substitutions not allowed


From: Frans Houweling
Subject: PSPP-BUG: DO REPEAT duplicate substitutions not allowed
Date: Wed, 20 Mar 2024 16:36:35 +0100
User-agent: Mozilla Thunderbird

May not be a bug. I certainly disagree!

SET PRINTBACK=ON.
DATA LIST LIST NOTABLE / numer1 numer2 denom1.
BEGIN DATA
30 25 100
20 15 100
10 40 100
20 10 100
END DATA.

DO REPEAT n=numer1 numer2
    /d = denom1 denom1

issue.sps:11: error: DO REPEAT: Each dummy variable must have the same number
of substitutions.

issue.sps:9.11-9.25: note: DO REPEAT: Dummy variable n had 2 substitutions.
    9 | DO REPEAT n=numer1 numer2
      |           ^~~~~~~~~~~~~~~

issue.sps:10.6-10.22: note: DO REPEAT: Dummy variable d had 1 substitution.
   10 |     /d = denom1 denom1
      |      ^~~~~~~~~~~~~~~~~

    /p = perc1 perc2.
  COMPUTE p = n / d * 100.
END REPEAT.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]