|
From: | Frans Houweling |
Subject: | Re: modify vars |
Date: | Sat, 24 Aug 2024 16:03:55 +0200 |
User-agent: | Mozilla Thunderbird |
Good workaround. For anyone interested:- as Ben points out, no need for SAVE and GET. Use ADD FILES or MATCH FILES instead: ADD FILES FILE=* /KEEP={unconcerned variables} reordered variables {unconcerned variables} .
- the first {unconcerned variables} can have the form {first variable in the file} TO {last unconcerned variable}
- for the second {unconcerned variables} you can use ALL. frans On 8/24/24 14:13, ft gmail wrote:
Thank you for the clarification. This is a pity as the command was simple and helpful.My workaroung was: GET FILE="C:\Users\data\xx.sav". SAVE OUTFILE="C:\Users\data\xxreordered.sav" /KEEP {unconcerned variables} reordered variables {unconcerned variables} . GET FILE="C:\Users\data\xxreordered.sav". Le 19/08/2024 à 02:00, Ben Pfaff a écrit :MODIFY VARS was removed in version 2.0.0 because it is not part of SPSS. The manual you are looking at must be for an older version of PSPP. You can use ADD FILES to reorder variables: https://www.spss-tutorials.com/spss-reorder-variables-with-syntax/. (I haven't tried this, but it should work. If it doesn't, please let me know.) On Sun, Aug 18, 2024 at 2:26 PM ft gmail <public.ftr@gmail.com> wrote:Hi, I want to reorder variables to reuse the syntaxt for another data set for a new one. I get the following error message: C:\Users\....sps:1.4-1.9: error: Unknown command `MODIFY'. 1 | MODIFY VARS | ^~~~~~ Modify Vars is listed in the Online PSPP Manual. http://gnu.ist.utl.pt/software/pspp/manual/html_node/MODIFY-VARS.html So, I don't understand why PSPP declares it unknown. Any help appreciated. Thanks in advance ftr
[Prev in Thread] | Current Thread | [Next in Thread] |