Error # 61 The filename is not valid

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error # 61 The filename is not valid

Ali H
Hello all,

When I try a simple aggregate command I receive an error message. Here is the syntax:

AGGREGATE OUTFILE = 'CRITERIA.SAV'
/ BREAK = SUBJECT ORDER
/ PCT_300 = PGT(FLAG_300,0)
/ NTRIALS = N .

This is what I get in the output:

>Error # 61 in column 21. Text: CRITERIA.SAV
>The filename is not valid.
>Execution of this command stops.

What can I do to make the file name valid? Is there something wrong with my permissions, or I have to locate a certain file?

Thanks a lot!

Ali
Reply | Threaded
Open this post in threaded view
|

Re: Error # 61 The filename is not valid

PRogman
Try specify a path and a filename. Your default folder is write-protected.

FILE HANDLE fpUserDesktop /NAME='%userprofile%\desktop' .
FILE HANDLE fnCriteria        /NAME='fpUserDesktop\CRITERIA.SAV' .

AGGREGATE
 OUTFILE = FnCriteria
 /BREAK = SUBJECT ORDER
 /PCT_300 = PGT(FLAG_300, 0)
 /NTRIALS = N .

Perhaps you could use a dataset?  

DATASET DECLARE Criteria.

AGGREGATE
 OUTFILE = Criteria
 /BREAK = SUBJECT ORDER
 /PCT_300 = PGT(FLAG_300, 0)
 /NTRIALS = N .

DATASET ACTIVATE Criteria.

HTH,
PR
Reply | Threaded
Open this post in threaded view
|

Re: Error # 61 The filename is not valid

Ali H
Thanks! I specified a full pathname and that did the trick. Thanks for the tip!

Ali

From: [hidden email]
Sent: ‎Saturday‎, ‎26‎ ‎April‎ ‎2014 ‎03‎:‎57‎ ‎PM
To: [hidden email]

Try specify a path and a filename. Your default folder is write-protected.

FILE HANDLE fpUserDesktop /NAME='%userprofile%\desktop' .
FILE HANDLE fnCriteria        /NAME='fpUserDesktop\CRITERIA.SAV' .

AGGREGATE
 OUTFILE = FnCriteria
 /BREAK = SUBJECT ORDER
 /PCT_300 = PGT(FLAG_300, 0)
 /NTRIALS = N .

Perhaps you could use a dataset?  

DATASET DECLARE Criteria.

AGGREGATE
 OUTFILE = Criteria
 /BREAK = SUBJECT ORDER
 /PCT_300 = PGT(FLAG_300, 0)
 /NTRIALS = N .

DATASET ACTIVATE Criteria.

HTH,
PR


If you reply to this email, your message will be added to the discussion below:
http://spssx-discussion.1045642.n5.nabble.com/Error-61-The-filename-is-not-valid-tp5725670p5725687.html
To unsubscribe from Error # 61 The filename is not valid, click here.
NAML