|
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 |
|
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
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 |
|
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]]
|
|
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’. -- From: SPSSX(r) Discussion
[mailto:[hidden email]] On Behalf Of Pirritano, Matthew 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]]
|
|
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]] 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’. -- From: SPSSX(r)
Discussion [mailto:[hidden email]] On
Behalf Of Pirritano, Matthew 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]]
|
|
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. -- From: SPSSX(r) Discussion
[mailto:[hidden email]] On Behalf Of Pirritano, Matthew 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]] 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’. -- From: SPSSX(r) Discussion
[mailto:[hidden email]] On Behalf Of Pirritano, Matthew 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]]
|
|
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 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]] 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’. -- From: SPSSX(r)
Discussion [mailto:[hidden email]] On Behalf Of Pirritano,
Matthew 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]]
|
|
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
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
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
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 |
| Free forum by Nabble | Edit this page |
