dataset activate bug?

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

dataset activate bug?

mpirritano

Listerees,

 

A google and archive search yields no answers.

 

Dataset activate is giving me problems. If I run it by itself it’s fine. But if I do

 

Dataset name blah.

Dataset activate blah.

 

It’s as if dataset activate didn’t run.

 

Any experience, fixes?

 

Thanks

Matt

 

Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648

 

Reply | Threaded
Open this post in threaded view
|

Re: dataset activate bug?

Jon K Peck

 That's because in this case it IS a no-op.  DATASET NAME assigns a name to the current dataset, so activating that same dataset is redundant.

HTH,

Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435



From: "Pirritano, Matthew" <[hidden email]>
To: [hidden email]
Date: 01/15/2010 10:43 AM
Subject: [SPSSX-L] dataset activate bug?
Sent by: "SPSSX(r) Discussion" <[hidden email]>





Listerees,
 
A google and archive search yields no answers.
 
Dataset activate is giving me problems. If I run it by itself it’s fine. But if I do
 
Dataset name blah.
Dataset activate blah.
 
It’s as if dataset activate didn’t run.
 
Any experience, fixes?
 
Thanks
Matt
 
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648
 

Reply | Threaded
Open this post in threaded view
|

Re: dataset activate bug?

mpirritano

I should clarify.  I have two datasets open. One that was open and one that opened second. I want to activate the second one. So I name it and then activate it. But the first one which also has a name remains active.

 

Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648


From: Jon K Peck [mailto:[hidden email]]
Sent: Friday, January 15, 2010 11:08 AM
To: Pirritano, Matthew
Cc: [hidden email]
Subject: Re: [SPSSX-L] dataset activate bug?

 


 That's because in this case it IS a no-op.  DATASET NAME assigns a name to the current dataset, so activating that same dataset is redundant.

HTH,

Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435


From:

"Pirritano, Matthew" <[hidden email]>

To:

[hidden email]

Date:

01/15/2010 10:43 AM

Subject:

[SPSSX-L] dataset activate bug?

Sent by:

"SPSSX(r) Discussion" <[hidden email]>

 





Listerees,
 
A google and archive search yields no answers.
 
Dataset activate is giving me problems. If I run it by itself it’s fine. But if I do
 
Dataset name blah.
Dataset activate blah.
 
It’s as if dataset activate didn’t run.
 
Any experience, fixes?
 
Thanks
Matt
 
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648
 

Reply | Threaded
Open this post in threaded view
|

Re: dataset activate bug?

Daniel J. Robertson
In reply to this post by mpirritano

The DATASET NAME command operates on the dataset that is currently active. Your syntax below appears to merely change the name of the currently active dataset, then activate it again, which is redundant. A better option is to name the dataset immediately after the GET FILE command, e.g.,

 

GET FILE x .

DATASET NAME FileX .

GET FILE y .

DATASET NAME FileY .

 

Then use the DATASET ACTIVATE commands to place the focus on one dataset or other. Note also that the ACTIVE dataset is not necessarily the same as the dataset in the ‘front’.

 

--
Daniel Robertson
Senior Research and Planning Associate
Institutional Research and Planning
Cornell University / irp.cornell.edu

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Pirritano, Matthew
Sent: Friday, January 15, 2010 2:10 PM
To: [hidden email]
Subject: Re: [SPSSX-L] dataset activate bug?

 

I should clarify.  I have two datasets open. One that was open and one that opened second. I want to activate the second one. So I name it and then activate it. But the first one which also has a name remains active.

 

Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648


From: Jon K Peck [mailto:[hidden email]]
Sent: Friday, January 15, 2010 11:08 AM
To: Pirritano, Matthew
Cc: [hidden email]
Subject: Re: [SPSSX-L] dataset activate bug?

 


 That's because in this case it IS a no-op.  DATASET NAME assigns a name to the current dataset, so activating that same dataset is redundant.

HTH,

Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435

From:

"Pirritano, Matthew" <[hidden email]>

To:

[hidden email]

Date:

01/15/2010 10:43 AM

Subject:

[SPSSX-L] dataset activate bug?

Sent by:

"SPSSX(r) Discussion" <[hidden email]>

 





Listerees,
 
A google and archive search yields no answers.
 
Dataset activate is giving me problems. If I run it by itself it’s fine. But if I do
 
Dataset name blah.
Dataset activate blah.
 
It’s as if dataset activate didn’t run.
 
Any experience, fixes?
 
Thanks
Matt
 
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648
 

Reply | Threaded
Open this post in threaded view
|

Re: dataset activate bug?

mpirritano
In reply to this post by mpirritano

Thanks Daniel.

 

What I am doing is this

 

Get file x

Dataset name x

Dataset activate x

 

Get file y

Dataset name y [this is working. It gives the new dataset the correct name]

Dataset activate y [not working, dataset x is still active]

 

Thanks

matt

 

Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648


From: Daniel J. Robertson [mailto:[hidden email]]
Sent: Friday, January 15, 2010 11:24 AM
To: Pirritano, Matthew
Subject: RE: [SPSSX-L] dataset activate bug?

 

The DATASET NAME command operates on the dataset that is currently active. Your syntax below appears to merely change the name of the currently active dataset, then activate it again, which is redundant. A better option is to name the dataset immediately after the GET FILE command, e.g.,

 

GET FILE x .

DATASET NAME FileX .

GET FILE y .

DATASET NAME FileY .

 

Then use the DATASET ACTIVATE commands to place the focus on one dataset or other. Note also that the ACTIVE dataset is not necessarily the same as the dataset in the ‘front’.

 

--
Daniel Robertson
Senior Research and Planning Associate
Institutional Research and Planning
Cornell University / irp.cornell.edu

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Pirritano, Matthew
Sent: Friday, January 15, 2010 2:10 PM
To: [hidden email]
Subject: Re: [SPSSX-L] dataset activate bug?

 

I should clarify.  I have two datasets open. One that was open and one that opened second. I want to activate the second one. So I name it and then activate it. But the first one which also has a name remains active.

 

Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648


From: Jon K Peck [mailto:[hidden email]]
Sent: Friday, January 15, 2010 11:08 AM
To: Pirritano, Matthew
Cc: [hidden email]
Subject: Re: [SPSSX-L] dataset activate bug?

 


 That's because in this case it IS a no-op.  DATASET NAME assigns a name to the current dataset, so activating that same dataset is redundant.

HTH,

Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435

From:

"Pirritano, Matthew" <[hidden email]>

To:

[hidden email]

Date:

01/15/2010 10:43 AM

Subject:

[SPSSX-L] dataset activate bug?

Sent by:

"SPSSX(r) Discussion" <[hidden email]>

 





Listerees,
 
A google and archive search yields no answers.
 
Dataset activate is giving me problems. If I run it by itself it’s fine. But if I do
 
Dataset name blah.
Dataset activate blah.
 
It’s as if dataset activate didn’t run.
 
Any experience, fixes?
 
Thanks
Matt
 
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648
 

Reply | Threaded
Open this post in threaded view
|

Re: dataset activate bug?

Daniel J. Robertson

Ah, I see now. Try adding the WINDOW keyword to the DATASET NAME command – this more-or-less activates the dataset as it opens (I don’t fully understand all the nuances of the dataset behavior, hence the qualification). Then you won’t need the DATASET ACTIVATE commands to place the focus as you want and you won’t get the behavior you’re seeing. E.g.,

 

GET FILE x .

DATASET NAME FileX WINDOW = front .

GET FILE y .

DATASET NAME FileY WINDOW = front  .



From the DATASET NAME section of the syntax manual:

 

WINDOW Keyword

The WINDOW keyword controls the state of the Data Editor window associated with the dataset.

ASIS The Data Editor window containing the dataset is not affected. This is the default.

FRONT The Data Editor window containing the dataset is brought to the front and the dataset

becomes the active dataset for dialog boxes.

 

--
Daniel Robertson
Senior Research and Planning Associate
Institutional Research and Planning
Cornell University / irp.cornell.edu

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Pirritano, Matthew
Sent: Friday, January 15, 2010 2:31 PM
To: [hidden email]
Subject: Re: [SPSSX-L] dataset activate bug?

 

Thanks Daniel.

 

What I am doing is this

 

Get file x

Dataset name x

Dataset activate x

 

Get file y

Dataset name y [this is working. It gives the new dataset the correct name]

Dataset activate y [not working, dataset x is still active]

 

Thanks

matt

 

Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648


From: Daniel J. Robertson [mailto:[hidden email]]
Sent: Friday, January 15, 2010 11:24 AM
To: Pirritano, Matthew
Subject: RE: [SPSSX-L] dataset activate bug?

 

The DATASET NAME command operates on the dataset that is currently active. Your syntax below appears to merely change the name of the currently active dataset, then activate it again, which is redundant. A better option is to name the dataset immediately after the GET FILE command, e.g.,

 

GET FILE x .

DATASET NAME FileX .

GET FILE y .

DATASET NAME FileY .

 

Then use the DATASET ACTIVATE commands to place the focus on one dataset or other. Note also that the ACTIVE dataset is not necessarily the same as the dataset in the ‘front’.

 

--
Daniel Robertson
Senior Research and Planning Associate
Institutional Research and Planning
Cornell University / irp.cornell.edu

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Pirritano, Matthew
Sent: Friday, January 15, 2010 2:10 PM
To: [hidden email]
Subject: Re: [SPSSX-L] dataset activate bug?

 

I should clarify.  I have two datasets open. One that was open and one that opened second. I want to activate the second one. So I name it and then activate it. But the first one which also has a name remains active.

 

Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648


From: Jon K Peck [mailto:[hidden email]]
Sent: Friday, January 15, 2010 11:08 AM
To: Pirritano, Matthew
Cc: [hidden email]
Subject: Re: [SPSSX-L] dataset activate bug?

 


 That's because in this case it IS a no-op.  DATASET NAME assigns a name to the current dataset, so activating that same dataset is redundant.

HTH,

Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435

From:

"Pirritano, Matthew" <[hidden email]>

To:

[hidden email]

Date:

01/15/2010 10:43 AM

Subject:

[SPSSX-L] dataset activate bug?

Sent by:

"SPSSX(r) Discussion" <[hidden email]>

 





Listerees,
 
A google and archive search yields no answers.
 
Dataset activate is giving me problems. If I run it by itself it’s fine. But if I do
 
Dataset name blah.
Dataset activate blah.
 
It’s as if dataset activate didn’t run.
 
Any experience, fixes?
 
Thanks
Matt
 
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648
 

Reply | Threaded
Open this post in threaded view
|

Re: dataset activate bug?

Marks, Jim
In reply to this post by mpirritano

Try:

 

DATASET NAME aaaaa WINDOW = FRONT.

 

Jim Marks

Director, Market Research

x1616

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Pirritano, Matthew
Sent: Friday, January 15, 2010 1:31 PM
To: [hidden email]
Subject: Re: dataset activate bug?

 

Thanks Daniel.

 

What I am doing is this

 

Get file x

Dataset name x

Dataset activate x

 

Get file y

Dataset name y [this is working. It gives the new dataset the correct name]

Dataset activate y [not working, dataset x is still active]

 

Thanks

matt

 

Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648


From: Daniel J. Robertson [mailto:[hidden email]]
Sent: Friday, January 15, 2010 11:24 AM
To: Pirritano, Matthew
Subject: RE: [SPSSX-L] dataset activate bug?

 

The DATASET NAME command operates on the dataset that is currently active. Your syntax below appears to merely change the name of the currently active dataset, then activate it again, which is redundant. A better option is to name the dataset immediately after the GET FILE command, e.g.,

 

GET FILE x .

DATASET NAME FileX .

GET FILE y .

DATASET NAME FileY .

 

Then use the DATASET ACTIVATE commands to place the focus on one dataset or other. Note also that the ACTIVE dataset is not necessarily the same as the dataset in the ‘front’.

 

--
Daniel Robertson
Senior Research and Planning Associate
Institutional Research and Planning
Cornell University / irp.cornell.edu

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Pirritano, Matthew
Sent: Friday, January 15, 2010 2:10 PM
To: [hidden email]
Subject: Re: [SPSSX-L] dataset activate bug?

 

I should clarify.  I have two datasets open. One that was open and one that opened second. I want to activate the second one. So I name it and then activate it. But the first one which also has a name remains active.

 

Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648


From: Jon K Peck [mailto:[hidden email]]
Sent: Friday, January 15, 2010 11:08 AM
To: Pirritano, Matthew
Cc: [hidden email]
Subject: Re: [SPSSX-L] dataset activate bug?

 


 That's because in this case it IS a no-op.  DATASET NAME assigns a name to the current dataset, so activating that same dataset is redundant.

HTH,

Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435

From:

"Pirritano, Matthew" <[hidden email]>

To:

[hidden email]

Date:

01/15/2010 10:43 AM

Subject:

[SPSSX-L] dataset activate bug?

Sent by:

"SPSSX(r) Discussion" <[hidden email]>

 





Listerees,
 
A google and archive search yields no answers.
 
Dataset activate is giving me problems. If I run it by itself it’s fine. But if I do
 
Dataset name blah.
Dataset activate blah.
 
It’s as if dataset activate didn’t run.
 
Any experience, fixes?
 
Thanks
Matt
 
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648
 

Reply | Threaded
Open this post in threaded view
|

Re: dataset activate bug?

Jon K Peck
In reply to this post by mpirritano

get file="%s6%\misc\tests\first.sav".
dataset name first.
get file="%s6%\misc\tests\second.sav".
dataset name second.
DATASET DISPLAY.

produces
Datasets
first
seconda
a. Active dataset



Perhaps you are confusing active in the backend with active in the frontend.  In the frontend, activate state is affected by clicking on a Data Editor window.  The syntax window shows which dataset will be active in the backend when syntax is run.

HTH,

Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435



From: "Pirritano, Matthew" <[hidden email]>
To: [hidden email]
Date: 01/15/2010 12:14 PM
Subject: Re: [SPSSX-L] dataset activate bug?
Sent by: "SPSSX(r) Discussion" <[hidden email]>





I should clarify.  I have two datasets open. One that was open and one that opened second. I want to activate the second one. So I name it and then activate it. But the first one which also has a name remains active.
 
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648



From: Jon K Peck [mailto:peck@...]
Sent:
Friday, January 15, 2010 11:08 AM
To:
Pirritano, Matthew
Cc:
[hidden email]
Subject:
Re: [SPSSX-L] dataset activate bug?

 

That's because in this case it IS a no-op.  DATASET NAME assigns a name to the current dataset, so activating that same dataset is redundant.


HTH,


Jon Peck
SPSS, an IBM Company
[hidden email]
312-651-3435

From: "Pirritano, Matthew" <[hidden email]>
To: [hidden email]
Date: 01/15/2010 10:43 AM
Subject: [SPSSX-L] dataset activate bug?
Sent by: "SPSSX(r) Discussion" <[hidden email]>

 






Listerees,

 
A google and archive search yields no answers.

 
Dataset activate is giving me problems. If I run it by itself it’s fine. But if I do

 
Dataset name blah.

Dataset activate blah.

 
It’s as if dataset activate didn’t run.
 
Any experience, fixes?

 
Thanks

Matt

 
Matthew Pirritano, Ph.D.

Research Analyst IV

Medical Services Initiative (MSI)

Orange County Health Care Agency

(714) 568-5648