[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PSPP-BUG: Select Random Cases Bug
From: |
John Darrington |
Subject: |
Re: PSPP-BUG: Select Random Cases Bug |
Date: |
Fri, 1 Nov 2019 16:45:09 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Fri, Nov 01, 2019 at 03:24:18PM +0000, Eric E Graig wrote:
I am attempting to select 150 cases from an sav file with 1490 cases. The
syntax, generated by PSPP itself:
COMPUTE case_$ = $CASENUM.
COMPUTE filter_$ = case_$ > 1400.
COMPUTE rv_$ = RV.UNIFORM (0, 1).
SORT BY filter_$, rv_$.
EXECUTE.
COMPUTE filter_$ = $CASENUM.
COMPUTE filter_$ = filter_$ <= 150
EXECUTE.
SORT BY case_$.
DELETE VARIABLES case_$, rv_$.
EXECUTE.
FILTER BY filter_$.
Throws this error:
COMPUTE case_$ = $CASENUM.
COMPUTE filter_$ = case_$ > 1400.
COMPUTE rv_$ = RV.UNIFORM (0, 1).
.1-4: error: COMPUTE: Unknown command `SORT'.
SORT BY filter_$, rv_$.
EXECUTE.
COMPUTE filter_$ = $CASENUM.
COMPUTE filter_$ = filter_$ <= 150
EXECUTE.
.1-4: error: EXECUTE: Unknown command `SORT'.
SORT BY case_$.
DELETE VARIABLES case_$, rv_$.
EXECUTE.
FILTER BY filter_$.
Since I've done nothing to modify the code, I have to assume this is a bug.
On the face of it, it sounds like it.
However you haven't said
1) Which version of pspp you are using (perhaps it is a bug which has
already been fixed).
2) Exactly what did you do (what sequence of menu actions did you
perform) to provoke this behaviour.
If you can provide this information, the hopefully we can investigate
and if necessary correct the problem.
Regards,
John