Extracting data using SPSS

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

Extracting data using SPSS

Genevieve Thompson
Hi,

I am trying to extract data from one of our ODBC Databases using SPSS. I
started by opening a new database, selecting the ODBC Data source and
selecting the needed variables. When I try to retrieve the data I'm
looking for, the Data view tab only shows the list of variables I
selected. The data fields are not populated.

 

Can anyone help with this?

 

Thanks.

 

Genevieve

 

====================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
Reply | Threaded
Open this post in threaded view
|

Re: Extracting data using SPSS

DataMaestro
I have read here that v16 is buggy with certain data views.  However, this has worked in other situations because there might not be enough working memory.

Try this -

File> Cache Data > Cache Now

then try it.

Good luck,
George


--- On Fri, 8/8/08, Genevieve Thompson <[hidden email]> wrote:

> From: Genevieve Thompson <[hidden email]>
> Subject: Extracting data using SPSS
> To: [hidden email]
> Date: Friday, August 8, 2008, 9:22 AM
> Hi,
>
> I am trying to extract data from one of our ODBC Databases
> using SPSS. I
> started by opening a new database, selecting the ODBC Data
> source and
> selecting the needed variables. When I try to retrieve the
> data I'm
> looking for, the Data view tab only shows the list of
> variables I
> selected. The data fields are not populated.
>
>
>
> Can anyone help with this?
>
>
>
> Thanks.
>
>
>
> Genevieve
>
>
>
> ====================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
Reply | Threaded
Open this post in threaded view
|

Re: Extracting data using SPSS

Richard Ristow
In reply to this post by Genevieve Thompson
At 09:22 AM 8/8/2008, Genevieve Thompson wrote:

>I am trying to extract data from an ODBC Database using SPSS. I
>started by opening a new database, selecting the ODBC Data source
>and selecting the needed variables. When I try to retrieve the data
>I'm looking for, the Data view tab only shows the list of variables
>I selected. The data fields are not populated.

Could it be as simple as that the command has been executed, but has
not yet carried out the data retrieval?

SPSS's is 'lazy' in data retrieval (and running transformations).
That is, it doesn't carry out the operation until the results are
'needed', which means a procedure command or a SAVE. It can do a lot
for efficiency, but it can be confusing if you're running interactively.

Try selecting menu

Transforms > Run Pending Transforms

More:
1. 'Run Pending Transformations' runs an EXECUTE; EXECUTE is a
procedure. This is probably what gave the widespread (inaccurate)
impression that you must run EXECUTE for the results of
transformations to be available. (You must run a procedure for the
results to be *visible*, but that's different.)
2. It's often wise to run CACHE after an ODBC retrieval, or other
retrieval that may take a lot of resources.

-Good luck to you,
  Richard

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: Extracting data using SPSS

Genevieve Thompson
In reply to this post by Genevieve Thompson
 

Hi,

I am trying to extract data from one of our ODBC Databases using SPSS
v16. I started by opening a new database, selecting the ODBC Data source
and selecting the needed variables. When I try to retrieve the data I'm
looking for, the Data view tab only shows the list of variables I
selected. The data fields are not populated.

 

Do you think this may be a V16 problem? Can anyone help with this?

 

Thanks.

 

Genevieve

 

====================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
Reply | Threaded
Open this post in threaded view
|

Re: Extracting data using SPSS

Albert-Jan Roskam
Hi,

I also experienced this before. Using the commands CACHE and EXECUTE right after the query solved the problem (yes, excute is mandatory here). Also: do you have rights to read that particular table/database?

Cheers!!
Albert0Jan



--- On Fri, 8/8/08, Genevieve Thompson <[hidden email]> wrote:

> From: Genevieve Thompson <[hidden email]>
> Subject: Re: Extracting data using SPSS
> To: [hidden email]
> Date: Friday, August 8, 2008, 7:08 PM
> Hi,
>
> I am trying to extract data from one of our ODBC Databases
> using SPSS
> v16. I started by opening a new database, selecting the
> ODBC Data source
> and selecting the needed variables. When I try to retrieve
> the data I'm
> looking for, the Data view tab only shows the list of
> variables I
> selected. The data fields are not populated.
>
>
>
> Do you think this may be a V16 problem? Can anyone help
> with this?
>
>
>
> Thanks.
>
>
>
> Genevieve
>
>
>
> ====================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