j***@gmail.com
2017-04-12 19:06:34 UTC
Hello,
I am trying to import a large text file and I am getting an error which has me baffled. I've looked at countless posts and tried different things, but keep getting the same error. Hoping an external pair of eyes can help solve this. I'm using SPSS V22 and operating in Windows 7 Enterprise.
Thanks,
Julie
GET DATA /TYPE = TXT
/FILE = 'P:\Data\EDOIdec27.txt'
/FIXCASE = 1
/ARRANGEMENT = FIXED
/FIRSTCASE = 1
/IMPORTCASE = ALL
/VARIABLES =
/ENTNUM 0-9 F10.0
LEGNAME 10-73 A64
OPNAME 74-137 A64
STREET 138-201 A64
CITY 202-233 A32
OPPROV 234-235 A2
OPPCODE 236-241 A6
NAICS 242-247 F6.0
EMP8 248-249 F2.0
EMP12 250-251 F2.0
PROV 252-253 A2
CD 254-255 F2.0
CSD 256-258 F3.0
CACMA 259-261 F3.0
ER 262-263 F2.0
STATTYP 264-264 F1.0.
EXECUTE.
I am trying to import a large text file and I am getting an error which has me baffled. I've looked at countless posts and tried different things, but keep getting the same error. Hoping an external pair of eyes can help solve this. I'm using SPSS V22 and operating in Windows 7 Enterprise.
Thanks,
Julie
GET DATA /TYPE = TXT
/FILE = 'P:\Data\EDOIdec27.txt'
/FIXCASE = 1
/ARRANGEMENT = FIXED
/FIRSTCASE = 1
/IMPORTCASE = ALL
/VARIABLES =
/ENTNUM 0-9 F10.0
LEGNAME 10-73 A64
OPNAME 74-137 A64
STREET 138-201 A64
CITY 202-233 A32
OPPROV 234-235 A2
OPPCODE 236-241 A6
NAICS 242-247 F6.0
EMP8 248-249 F2.0
EMP12 250-251 F2.0
PROV 252-253 A2
CD 254-255 F2.0
CSD 256-258 F3.0
CACMA 259-261 F3.0
ER 262-263 F2.0
STATTYP 264-264 F1.0.
Error. Command name: GET DATA
(2265) Unrecognized or invalid variable format. The format is invalid. For
numeric formats, the width or decimals value may be invalid.
Execution of this command stops.
CACHE.(2265) Unrecognized or invalid variable format. The format is invalid. For
numeric formats, the width or decimals value may be invalid.
Execution of this command stops.
EXECUTE.
Error # 105. Command name: EXECUTE
This command is not valid before a working file has been defined.
Execution of this command stops.
This command is not valid before a working file has been defined.
Execution of this command stops.