Data Set Activate Syntax

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

Data Set Activate Syntax

Andrew Rudd
Hi All,
 
When pasting syntax from the GUI windows the 'DATASET ACTIVATE DataSet1.' command always comes up.
 
Is there anyway that you can stop this from occurring or is it just a new feature added to v17?
 
Thanks
Andrew

Unintended Recipient: This message (and/or any files transmitted with it) contains confidential and/or privileged information for use by the intended recipient. If you have received this message in error, we apologise and request that you immediately destroy all trace of this message and/or attached files and do not use, copy, disseminate or otherwise action. It would also be appreciated if you could notify the Help Desk on 0800 502 442.

Disclaimer: Any views expressed in this message (or attached files) are those of the individual sender, except where the message clearly states otherwise and the sender is authorised to state them to be the views of the organisation.

P Please Consider the Environment before Printing this e-mail


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Reply | Threaded
Open this post in threaded view
|

Re: Data Set Activate Syntax

Oliver, Richard
Try:
 
Edit>Options
 
Click the General tab.
 
Select "Open only one dataset at a time"


From: SPSSX(r) Discussion on behalf of Andrew Rudd
Sent: Mon 9/14/2009 5:16 PM
To: [hidden email]
Subject: Data Set Activate Syntax

Hi All,
 
When pasting syntax from the GUI windows the 'DATASET ACTIVATE DataSet1.' command always comes up.
 
Is there anyway that you can stop this from occurring or is it just a new feature added to v17?
 
Thanks
Andrew

Unintended Recipient: This message (and/or any files transmitted with it) contains confidential and/or privileged information for use by the intended recipient. If you have received this message in error, we apologise and request that you immediately destroy all trace of this message and/or attached files and do not use, copy, disseminate or otherwise action. It would also be appreciated if you could notify the Help Desk on 0800 502 442.

Disclaimer: Any views expressed in this message (or attached files) are those of the individual sender, except where the message clearly states otherwise and the sender is authorised to state them to be the views of the organisation.

P Please Consider the Environment before Printing this e-mail


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Reply | Threaded
Open this post in threaded view
|

Re: Data Set Activate Syntax

Richard Ristow
In reply to this post by Andrew Rudd
At 06:16 PM 9/14/2009, Andrew Rudd wrote:

When pasting syntax from the GUI windows the 'DATASET ACTIVATE DataSet1.' command always comes up.

This is a case where SPSS, while adding the DATASET facility, painted itself into a corner.

There are two 'distinguished' datasets in interactive SPSS: the 'active' dataset, which syntax commands act on; and the 'foreground' dataset, the one whose window is in front, which is the one whose variables you see in  the GUI menus. (It doesn't help that some SPSS documentation refers to the foreground dataset as the 'active' dataset.)

If they aren't the same (and they needn't be), code you click up from the GUI may fail totally, because it's for a dataset other than the 'active' one. SPSS's work-around is to generate a DATASET ACTIVATE to make the foreground dataset active. That's what you're seeing.
.....................................................
For more detail, there was a thread '"Active" dataset' begun Mon, 30 Apr 2007 that discussed this at length.

From that thread, 2 May 2007 11:00:34 -0500, by "Peck, Jon" <[hidden email]> (He says  'active in the frontend' where I say 'foreground', and 'active in the backend' where I say 'active'):

The dialogs show information relative to the frontend current dataset.  That's the one with the active window title bar.  Whenever you click a DE window, it becomes active IN THE FRONTEND ONLY.

When you click OK, the backend is notified of which dataset it should make active.  It does that, and it is automatically in sync with the frontend.

However, if you paste syntax, the dialog does not generate a DATASET ACTIVATE.  But when you do a Run command, the currently active DE window is activated in the backend, and, with luck, things are again in sync.

If you just save the dialog-generated syntax, or if you have activated a different dataset in the frontend in between pasting and running, things can be out of sync.

See also my summary, Tue, 8 May 2007 16:20:18 -0400, Richard Ristow <[hidden email]>
===================== 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