Hello All,
I am hoping some can shed some light on this. I searched the archives for this subject but only found entries around this for someone who was writing there own syntax which I am not doing. I've been trying to open a text file (just like I have one hundred and one times before) and I can't. Thinking that it was perhaps something having do to do with my machine I sent the .xmlx file, to be converted to .txt to be read by SPSS (we are running PASW 18) - in short the same chain of events that I had tried. She came up with the same error message. The file is a 4x4 of dates in various formats. We are creating an application for data collection and will be linking it to SPSS so I was trying to test the format they chose (dd/mm/yyyy) to see if/how it opened. I also decided to test a couple of other formats as well. I need the dates to come over as dates from the databases so I can run calculations off of them. Here is the syntax I got back along with the error message. GET DATA /TYPE=TXT /FILE="C:\Documents and Settings\gcb\My Documents\date test 4.txt" /DELCASE=LINE /DELIMITERS="\t" /ARRANGEMENT=DELIMITED /FIRSTCASE=2 /IMPORTCASE=ALL /VARIABLES= date1 ADATE10 date2 DATE11 date3 ADATE10 date4 ADATE10 date5 EDATE10. >Error. Command name: GET DATA >(2269) Failure opening file: C:\Documents and Settings\gcboutemy\My Documents\date test 4.txt >Execution of this command stops. CACHE. EXECUTE. >Error # 105. Command name: EXECUTE >This command is not valid before a working file has been defined. >Execution of this command stops. DATASET NAME DataSet3 WINDOW=FRONT. Thank you all for you input. Best, Gabby ===================== 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 |
The syntax says "Settings\gcb\My"
The message says "Settings\gcboutemy\My" can you find the file without using SPSS? (In Windows it would be Explorer, on a Mac it would be "Find".) Is the file open in another application? Art Kendall Social Research Consultants On 4/3/2012 4:19 PM, Gabby wrote: > Hello All, > > I am hoping some can shed some light on this. I searched the archives for > this subject but only found entries around this for someone who was writing > there own syntax which I am not doing. > > I've been trying to open a text file (just like I have one hundred and one > times before) and I can't. Thinking that it was perhaps something having do > to do with my machine I sent the .xmlx file, to be converted to .txt to be > read by SPSS (we are running PASW 18) - in short the same chain of events > that I had tried. She came up with the same error message. > > The file is a 4x4 of dates in various formats. We are creating an > application for data collection and will be linking it to SPSS so I was > trying to test the format they chose (dd/mm/yyyy) to see if/how it opened. I > also decided to test a couple of other formats as well. I need the dates to > come over as dates from the databases so I can run calculations off of them. > > Here is the syntax I got back along with the error message. > > GET DATA > /TYPE=TXT > /FILE="C:\Documents and Settings\gcb\My Documents\date test 4.txt" > /DELCASE=LINE > /DELIMITERS="\t" > /ARRANGEMENT=DELIMITED > /FIRSTCASE=2 > /IMPORTCASE=ALL > /VARIABLES= > date1 ADATE10 > date2 DATE11 > date3 ADATE10 > date4 ADATE10 > date5 EDATE10. > >> Error. Command name: GET DATA >> (2269) Failure opening file: C:\Documents and Settings\gcboutemy\My > Documents\date test 4.txt >> Execution of this command stops. > CACHE. > EXECUTE. > >> Error # 105. Command name: EXECUTE >> This command is not valid before a working file has been defined. >> Execution of this command stops. > DATASET NAME DataSet3 WINDOW=FRONT. > > Thank you all for you input. > > Best, > Gabby > > ===================== > 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
Art Kendall
Social Research Consultants |
Free forum by Nabble | Edit this page |