|
Hello,
Is it possible to delete a file using syntax? I'm sure I have read somewhere that it was possible but I can't track back where I read this. So for example the MINMAX dataset created from the syntax below would be saved under C:\Program Files\SPSS or from the working folder where the syntax is saved. Thanks Jignesh DATA LIST FREE / VALUE . BEGIN DATA 2 1 3 4 5 6 1 3 6 5 3 6 7 2 1 5 3 7 5 3 7 6 2 1 5 3 6 7 5 2 1 6 7 3 5 6 7 1 2 5 3 6 7 1 2 5 3 6 7 5 6 7 6 7 5 1 2 3 5 2 6 7 1 5 3 6 7 2 1 5 3 6 7 2 1 5 3 7 6 2 1 5 3 7 6 1 2 5 3 7 2 1 5 3 5 2 1 3 5 7 6 5 7 6 2 7 6 5 END DATA . COMPUTE GP = TRUNC (UNIFORM(2) ) . SORT CASES BY GP . LIST. AGGREGATE OUTFILE 'MINMAX' / PRESORTED / BREAK = GP / MEAN = MEAN(VALUE) . ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
You can use the ERASE command to delete any file, but if you only want to use the aggregated results in the current session, you can avoid creating an external file, which you then later have to erase, by using datasets, as in:
DATASET DECLARE MINMAX. AGGREGATE OUTFILE 'MINMAX' / PRESORTED / BREAK = GP / MEAN = MEAN(VALUE) . DATASET ACTIVATE MINMAX. The dataset will go away when you end the session unless you explicitly save it. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of J Sutar Sent: Saturday, August 09, 2008 10:09 AM To: [hidden email] Subject: Delete file using Syntax command Hello, Is it possible to delete a file using syntax? I'm sure I have read somewhere that it was possible but I can't track back where I read this. So for example the MINMAX dataset created from the syntax below would be saved under C:\Program Files\SPSS or from the working folder where the syntax is saved. Thanks Jignesh DATA LIST FREE / VALUE . BEGIN DATA 2 1 3 4 5 6 1 3 6 5 3 6 7 2 1 5 3 7 5 3 7 6 2 1 5 3 6 7 5 2 1 6 7 3 5 6 7 1 2 5 3 6 7 1 2 5 3 6 7 5 6 7 6 7 5 1 2 3 5 2 6 7 1 5 3 6 7 2 1 5 3 6 7 2 1 5 3 7 6 2 1 5 3 7 6 1 2 5 3 7 2 1 5 3 5 2 1 3 5 7 6 5 7 6 2 7 6 5 END DATA . COMPUTE GP = TRUNC (UNIFORM(2) ) . SORT CASES BY GP . LIST. AGGREGATE OUTFILE 'MINMAX' / PRESORTED / BREAK = GP / MEAN = MEAN(VALUE) . ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
