Hi,
I’m using a version of the syntax below to read in my data from an ODBC source and then modify it within SPSS.
I have a feeling I am doing something wrong.
If I do not save my file after the read in, before I try to manipulate the variables, it shuts down. If I save the file first, it is fine.
What *Should* I be doing.
See below
Does not shut down
GET DATA
/TYPE=ODBC
/CONNECT=’Databasename'
/SQL="select V1, from DATABASE where CRITERIA order BY V1"
/ASSUMEDSTRWIDTH=255.
SAVE OUTFILE='C:\Update.sav'
/COMPRESSED.
ALTER TYPE V1 (f10).
SAVE OUTFILE='C:\Update.sav'
/COMPRESSED.
Shut down
GET DATA
/TYPE=ODBC
/CONNECT=’Databasename'
/SQL="select V1, from DATABASE where CRITERIA order BY V1"
/ASSUMEDSTRWIDTH=255.
ALTER TYPE V1 (f10).
SAVE OUTFILE='C:\Update.sav'
/COMPRESSED.
Natalie Spring
Data and Market Analyst
Prospect Research, Management & Analytics
Duke University
919.681.0455 (voice)
919.684.9692 (fax)
[hidden email]