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

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

Re: PSPP-BUG: DO REPEAT duplicate substitutions not allowed


From: Ben Pfaff
Subject: Re: PSPP-BUG: DO REPEAT duplicate substitutions not allowed
Date: Wed, 20 Mar 2024 08:45:09 -0700

At first glance, this looks like a bug to me too. I'll check it out
properly when I find time.

On Wed, Mar 20, 2024 at 8:37 AM Frans Houweling via Bug-gnu-pspp
<bug-gnu-pspp@gnu.org> wrote:
>
> 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.
>
>
>
> _______________________________________________
> Bug-gnu-pspp mailing list
> Bug-gnu-pspp@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-gnu-pspp



reply via email to

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