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

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

PSPP-BUG: Select Random Cases Bug


From: Eric E Graig
Subject: PSPP-BUG: Select Random Cases Bug
Date: Fri, 1 Nov 2019 15:24:18 +0000

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.

 

Eric

 


reply via email to

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