How to close the working dataset?

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

How to close the working dataset?

Kirill Orlov
I have two datasets, X and Y. Y is currently the working (active) .
I want to close completely Y.

The classic solution is
DATASET CLOSE *.
DATASET ACTIVATE X.

or

DATASET ACTIVATE X.
DATASET CLOSE Y.

The problem however is that I don't know the name of dataset X nor I want to change it. It can be any and I don't know it, would like to keep it as is. I won't be using any Python function to get to know it. How to close Y in this situation? Your suggestions, please. No Python solutions, please (or, you are welcome with them, but they will be irrelevant to me this time).

===================== 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: How to close the working dataset?

Kirill Orlov
P.S. There is a time before the current time when X was the active dataset. Therefore I could have be doing something you advice at that time, having X as active.

===================== 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: How to close the working dataset?

John F Hall
In reply to this post by Kirill Orlov

How about, with Y Data Editor open, use GUI sequence:

 

File >> Save As >> Y1

 

. . then click on the little red X in the top right corner to close both files?  Or have I missed the point?

 

John F Hall

[Retired academic survey researcher]

IBM-SPSS Academic Author 9900074

 

Email:             [hidden email]

Website:          http://surveyresearch.weebly.com/

SPSS course:   http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html

Research:        http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Kirill Orlov
Sent: 08 December 2017 07:08
To: [hidden email]
Subject: How to close the working dataset?

 

I have two datasets, X and Y. Y is currently the working (active) .
I want to close completely Y.

The classic solution is
DATASET CLOSE *.
DATASET ACTIVATE X.

or

DATASET ACTIVATE X.
DATASET CLOSE Y.

The problem however is that I don't know the name of dataset X nor I want to change it. It can be any and I don't know it, would like to keep it as is. I won't be using any Python function to get to know it. How to close Y in this situation? Your suggestions, please. No Python solutions, please (or, you are welcome with them, but they will be irrelevant to me this time).

===================== 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: How to close the working dataset?

Kirill Orlov
John, are you kidding me :-) ?
None of GUI for me, only SPSS syntax.


08.12.2017 12:35, John F Hall пишет:

How about, with Y Data Editor open, use GUI sequence:

 

File >> Save As >> Y1

 

. . then click on the little red X in the top right corner to close both files?  Or have I missed the point?



===================== 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: How to close the working dataset?

John F Hall

Kirill

 

Did a test run by saving an existing dataset as Y,

 

GET

  FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.

DATASET NAME DataSet1 WINDOW=FRONT.

 

SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'

  /COMPRESSED.

 

then saved it again as Y1.

 

SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'

  /COMPRESSED.

 

Y1 already open: open Y

 

GET

  FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.

DATASET NAME DataSet2 WINDOW=FRONT.

DATASET ACTIVATE DataSet1.

 

Close Y and Y1

 

DATASET CLOSE DataSet2.

DATASET CLOSE DataSet1.

 

Both Y and Y1 closed successfully.

 

John F Hall

[Retired academic survey researcher]

IBM-SPSS Academic Author 9900074

 

Email:             [hidden email]

Website:          http://surveyresearch.weebly.com/

SPSS course:   http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html

Research:        http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html

 

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Kirill Orlov
Sent: 08 December 2017 11:03
To: [hidden email]
Subject: Re: How to close the working dataset?

 

John, are you kidding me :-) ?
None of GUI for me, only SPSS syntax.

08.12.2017 12:35, John F Hall пишет:

How about, with Y Data Editor open, use GUI sequence:

 

File >> Save As >> Y1

 

. . then click on the little red X in the top right corner to close both files?  Or have I missed the point?

 

 

===================== 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: How to close the working dataset?

Jon Peck
If you have two datasets and you close the active one, the other one automatically becomes the active dataset.

On Fri, Dec 8, 2017 at 3:18 AM, John F Hall <[hidden email]> wrote:

Kirill

 

Did a test run by saving an existing dataset as Y,

 

GET

  FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.

DATASET NAME DataSet1 WINDOW=FRONT.

 

SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'

  /COMPRESSED.

 

then saved it again as Y1.

 

SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'

  /COMPRESSED.

 

Y1 already open: open Y

 

GET

  FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.

DATASET NAME DataSet2 WINDOW=FRONT.

DATASET ACTIVATE DataSet1.

 

Close Y and Y1

 

DATASET CLOSE DataSet2.

DATASET CLOSE DataSet1.

 

Both Y and Y1 closed successfully.

 

John F Hall

[Retired academic survey researcher]

IBM-SPSS Academic Author 9900074

 

Email:             [hidden email]

Website:          http://surveyresearch.weebly.com/

SPSS course:   http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html

Research:        http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html

 

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Kirill Orlov
Sent: 08 December 2017 11:03
To: [hidden email]
Subject: Re: How to close the working dataset?

 

John, are you kidding me :-) ?
None of GUI for me, only SPSS syntax.

08.12.2017 12:35, John F Hall пишет:

How about, with Y Data Editor open, use GUI sequence:

 

File >> Save As >> Y1

 

. . then click on the little red X in the top right corner to close both files?  Or have I missed the point?

 

 

===================== 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



--
Jon K Peck
[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
Reply | Threaded
Open this post in threaded view
|

Re: How to close the working dataset?

Bruce Weaver
Administrator
I initially thought Kirill was referring to the fact that when one closes one
of two datasets, the name associated with the remaining one gets removed.
At least that used to happen--but it appears to have been fixed.  I just
tried the following using version 25.0.0.1.

DATASET ACTIVATE X.
LIST.

DATASET ACTIVATE Y.
LIST.

* Close Y completely.
DATASET CLOSE Y.

DATASET ACTIVATE X.
LIST.

In older versions, that last DATASET ACTIVATE command would have generated a
warning message, because the dataset name X would have been removed when I
closed Y.  



Jon Peck wrote
> If you have two datasets and you close the active one, the other one
> automatically becomes the active dataset.
>
> On Fri, Dec 8, 2017 at 3:18 AM, John F Hall &lt;

> johnfhall@

> &gt; wrote:
>
>> Kirill
>>
>>
>>
>> Did a test run by saving an existing dataset as Y,
>>
>>
>>
>> GET
>>
>>   FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.
>>
>> DATASET NAME DataSet1 WINDOW=FRONT.
>>
>>
>>
>> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'
>>
>>   /COMPRESSED.
>>
>>
>>
>> then saved it again as Y1.
>>
>>
>>
>> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'
>>
>>   /COMPRESSED.
>>
>>
>>
>> Y1 already open: open Y
>>
>>
>>
>> GET
>>
>>   FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.
>>
>> DATASET NAME DataSet2 WINDOW=FRONT.
>>
>> DATASET ACTIVATE DataSet1.
>>
>>
>>
>> Close Y and Y1
>>
>>
>>
>> DATASET CLOSE DataSet2.
>>
>> DATASET CLOSE DataSet1.
>>
>>
>>
>> Both Y and Y1 closed successfully.
>>
>>
>>
>> John F Hall
>>
>> [Retired academic survey researcher]
>>
>> IBM-SPSS Academic Author 9900074
>>
>>
>>
>> Email:             *

> johnfhall@

> * &lt;

> johnfhall@

> SPSSX-L@.UGA

> ] *On Behalf
>> Of *Kirill Orlov
>> *Sent:* 08 December 2017 11:03
>> *To:*

> SPSSX-L@.UGA

>> *Subject:* Re: How to close the working dataset?
>>
>>
>>
>> John, are you kidding me :-) ?
>> None of GUI for me, only SPSS syntax.
>>
>> 08.12.2017 12:35, John F Hall пишет:
>>
>> How about, with Y Data Editor open, use GUI sequence:
>>
>>
>>
>> File >> Save As >> Y1
>>
>>
>>
>> . . then click on the little red X in the top right corner to close both
>> files?  Or have I missed the point?
>>
>>
>>
>>
>>
>> ===================== To manage your subscription to SPSSX-L, send a
>> message to *

> LISTSERV@.UGA

> * &lt;

> LISTSERV@.UGA

> &gt; (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

> LISTSERV@.UGA

>  (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
>>
>
>
>
> --
> Jon K Peck

> jkpeck@

>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.
Reply | Threaded
Open this post in threaded view
|

Re: How to close the working dataset?

Jon Peck
I have never heard of that behavior.  I tried this in V24 (with fixpack), and the dataset name was not removed from the other file.  I can't say about V23 or earlier.

On Fri, Dec 8, 2017 at 7:45 AM, Bruce Weaver <[hidden email]> wrote:
I initially thought Kirill was referring to the fact that when one closes one
of two datasets, the name associated with the remaining one gets removed.
At least that used to happen--but it appears to have been fixed.  I just
tried the following using version 25.0.0.1.

DATASET ACTIVATE X.
LIST.

DATASET ACTIVATE Y.
LIST.

* Close Y completely.
DATASET CLOSE Y.

DATASET ACTIVATE X.
LIST.

In older versions, that last DATASET ACTIVATE command would have generated a
warning message, because the dataset name X would have been removed when I
closed Y.



Jon Peck wrote
> If you have two datasets and you close the active one, the other one
> automatically becomes the active dataset.
>
> On Fri, Dec 8, 2017 at 3:18 AM, John F Hall <

> johnfhall@

> > wrote:
>
>> Kirill
>>
>>
>>
>> Did a test run by saving an existing dataset as Y,
>>
>>
>>
>> GET
>>
>>   FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.
>>
>> DATASET NAME DataSet1 WINDOW=FRONT.
>>
>>
>>
>> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'
>>
>>   /COMPRESSED.
>>
>>
>>
>> then saved it again as Y1.
>>
>>
>>
>> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'
>>
>>   /COMPRESSED.
>>
>>
>>
>> Y1 already open: open Y
>>
>>
>>
>> GET
>>
>>   FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.
>>
>> DATASET NAME DataSet2 WINDOW=FRONT.
>>
>> DATASET ACTIVATE DataSet1.
>>
>>
>>
>> Close Y and Y1
>>
>>
>>
>> DATASET CLOSE DataSet2.
>>
>> DATASET CLOSE DataSet1.
>>
>>
>>
>> Both Y and Y1 closed successfully.
>>
>>
>>
>> John F Hall
>>
>> [Retired academic survey researcher]
>>
>> IBM-SPSS Academic Author 9900074
>>
>>
>>
>> Email:             *

> johnfhall@

> * <

> johnfhall@

> >
>>
>> Website:          *http://surveyresearch.weebly.com/*
>> <http://surveyresearch.weebly.com/>
>>
>> SPSS course:
>> *http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html*
>> <http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html>
>>
>> Research:
>> *http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html*
>> <http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html>
>>
>>
>>
>>
>>
>> *From:* SPSSX(r) Discussion [mailto:

> SPSSX-L@.UGA

> ] *On Behalf
>> Of *Kirill Orlov
>> *Sent:* 08 December 2017 11:03
>> *To:*

> SPSSX-L@.UGA

>> *Subject:* Re: How to close the working dataset?
>>
>>
>>
>> John, are you kidding me :-) ?
>> None of GUI for me, only SPSS syntax.
>>
>> 08.12.2017 12:35, John F Hall пишет:
>>
>> How about, with Y Data Editor open, use GUI sequence:
>>
>>
>>
>> File >> Save As >> Y1
>>
>>
>>
>> . . then click on the little red X in the top right corner to close both
>> files?  Or have I missed the point?
>>
>>
>>
>>
>>
>> ===================== To manage your subscription to SPSSX-L, send a
>> message to *

> LISTSERV@.UGA

> * <

> LISTSERV@.UGA

> > (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

> LISTSERV@.UGA

>  (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
>>
>
>
>
> --
> Jon K Peck

> jkpeck@

>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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



--
Jon K Peck
[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
Reply | Threaded
Open this post in threaded view
|

Re: How to close the working dataset?

Kirill Orlov
Jon,
Did DATASET CLOSE changed since version 22?

DATASET CLOSE Y (or DATASET CLOSE *) when Y is the active dataset does not close it. It only leaves that dataset unnamed. That was the behavior since version 15. DATASET CLOSE doesn't close it and doesn't make another dataset the active one.


08.12.2017 20:56, Jon Peck пишет:
I have never heard of that behavior.  I tried this in V24 (with fixpack), and the dataset name was not removed from the other file.  I can't say about V23 or earlier.

On Fri, Dec 8, 2017 at 7:45 AM, Bruce Weaver <[hidden email]> wrote:
I initially thought Kirill was referring to the fact that when one closes one
of two datasets, the name associated with the remaining one gets removed.
At least that used to happen--but it appears to have been fixed.  I just
tried the following using version 25.0.0.1.

DATASET ACTIVATE X.
LIST.

DATASET ACTIVATE Y.
LIST.

* Close Y completely.
DATASET CLOSE Y.

DATASET ACTIVATE X.
LIST.

In older versions, that last DATASET ACTIVATE command would have generated a
warning message, because the dataset name X would have been removed when I
closed Y.



Jon Peck wrote
> If you have two datasets and you close the active one, the other one
> automatically becomes the active dataset.
>
> On Fri, Dec 8, 2017 at 3:18 AM, John F Hall <

> johnfhall@

> > wrote:
>
>> Kirill
>>
>>
>>
>> Did a test run by saving an existing dataset as Y,
>>
>>
>>
>> GET
>>
>>   FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.
>>
>> DATASET NAME DataSet1 WINDOW=FRONT.
>>
>>
>>
>> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'
>>
>>   /COMPRESSED.
>>
>>
>>
>> then saved it again as Y1.
>>
>>
>>
>> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'
>>
>>   /COMPRESSED.
>>
>>
>>
>> Y1 already open: open Y
>>
>>
>>
>> GET
>>
>>   FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.
>>
>> DATASET NAME DataSet2 WINDOW=FRONT.
>>
>> DATASET ACTIVATE DataSet1.
>>
>>
>>
>> Close Y and Y1
>>
>>
>>
>> DATASET CLOSE DataSet2.
>>
>> DATASET CLOSE DataSet1.
>>
>>
>>
>> Both Y and Y1 closed successfully.
>>
>>
>>
>> John F Hall
>>
>> [Retired academic survey researcher]
>>
>> IBM-SPSS Academic Author 9900074
>>
>>
>>
>> Email:             *

> johnfhall@

> * <

> johnfhall@

> >
>>
>> Website:          *http://surveyresearch.weebly.com/*
>> <http://surveyresearch.weebly.com/>
>>
>> SPSS course:
>> *http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html*
>> <http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html>
>>
>> Research:
>> *http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html*
>> <http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html>
>>
>>
>>
>>
>>
>> *From:* SPSSX(r) Discussion [mailto:

> [hidden email]

> ] *On Behalf
>> Of *Kirill Orlov
>> *Sent:* 08 December 2017 11:03
>> *To:*

> [hidden email]

>> *Subject:* Re: How to close the working dataset?
>>
>>
>>
>> John, are you kidding me :-) ?
>> None of GUI for me, only SPSS syntax.
>>
>> 08.12.2017 12:35, John F Hall пишет:
>>
>> How about, with Y Data Editor open, use GUI sequence:
>>
>>
>>
>> File >> Save As >> Y1
>>
>>
>>
>> . . then click on the little red X in the top right corner to close both
>> files?  Or have I missed the point?
>>
>>
>>
>>
>>
>> ===================== To manage your subscription to SPSSX-L, send a
>> message to *

> [hidden email]

> * <

> [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
>>
>
>
>
> --
> Jon K Peck

> jkpeck@

>
> =====================
> 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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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



--
Jon K Peck
[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


===================== 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: How to close the working dataset?

Rick Oliver
In reply to this post by Jon Peck
If there is only one open dataset, Dataset Close will not close it. It will only make it unnamed if it had a name. If there is more than one open, then Dataset Close should close the specified one.

To really close all datasets:

dataset close all.
new file.

On Dec 8, 2017 12:00 PM, "Jon Peck" <[hidden email]> wrote:
I have never heard of that behavior.  I tried this in V24 (with fixpack), and the dataset name was not removed from the other file.  I can't say about V23 or earlier.

On Fri, Dec 8, 2017 at 7:45 AM, Bruce Weaver <[hidden email]> wrote:
I initially thought Kirill was referring to the fact that when one closes one
of two datasets, the name associated with the remaining one gets removed.
At least that used to happen--but it appears to have been fixed.  I just
tried the following using version 25.0.0.1.

DATASET ACTIVATE X.
LIST.

DATASET ACTIVATE Y.
LIST.

* Close Y completely.
DATASET CLOSE Y.

DATASET ACTIVATE X.
LIST.

In older versions, that last DATASET ACTIVATE command would have generated a
warning message, because the dataset name X would have been removed when I
closed Y.



Jon Peck wrote
> If you have two datasets and you close the active one, the other one
> automatically becomes the active dataset.
>
> On Fri, Dec 8, 2017 at 3:18 AM, John F Hall <

> johnfhall@

> > wrote:
>
>> Kirill
>>
>>
>>
>> Did a test run by saving an existing dataset as Y,
>>
>>
>>
>> GET
>>
>>   FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.
>>
>> DATASET NAME DataSet1 WINDOW=FRONT.
>>
>>
>>
>> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'
>>
>>   /COMPRESSED.
>>
>>
>>
>> then saved it again as Y1.
>>
>>
>>
>> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'
>>
>>   /COMPRESSED.
>>
>>
>>
>> Y1 already open: open Y
>>
>>
>>
>> GET
>>
>>   FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.
>>
>> DATASET NAME DataSet2 WINDOW=FRONT.
>>
>> DATASET ACTIVATE DataSet1.
>>
>>
>>
>> Close Y and Y1
>>
>>
>>
>> DATASET CLOSE DataSet2.
>>
>> DATASET CLOSE DataSet1.
>>
>>
>>
>> Both Y and Y1 closed successfully.
>>
>>
>>
>> John F Hall
>>
>> [Retired academic survey researcher]
>>
>> IBM-SPSS Academic Author 9900074
>>
>>
>>
>> Email:             *

> johnfhall@

> * <

> johnfhall@

> >
>>
>> Website:          *http://surveyresearch.weebly.com/*
>> <http://surveyresearch.weebly.com/>
>>
>> SPSS course:
>> *http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html*
>> <http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html>
>>
>> Research:
>> *http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html*
>> <http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html>
>>
>>
>>
>>
>>
>> *From:* SPSSX(r) Discussion [mailto:

> SPSSX-L@.UGA

> ] *On Behalf
>> Of *Kirill Orlov
>> *Sent:* 08 December 2017 11:03
>> *To:*

> SPSSX-L@.UGA

>> *Subject:* Re: How to close the working dataset?
>>
>>
>>
>> John, are you kidding me :-) ?
>> None of GUI for me, only SPSS syntax.
>>
>> 08.12.2017 12:35, John F Hall пишет:
>>
>> How about, with Y Data Editor open, use GUI sequence:
>>
>>
>>
>> File >> Save As >> Y1
>>
>>
>>
>> . . then click on the little red X in the top right corner to close both
>> files?  Or have I missed the point?
>>
>>
>>
>>
>>
>> ===================== To manage your subscription to SPSSX-L, send a
>> message to *

> LISTSERV@.UGA

> * <

> LISTSERV@.UGA

> > (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

> LISTSERV@.UGA

>  (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
>>
>
>
>
> --
> Jon K Peck

> jkpeck@

>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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



--
Jon K Peck
[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
===================== 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: How to close the working dataset?

Kirill Orlov
CSR clearly states it:
The DATASET CLOSE command closes the named dataset.
 -  If the dataset name specified is not the active dataset, that dataset is closed and no longer available in the session.
 -  If the dataset name specified is the active dataset or if an asterisk (*) is specified and the active dataset has a name, the association with that name is broken. The active dataset remains active but has no name.


Oliver, solution

dataset close all. (or close *, or close Y)
new file.

is what I'm using in this situation. However, having empty new file isn't too elegant.


08.12.2017 22:25, Rick Oliver пишет:
If there is only one open dataset, Dataset Close will not close it. It will only make it unnamed if it had a name. If there is more than one open, then Dataset Close should close the specified one.

To really close all datasets:

dataset close all.
new file.


===================== 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: How to close the working dataset?

Jon Peck
In reply to this post by Rick Oliver
Closing a dataset removes its name.  If some other dataset becomes active, then that unnamed dataset actually disappears.  So executing NEW FILE after "closing" a dataset actually removes it from the session.

More sophisticated management of datasets requires Python, but that won't help here, since Kirill is adamantly opposed to Python.

On Fri, Dec 8, 2017 at 12:25 PM, Rick Oliver <[hidden email]> wrote:
If there is only one open dataset, Dataset Close will not close it. It will only make it unnamed if it had a name. If there is more than one open, then Dataset Close should close the specified one.

To really close all datasets:

dataset close all.
new file.

On Dec 8, 2017 12:00 PM, "Jon Peck" <[hidden email]> wrote:
I have never heard of that behavior.  I tried this in V24 (with fixpack), and the dataset name was not removed from the other file.  I can't say about V23 or earlier.

On Fri, Dec 8, 2017 at 7:45 AM, Bruce Weaver <[hidden email]> wrote:
I initially thought Kirill was referring to the fact that when one closes one
of two datasets, the name associated with the remaining one gets removed.
At least that used to happen--but it appears to have been fixed.  I just
tried the following using version 25.0.0.1.

DATASET ACTIVATE X.
LIST.

DATASET ACTIVATE Y.
LIST.

* Close Y completely.
DATASET CLOSE Y.

DATASET ACTIVATE X.
LIST.

In older versions, that last DATASET ACTIVATE command would have generated a
warning message, because the dataset name X would have been removed when I
closed Y.



Jon Peck wrote
> If you have two datasets and you close the active one, the other one
> automatically becomes the active dataset.
>
> On Fri, Dec 8, 2017 at 3:18 AM, John F Hall <

> johnfhall@

> > wrote:
>
>> Kirill
>>
>>
>>
>> Did a test run by saving an existing dataset as Y,
>>
>>
>>
>> GET
>>
>>   FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.
>>
>> DATASET NAME DataSet1 WINDOW=FRONT.
>>
>>
>>
>> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'
>>
>>   /COMPRESSED.
>>
>>
>>
>> then saved it again as Y1.
>>
>>
>>
>> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'
>>
>>   /COMPRESSED.
>>
>>
>>
>> Y1 already open: open Y
>>
>>
>>
>> GET
>>
>>   FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.
>>
>> DATASET NAME DataSet2 WINDOW=FRONT.
>>
>> DATASET ACTIVATE DataSet1.
>>
>>
>>
>> Close Y and Y1
>>
>>
>>
>> DATASET CLOSE DataSet2.
>>
>> DATASET CLOSE DataSet1.
>>
>>
>>
>> Both Y and Y1 closed successfully.
>>
>>
>>
>> John F Hall
>>
>> [Retired academic survey researcher]
>>
>> IBM-SPSS Academic Author 9900074
>>
>>
>>
>> Email:             *

> johnfhall@

> * <

> johnfhall@

> >
>>
>> Website:          *http://surveyresearch.weebly.com/*
>> <http://surveyresearch.weebly.com/>
>>
>> SPSS course:
>> *http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html*
>> <http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html>
>>
>> Research:
>> *http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html*
>> <http://surveyresearch.weebly.com/3-subjective-social-indicators-quality-of-life.html>
>>
>>
>>
>>
>>
>> *From:* SPSSX(r) Discussion [mailto:

> SPSSX-L@.UGA

> ] *On Behalf
>> Of *Kirill Orlov
>> *Sent:* 08 December 2017 11:03
>> *To:*

> SPSSX-L@.UGA

>> *Subject:* Re: How to close the working dataset?
>>
>>
>>
>> John, are you kidding me :-) ?
>> None of GUI for me, only SPSS syntax.
>>
>> 08.12.2017 12:35, John F Hall пишет:
>>
>> How about, with Y Data Editor open, use GUI sequence:
>>
>>
>>
>> File >> Save As >> Y1
>>
>>
>>
>> . . then click on the little red X in the top right corner to close both
>> files?  Or have I missed the point?
>>
>>
>>
>>
>>
>> ===================== To manage your subscription to SPSSX-L, send a
>> message to *

> LISTSERV@.UGA

> * <

> LISTSERV@.UGA

> > (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

> LISTSERV@.UGA

>  (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
>>
>
>
>
> --
> Jon K Peck

> jkpeck@

>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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



--
Jon K Peck
[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



--
Jon K Peck
[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
Reply | Threaded
Open this post in threaded view
|

Re: How to close the working dataset?

Kirill Orlov
In reply to this post by Rick Oliver
I think that SPSS ought to supply DATASET ACTIVATE command with two special keywords in future releases, (RECENT) and (OLDEST).

DATASET CLOSE Y. /*Active dataset gets unnamed
DATASET ACTIVATE (RECENT). /*Then the dataset that was active before Y became active now gets active again and closes the (former Y) completely.

and

DATASET CLOSE Y. /*Active dataset gets unnamed
DATASET ACTIVATE (OLDEST). /*Then the dataset that was created most early now gets active and closes the (former Y) completely.

===================== 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: How to close the working dataset?

Bruce Weaver
Administrator
In reply to this post by Rick Oliver
Sorry, I was not remembering things accurately.  DATASET CLOSE ALL strips the
active dataset of its name--and that is still happening in version 25.0.0.1.
E.g., try this:

*** Start of example ***.
NEW FILE.
DATASET CLOSE ALL.

DATA LIST LIST / junk(F1).
BEGIN DATA
1
END DATA.
DATASET NAME X.

DATA LIST LIST / morejunk(F1).
BEGIN DATA
2
END DATA.
DATASET NAME Y.

DATASET ACTIVATE X.
LIST.

DATASET ACTIVATE Y.
LIST.

* Activate X, then close Y completely.
DATASET ACTIVATE X.
DATASET CLOSE ALL.
*DATASET CLOSE Y.

* DATASET CLOSE ALL strips the dataset name from X.
* DATASET CLOSE Y does not strip the dataset name from X.

DATASET ACTIVATE X.
*** End of example ***.

The DATASET ACTIVATE X line above generates this warning:

Unknown dataset X.
Execution of this command stops.

If I replace DATASET CLOSE ALL with CLOSE Y, X retains its dataset name and
I get no warning message.



Rick Oliver wrote

> If there is only one open dataset, Dataset Close will not close it. It
> will
> only make it unnamed if it had a name. If there is more than one open,
> then
> Dataset Close should close the specified one.
>
> To really close all datasets:
>
> dataset close all.
> new file.
>
> On Dec 8, 2017 12:00 PM, "Jon Peck" &lt;

> jkpeck@

> &gt; wrote:
>
>> I have never heard of that behavior.  I tried this in V24 (with fixpack),
>> and the dataset name was not removed from the other file.  I can't say
>> about V23 or earlier.
>>
>> On Fri, Dec 8, 2017 at 7:45 AM, Bruce Weaver &lt;

> bruce.weaver@

> &gt;
>> wrote:
>>
>>> I initially thought Kirill was referring to the fact that when one
>>> closes
>>> one
>>> of two datasets, the name associated with the remaining one gets
>>> removed.
>>> At least that used to happen--but it appears to have been fixed.  I just
>>> tried the following using version 25.0.0.1.
>>>
>>> DATASET ACTIVATE X.
>>> LIST.
>>>
>>> DATASET ACTIVATE Y.
>>> LIST.
>>>
>>> * Close Y completely.
>>> DATASET CLOSE Y.
>>>
>>> DATASET ACTIVATE X.
>>> LIST.
>>>
>>> In older versions, that last DATASET ACTIVATE command would have
>>> generated a
>>> warning message, because the dataset name X would have been removed when
>>> I
>>> closed Y.
>>>
>>>
>>>
>>> Jon Peck wrote
>>> > If you have two datasets and you close the active one, the other one
>>> > automatically becomes the active dataset.
>>> >
>>> > On Fri, Dec 8, 2017 at 3:18 AM, John F Hall <
>>>
>>> > johnfhall@
>>>
>>> > > wrote:
>>> >
>>> >> Kirill
>>> >>
>>> >>
>>> >>
>>> >> Did a test run by saving an existing dataset as Y,
>>> >>
>>> >>
>>> >>
>>> >> GET
>>> >>
>>> >>   FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.
>>> >>
>>> >> DATASET NAME DataSet1 WINDOW=FRONT.
>>> >>
>>> >>
>>> >>
>>> >> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'
>>> >>
>>> >>   /COMPRESSED.
>>> >>
>>> >>
>>> >>
>>> >> then saved it again as Y1.
>>> >>
>>> >>
>>> >>
>>> >> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'
>>> >>
>>> >>   /COMPRESSED.
>>> >>
>>> >>
>>> >>
>>> >> Y1 already open: open Y
>>> >>
>>> >>
>>> >>
>>> >> GET
>>> >>
>>> >>   FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.
>>> >>
>>> >> DATASET NAME DataSet2 WINDOW=FRONT.
>>> >>
>>> >> DATASET ACTIVATE DataSet1.
>>> >>
>>> >>
>>> >>
>>> >> Close Y and Y1
>>> >>
>>> >>
>>> >>
>>> >> DATASET CLOSE DataSet2.
>>> >>
>>> >> DATASET CLOSE DataSet1.
>>> >>
>>> >>
>>> >>
>>> >> Both Y and Y1 closed successfully.
>>> >>
>>> >>
>>> >>
>>> >> John F Hall
>>> >>
>>> >> [Retired academic survey researcher]
>>> >>
>>> >> IBM-SPSS Academic Author 9900074
>>> >>
>>> >>
>>> >>
>>> >> Email:             *
>>>
>>> > johnfhall@
>>>
>>> > * <
>>>
>>> > johnfhall@
>>>
>>> > >
>>> >>
>>> >> Website:          *http://surveyresearch.weebly.com/*
>>> >> &lt;http://surveyresearch.weebly.com/&gt;
>>> >>
>>> >> SPSS course:
>>> >> *http://surveyresearch.weebly.com/1-survey-analysis-workshop
>>> -spss.html*
>>> >>
>>> &lt;http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html
> &gt;> >
>>> >>
>>> >> Research:
>>> >> *http://surveyresearch.weebly.com/3-subjective-social-indica
>>> tors-quality-of-life.html*
>>> >> &lt;http://surveyresearch.weebly.com/3-subjective-social-indica
> &gt;> tors-quality-of-life.html>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> *From:* SPSSX(r) Discussion [mailto:
>>>
>>> > SPSSX-L@.UGA
>>>
>>> > ] *On Behalf
>>> >> Of *Kirill Orlov
>>> >> *Sent:* 08 December 2017 11:03
>>> >> *To:*
>>>
>>> > SPSSX-L@.UGA
>>>
>>> >> *Subject:* Re: How to close the working dataset?
>>> >>
>>> >>
>>> >>
>>> >> John, are you kidding me :-) ?
>>> >> None of GUI for me, only SPSS syntax.
>>> >>
>>> >> 08.12.2017 12:35, John F Hall пишет:
>>> >>
>>> >> How about, with Y Data Editor open, use GUI sequence:
>>> >>
>>> >>
>>> >>
>>> >> File >> Save As >> Y1
>>> >>
>>> >>
>>> >>
>>> >> . . then click on the little red X in the top right corner to close
>>> both
>>> >> files?  Or have I missed the point?
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> ===================== To manage your subscription to SPSSX-L, send a
>>> >> message to *
>>>
>>> > LISTSERV@.UGA
>>>
>>> > * <
>>>
>>> > LISTSERV@.UGA
>>>
>>> > > (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
>>>
>>> > LISTSERV@.UGA
>>>
>>> >  (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
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Jon K Peck
>>>
>>> > jkpeck@
>>>
>>> >
>>> > =====================
>>> > To manage your subscription to SPSSX-L, send a message to
>>>
>>> > LISTSERV@.UGA
>>>
>>> >  (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
>>>
>>>
>>>
>>>
>>>
>>> -----
>>> --
>>> Bruce Weaver
>>>

> bweaver@

>>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>>>
>>> "When all else fails, RTFM."
>>>
>>> NOTE: My Hotmail account is not monitored regularly.
>>> To send me an e-mail, please use the address shown above.
>>>
>>> --
>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>>

> LISTSERV@.UGA

>  (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
>>>
>>
>>
>>
>> --
>> Jon K Peck
>>

> jkpeck@

>>
>> ===================== To manage your subscription to SPSSX-L, send a
>> message to

> LISTSERV@.UGA

>  (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

> LISTSERV@.UGA

>  (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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.
Reply | Threaded
Open this post in threaded view
|

Re: How to close the working dataset?

Jon Peck
"Sorry, I was not remembering things accurately.  DATASET CLOSE ALL strips the
active dataset of its name--and that is still happening in version 25.0.0.1."

Which is what it is supposed to do.

"If ALL is specified, all associations with datasets are broken. All the datasets except the active dataset
and their data windows are closed and no longer available in the session"

On Fri, Dec 8, 2017 at 3:15 PM, Bruce Weaver <[hidden email]> wrote:
Sorry, I was not remembering things accurately.  DATASET CLOSE ALL strips the
active dataset of its name--and that is still happening in version 25.0.0.1.
E.g., try this:

*** Start of example ***.
NEW FILE.
DATASET CLOSE ALL.

DATA LIST LIST / junk(F1).
BEGIN DATA
1
END DATA.
DATASET NAME X.

DATA LIST LIST / morejunk(F1).
BEGIN DATA
2
END DATA.
DATASET NAME Y.

DATASET ACTIVATE X.
LIST.

DATASET ACTIVATE Y.
LIST.

* Activate X, then close Y completely.
DATASET ACTIVATE X.
DATASET CLOSE ALL.
*DATASET CLOSE Y.

* DATASET CLOSE ALL strips the dataset name from X.
* DATASET CLOSE Y does not strip the dataset name from X.

DATASET ACTIVATE X.
*** End of example ***.

The DATASET ACTIVATE X line above generates this warning:

Unknown dataset X.
Execution of this command stops.

If I replace DATASET CLOSE ALL with CLOSE Y, X retains its dataset name and
I get no warning message.



Rick Oliver wrote
> If there is only one open dataset, Dataset Close will not close it. It
> will
> only make it unnamed if it had a name. If there is more than one open,
> then
> Dataset Close should close the specified one.
>
> To really close all datasets:
>
> dataset close all.
> new file.
>
> On Dec 8, 2017 12:00 PM, "Jon Peck" <

> jkpeck@

> > wrote:
>
>> I have never heard of that behavior.  I tried this in V24 (with fixpack),
>> and the dataset name was not removed from the other file.  I can't say
>> about V23 or earlier.
>>
>> On Fri, Dec 8, 2017 at 7:45 AM, Bruce Weaver <

> bruce.weaver@

> >
>> wrote:
>>
>>> I initially thought Kirill was referring to the fact that when one
>>> closes
>>> one
>>> of two datasets, the name associated with the remaining one gets
>>> removed.
>>> At least that used to happen--but it appears to have been fixed.  I just
>>> tried the following using version 25.0.0.1.
>>>
>>> DATASET ACTIVATE X.
>>> LIST.
>>>
>>> DATASET ACTIVATE Y.
>>> LIST.
>>>
>>> * Close Y completely.
>>> DATASET CLOSE Y.
>>>
>>> DATASET ACTIVATE X.
>>> LIST.
>>>
>>> In older versions, that last DATASET ACTIVATE command would have
>>> generated a
>>> warning message, because the dataset name X would have been removed when
>>> I
>>> closed Y.
>>>
>>>
>>>
>>> Jon Peck wrote
>>> > If you have two datasets and you close the active one, the other one
>>> > automatically becomes the active dataset.
>>> >
>>> > On Fri, Dec 8, 2017 at 3:18 AM, John F Hall <
>>>
>>> > johnfhall@
>>>
>>> > > wrote:
>>> >
>>> >> Kirill
>>> >>
>>> >>
>>> >>
>>> >> Did a test run by saving an existing dataset as Y,
>>> >>
>>> >>
>>> >>
>>> >> GET
>>> >>
>>> >>   FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.
>>> >>
>>> >> DATASET NAME DataSet1 WINDOW=FRONT.
>>> >>
>>> >>
>>> >>
>>> >> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'
>>> >>
>>> >>   /COMPRESSED.
>>> >>
>>> >>
>>> >>
>>> >> then saved it again as Y1.
>>> >>
>>> >>
>>> >>
>>> >> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'
>>> >>
>>> >>   /COMPRESSED.
>>> >>
>>> >>
>>> >>
>>> >> Y1 already open: open Y
>>> >>
>>> >>
>>> >>
>>> >> GET
>>> >>
>>> >>   FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.
>>> >>
>>> >> DATASET NAME DataSet2 WINDOW=FRONT.
>>> >>
>>> >> DATASET ACTIVATE DataSet1.
>>> >>
>>> >>
>>> >>
>>> >> Close Y and Y1
>>> >>
>>> >>
>>> >>
>>> >> DATASET CLOSE DataSet2.
>>> >>
>>> >> DATASET CLOSE DataSet1.
>>> >>
>>> >>
>>> >>
>>> >> Both Y and Y1 closed successfully.
>>> >>
>>> >>
>>> >>
>>> >> John F Hall
>>> >>
>>> >> [Retired academic survey researcher]
>>> >>
>>> >> IBM-SPSS Academic Author 9900074
>>> >>
>>> >>
>>> >>
>>> >> Email:             *
>>>
>>> > johnfhall@
>>>
>>> > * <
>>>
>>> > johnfhall@
>>>
>>> > >
>>> >>
>>> >> Website:          *http://surveyresearch.weebly.com/*
>>> >> <http://surveyresearch.weebly.com/>
>>> >>
>>> >> SPSS course:
>>> >> *http://surveyresearch.weebly.com/1-survey-analysis-workshop
>>> -spss.html*
>>> >>
>>> <http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html
> >> >
>>> >>
>>> >> Research:
>>> >> *http://surveyresearch.weebly.com/3-subjective-social-indica
>>> tors-quality-of-life.html*
>>> >> <http://surveyresearch.weebly.com/3-subjective-social-indica
> >> tors-quality-of-life.html>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> *From:* SPSSX(r) Discussion [mailto:
>>>
>>> > SPSSX-L@.UGA
>>>
>>> > ] *On Behalf
>>> >> Of *Kirill Orlov
>>> >> *Sent:* 08 December 2017 11:03
>>> >> *To:*
>>>
>>> > SPSSX-L@.UGA
>>>
>>> >> *Subject:* Re: How to close the working dataset?
>>> >>
>>> >>
>>> >>
>>> >> John, are you kidding me :-) ?
>>> >> None of GUI for me, only SPSS syntax.
>>> >>
>>> >> 08.12.2017 12:35, John F Hall пишет:
>>> >>
>>> >> How about, with Y Data Editor open, use GUI sequence:
>>> >>
>>> >>
>>> >>
>>> >> File >> Save As >> Y1
>>> >>
>>> >>
>>> >>
>>> >> . . then click on the little red X in the top right corner to close
>>> both
>>> >> files?  Or have I missed the point?
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> ===================== To manage your subscription to SPSSX-L, send a
>>> >> message to *
>>>
>>> > LISTSERV@.UGA
>>>
>>> > * <
>>>
>>> > LISTSERV@.UGA
>>>
>>> > > (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
>>>
>>> > LISTSERV@.UGA
>>>
>>> >  (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
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Jon K Peck
>>>
>>> > jkpeck@
>>>
>>> >
>>> > =====================
>>> > To manage your subscription to SPSSX-L, send a message to
>>>
>>> > LISTSERV@.UGA
>>>
>>> >  (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
>>>
>>>
>>>
>>>
>>>
>>> -----
>>> --
>>> Bruce Weaver
>>>

> bweaver@

>>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>>>
>>> "When all else fails, RTFM."
>>>
>>> NOTE: My Hotmail account is not monitored regularly.
>>> To send me an e-mail, please use the address shown above.
>>>
>>> --
>>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>>

> LISTSERV@.UGA

>  (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
>>>
>>
>>
>>
>> --
>> Jon K Peck
>>

> jkpeck@

>>
>> ===================== To manage your subscription to SPSSX-L, send a
>> message to

> LISTSERV@.UGA

>  (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

> LISTSERV@.UGA

>  (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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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



--
Jon K Peck
[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
Reply | Threaded
Open this post in threaded view
|

Re: How to close the working dataset?

Bruce Weaver
Administrator
I understand that it is designed that way.  But I have more than once wished
that the active dataset would retain its name when using DATASET CLOSE ALL.
I can't remember specific examples right now--it's too late on a Friday
afternoon.

Cheers,
Bruce


Jon Peck wrote

> "Sorry, I was not remembering things accurately.  DATASET CLOSE ALL strips
> the
> active dataset of its name--and that is still happening in version
> 25.0.0.1.
> "
>
> Which is what it is supposed to do.
>
> "If ALL is specified, all associations with datasets are broken. All the
> datasets except the active dataset
> and their data windows are closed and no longer available in the session"
>
> On Fri, Dec 8, 2017 at 3:15 PM, Bruce Weaver &lt;

> bruce.weaver@

> &gt;
> wrote:
>
>> Sorry, I was not remembering things accurately.  DATASET CLOSE ALL strips
>> the
>> active dataset of its name--and that is still happening in version
>> 25.0.0.1.
>> E.g., try this:
>>
>> *** Start of example ***.
>> NEW FILE.
>> DATASET CLOSE ALL.
>>
>> DATA LIST LIST / junk(F1).
>> BEGIN DATA
>> 1
>> END DATA.
>> DATASET NAME X.
>>
>> DATA LIST LIST / morejunk(F1).
>> BEGIN DATA
>> 2
>> END DATA.
>> DATASET NAME Y.
>>
>> DATASET ACTIVATE X.
>> LIST.
>>
>> DATASET ACTIVATE Y.
>> LIST.
>>
>> * Activate X, then close Y completely.
>> DATASET ACTIVATE X.
>> DATASET CLOSE ALL.
>> *DATASET CLOSE Y.
>>
>> * DATASET CLOSE ALL strips the dataset name from X.
>> * DATASET CLOSE Y does not strip the dataset name from X.
>>
>> DATASET ACTIVATE X.
>> *** End of example ***.
>>
>> The DATASET ACTIVATE X line above generates this warning:
>>
>> Unknown dataset X.
>> Execution of this command stops.
>>
>> If I replace DATASET CLOSE ALL with CLOSE Y, X retains its dataset name
>> and
>> I get no warning message.
>>
>>
>>
>> Rick Oliver wrote
>> > If there is only one open dataset, Dataset Close will not close it. It
>> > will
>> > only make it unnamed if it had a name. If there is more than one open,
>> > then
>> > Dataset Close should close the specified one.
>> >
>> > To really close all datasets:
>> >
>> > dataset close all.
>> > new file.
>> >
>> > On Dec 8, 2017 12:00 PM, "Jon Peck" <
>>
>> > jkpeck@
>>
>> > > wrote:
>> >
>> >> I have never heard of that behavior.  I tried this in V24 (with
>> fixpack),
>> >> and the dataset name was not removed from the other file.  I can't say
>> >> about V23 or earlier.
>> >>
>> >> On Fri, Dec 8, 2017 at 7:45 AM, Bruce Weaver <
>>
>> > bruce.weaver@
>>
>> > >
>> >> wrote:
>> >>
>> >>> I initially thought Kirill was referring to the fact that when one
>> >>> closes
>> >>> one
>> >>> of two datasets, the name associated with the remaining one gets
>> >>> removed.
>> >>> At least that used to happen--but it appears to have been fixed.  I
>> just
>> >>> tried the following using version 25.0.0.1.
>> >>>
>> >>> DATASET ACTIVATE X.
>> >>> LIST.
>> >>>
>> >>> DATASET ACTIVATE Y.
>> >>> LIST.
>> >>>
>> >>> * Close Y completely.
>> >>> DATASET CLOSE Y.
>> >>>
>> >>> DATASET ACTIVATE X.
>> >>> LIST.
>> >>>
>> >>> In older versions, that last DATASET ACTIVATE command would have
>> >>> generated a
>> >>> warning message, because the dataset name X would have been removed
>> when
>> >>> I
>> >>> closed Y.
>> >>>
>> >>>
>> >>>
>> >>> Jon Peck wrote
>> >>> > If you have two datasets and you close the active one, the other
>> one
>> >>> > automatically becomes the active dataset.
>> >>> >
>> >>> > On Fri, Dec 8, 2017 at 3:18 AM, John F Hall <
>> >>>
>> >>> > johnfhall@
>> >>>
>> >>> > > wrote:
>> >>> >
>> >>> >> Kirill
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Did a test run by saving an existing dataset as Y,
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> GET
>> >>> >>
>> >>> >>   FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.
>> >>> >>
>> >>> >> DATASET NAME DataSet1 WINDOW=FRONT.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'
>> >>> >>
>> >>> >>   /COMPRESSED.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> then saved it again as Y1.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'
>> >>> >>
>> >>> >>   /COMPRESSED.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Y1 already open: open Y
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> GET
>> >>> >>
>> >>> >>   FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.
>> >>> >>
>> >>> >> DATASET NAME DataSet2 WINDOW=FRONT.
>> >>> >>
>> >>> >> DATASET ACTIVATE DataSet1.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Close Y and Y1
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> DATASET CLOSE DataSet2.
>> >>> >>
>> >>> >> DATASET CLOSE DataSet1.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Both Y and Y1 closed successfully.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> John F Hall
>> >>> >>
>> >>> >> [Retired academic survey researcher]
>> >>> >>
>> >>> >> IBM-SPSS Academic Author 9900074
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Email:             *
>> >>>
>> >>> > johnfhall@
>> >>>
>> >>> > * <
>> >>>
>> >>> > johnfhall@
>> >>>
>> >>> > >
>> >>> >>
>> >>> >> Website:          *http://surveyresearch.weebly.com/*
>> >>> >> &lt;http://surveyresearch.weebly.com/&gt;
>> >>> >>
>> >>> >> SPSS course:
>> >>> >> *http://surveyresearch.weebly.com/1-survey-analysis-workshop
>> >>> -spss.html*
>> >>> >>
>> >>>
>> &lt;http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html
> &gt; > >> >
>> >>> >>
>> >>> >> Research:
>> >>> >> *http://surveyresearch.weebly.com/3-subjective-social-indica
>> >>> tors-quality-of-life.html*
>> >>> >> &lt;http://surveyresearch.weebly.com/3-subjective-social-indica
> &gt; > >> tors-quality-of-life.html>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> *From:* SPSSX(r) Discussion [mailto:
>> >>>
>> >>> > SPSSX-L@.UGA
>> >>>
>> >>> > ] *On Behalf
>> >>> >> Of *Kirill Orlov
>> >>> >> *Sent:* 08 December 2017 11:03
>> >>> >> *To:*
>> >>>
>> >>> > SPSSX-L@.UGA
>> >>>
>> >>> >> *Subject:* Re: How to close the working dataset?
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> John, are you kidding me :-) ?
>> >>> >> None of GUI for me, only SPSS syntax.
>> >>> >>
>> >>> >> 08.12.2017 12:35, John F Hall пишет:
>> >>> >>
>> >>> >> How about, with Y Data Editor open, use GUI sequence:
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> File >> Save As >> Y1
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> . . then click on the little red X in the top right corner to
>> close
>> >>> both
>> >>> >> files?  Or have I missed the point?
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> ===================== To manage your subscription to SPSSX-L, send
>> a
>> >>> >> message to *
>> >>>
>> >>> > LISTSERV@.UGA
>> >>>
>> >>> > * <
>> >>>
>> >>> > LISTSERV@.UGA
>> >>>
>> >>> > > (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
>> >>>
>> >>> > LISTSERV@.UGA
>> >>>
>> >>> >  (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
>> >>> >>
>> >>> >
>> >>> >
>> >>> >
>> >>> > --
>> >>> > Jon K Peck
>> >>>
>> >>> > jkpeck@
>> >>>
>> >>> >
>> >>> > =====================
>> >>> > To manage your subscription to SPSSX-L, send a message to
>> >>>
>> >>> > LISTSERV@.UGA
>> >>>
>> >>> >  (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
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> -----
>> >>> --
>> >>> Bruce Weaver
>> >>>
>>
>> > bweaver@
>>
>> >>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>> >>>
>> >>> "When all else fails, RTFM."
>> >>>
>> >>> NOTE: My Hotmail account is not monitored regularly.
>> >>> To send me an e-mail, please use the address shown above.
>> >>>
>> >>> --
>> >>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>> >>>
>> >>> =====================
>> >>> To manage your subscription to SPSSX-L, send a message to
>> >>>
>>
>> > LISTSERV@.UGA
>>
>> >  (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
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Jon K Peck
>> >>
>>
>> > jkpeck@
>>
>> >>
>> >> ===================== To manage your subscription to SPSSX-L, send a
>> >> message to
>>
>> > LISTSERV@.UGA
>>
>> >  (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
>>
>> > LISTSERV@.UGA
>>
>> >  (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
>>
>>
>>
>>
>>
>> -----
>> --
>> Bruce Weaver
>>

> bweaver@

>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>>
>> "When all else fails, RTFM."
>>
>> NOTE: My Hotmail account is not monitored regularly.
>> To send me an e-mail, please use the address shown above.
>>
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>>

> LISTSERV@.UGA

>  (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
>>
>
>
>
> --
> Jon K Peck

> jkpeck@

>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.
Reply | Threaded
Open this post in threaded view
|

Re: How to close the working dataset?

Jon Peck
So you want DATASET CLOSE ALMOST ALL?

The DATASET commands were a very difficult design task and probably don't work quite the way people would like, because preserving compatibility with pre-dataset behavior and synchronizing with the Data Editor, which affects the active dataset, and dialog boxes that target the active dataset from the point of view of the frontend  was a challenge.

On Fri, Dec 8, 2017 at 4:15 PM, Bruce Weaver <[hidden email]> wrote:
I understand that it is designed that way.  But I have more than once wished
that the active dataset would retain its name when using DATASET CLOSE ALL.
I can't remember specific examples right now--it's too late on a Friday
afternoon.

Cheers,
Bruce


Jon Peck wrote
> "Sorry, I was not remembering things accurately.  DATASET CLOSE ALL strips
> the
> active dataset of its name--and that is still happening in version
> 25.0.0.1.
> "
>
> Which is what it is supposed to do.
>
> "If ALL is specified, all associations with datasets are broken. All the
> datasets except the active dataset
> and their data windows are closed and no longer available in the session"
>
> On Fri, Dec 8, 2017 at 3:15 PM, Bruce Weaver <

> bruce.weaver@

> >
> wrote:
>
>> Sorry, I was not remembering things accurately.  DATASET CLOSE ALL strips
>> the
>> active dataset of its name--and that is still happening in version
>> 25.0.0.1.
>> E.g., try this:
>>
>> *** Start of example ***.
>> NEW FILE.
>> DATASET CLOSE ALL.
>>
>> DATA LIST LIST / junk(F1).
>> BEGIN DATA
>> 1
>> END DATA.
>> DATASET NAME X.
>>
>> DATA LIST LIST / morejunk(F1).
>> BEGIN DATA
>> 2
>> END DATA.
>> DATASET NAME Y.
>>
>> DATASET ACTIVATE X.
>> LIST.
>>
>> DATASET ACTIVATE Y.
>> LIST.
>>
>> * Activate X, then close Y completely.
>> DATASET ACTIVATE X.
>> DATASET CLOSE ALL.
>> *DATASET CLOSE Y.
>>
>> * DATASET CLOSE ALL strips the dataset name from X.
>> * DATASET CLOSE Y does not strip the dataset name from X.
>>
>> DATASET ACTIVATE X.
>> *** End of example ***.
>>
>> The DATASET ACTIVATE X line above generates this warning:
>>
>> Unknown dataset X.
>> Execution of this command stops.
>>
>> If I replace DATASET CLOSE ALL with CLOSE Y, X retains its dataset name
>> and
>> I get no warning message.
>>
>>
>>
>> Rick Oliver wrote
>> > If there is only one open dataset, Dataset Close will not close it. It
>> > will
>> > only make it unnamed if it had a name. If there is more than one open,
>> > then
>> > Dataset Close should close the specified one.
>> >
>> > To really close all datasets:
>> >
>> > dataset close all.
>> > new file.
>> >
>> > On Dec 8, 2017 12:00 PM, "Jon Peck" <
>>
>> > jkpeck@
>>
>> > > wrote:
>> >
>> >> I have never heard of that behavior.  I tried this in V24 (with
>> fixpack),
>> >> and the dataset name was not removed from the other file.  I can't say
>> >> about V23 or earlier.
>> >>
>> >> On Fri, Dec 8, 2017 at 7:45 AM, Bruce Weaver <
>>
>> > bruce.weaver@
>>
>> > >
>> >> wrote:
>> >>
>> >>> I initially thought Kirill was referring to the fact that when one
>> >>> closes
>> >>> one
>> >>> of two datasets, the name associated with the remaining one gets
>> >>> removed.
>> >>> At least that used to happen--but it appears to have been fixed.  I
>> just
>> >>> tried the following using version 25.0.0.1.
>> >>>
>> >>> DATASET ACTIVATE X.
>> >>> LIST.
>> >>>
>> >>> DATASET ACTIVATE Y.
>> >>> LIST.
>> >>>
>> >>> * Close Y completely.
>> >>> DATASET CLOSE Y.
>> >>>
>> >>> DATASET ACTIVATE X.
>> >>> LIST.
>> >>>
>> >>> In older versions, that last DATASET ACTIVATE command would have
>> >>> generated a
>> >>> warning message, because the dataset name X would have been removed
>> when
>> >>> I
>> >>> closed Y.
>> >>>
>> >>>
>> >>>
>> >>> Jon Peck wrote
>> >>> > If you have two datasets and you close the active one, the other
>> one
>> >>> > automatically becomes the active dataset.
>> >>> >
>> >>> > On Fri, Dec 8, 2017 at 3:18 AM, John F Hall <
>> >>>
>> >>> > johnfhall@
>> >>>
>> >>> > > wrote:
>> >>> >
>> >>> >> Kirill
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Did a test run by saving an existing dataset as Y,
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> GET
>> >>> >>
>> >>> >>   FILE='C:\Users\John Hall\Desktop\Radhi\radhi1.sav'.
>> >>> >>
>> >>> >> DATASET NAME DataSet1 WINDOW=FRONT.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'
>> >>> >>
>> >>> >>   /COMPRESSED.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> then saved it again as Y1.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> SAVE OUTFILE='C:\Users\John Hall\Desktop\Radhi\Y1.sav'
>> >>> >>
>> >>> >>   /COMPRESSED.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Y1 already open: open Y
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> GET
>> >>> >>
>> >>> >>   FILE='C:\Users\John Hall\Desktop\Radhi\Y.sav'.
>> >>> >>
>> >>> >> DATASET NAME DataSet2 WINDOW=FRONT.
>> >>> >>
>> >>> >> DATASET ACTIVATE DataSet1.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Close Y and Y1
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> DATASET CLOSE DataSet2.
>> >>> >>
>> >>> >> DATASET CLOSE DataSet1.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Both Y and Y1 closed successfully.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> John F Hall
>> >>> >>
>> >>> >> [Retired academic survey researcher]
>> >>> >>
>> >>> >> IBM-SPSS Academic Author 9900074
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Email:             *
>> >>>
>> >>> > johnfhall@
>> >>>
>> >>> > * <
>> >>>
>> >>> > johnfhall@
>> >>>
>> >>> > >
>> >>> >>
>> >>> >> Website:          *http://surveyresearch.weebly.com/*
>> >>> >> <http://surveyresearch.weebly.com/>
>> >>> >>
>> >>> >> SPSS course:
>> >>> >> *http://surveyresearch.weebly.com/1-survey-analysis-workshop
>> >>> -spss.html*
>> >>> >>
>> >>>
>> <http://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html
> > > >> >
>> >>> >>
>> >>> >> Research:
>> >>> >> *http://surveyresearch.weebly.com/3-subjective-social-indica
>> >>> tors-quality-of-life.html*
>> >>> >> <http://surveyresearch.weebly.com/3-subjective-social-indica
> > > >> tors-quality-of-life.html>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> *From:* SPSSX(r) Discussion [mailto:
>> >>>
>> >>> > SPSSX-L@.UGA
>> >>>
>> >>> > ] *On Behalf
>> >>> >> Of *Kirill Orlov
>> >>> >> *Sent:* 08 December 2017 11:03
>> >>> >> *To:*
>> >>>
>> >>> > SPSSX-L@.UGA
>> >>>
>> >>> >> *Subject:* Re: How to close the working dataset?
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> John, are you kidding me :-) ?
>> >>> >> None of GUI for me, only SPSS syntax.
>> >>> >>
>> >>> >> 08.12.2017 12:35, John F Hall пишет:
>> >>> >>
>> >>> >> How about, with Y Data Editor open, use GUI sequence:
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> File >> Save As >> Y1
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> . . then click on the little red X in the top right corner to
>> close
>> >>> both
>> >>> >> files?  Or have I missed the point?
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> ===================== To manage your subscription to SPSSX-L, send
>> a
>> >>> >> message to *
>> >>>
>> >>> > LISTSERV@.UGA
>> >>>
>> >>> > * <
>> >>>
>> >>> > LISTSERV@.UGA
>> >>>
>> >>> > > (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
>> >>>
>> >>> > LISTSERV@.UGA
>> >>>
>> >>> >  (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
>> >>> >>
>> >>> >
>> >>> >
>> >>> >
>> >>> > --
>> >>> > Jon K Peck
>> >>>
>> >>> > jkpeck@
>> >>>
>> >>> >
>> >>> > =====================
>> >>> > To manage your subscription to SPSSX-L, send a message to
>> >>>
>> >>> > LISTSERV@.UGA
>> >>>
>> >>> >  (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
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> -----
>> >>> --
>> >>> Bruce Weaver
>> >>>
>>
>> > bweaver@
>>
>> >>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>> >>>
>> >>> "When all else fails, RTFM."
>> >>>
>> >>> NOTE: My Hotmail account is not monitored regularly.
>> >>> To send me an e-mail, please use the address shown above.
>> >>>
>> >>> --
>> >>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>> >>>
>> >>> =====================
>> >>> To manage your subscription to SPSSX-L, send a message to
>> >>>
>>
>> > LISTSERV@.UGA
>>
>> >  (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
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Jon K Peck
>> >>
>>
>> > jkpeck@
>>
>> >>
>> >> ===================== To manage your subscription to SPSSX-L, send a
>> >> message to
>>
>> > LISTSERV@.UGA
>>
>> >  (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
>>
>> > LISTSERV@.UGA
>>
>> >  (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
>>
>>
>>
>>
>>
>> -----
>> --
>> Bruce Weaver
>>

> bweaver@

>> http://sites.google.com/a/lakeheadu.ca/bweaver/
>>
>> "When all else fails, RTFM."
>>
>> NOTE: My Hotmail account is not monitored regularly.
>> To send me an e-mail, please use the address shown above.
>>
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>>

> LISTSERV@.UGA

>  (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
>>
>
>
>
> --
> Jon K Peck

> jkpeck@

>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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



--
Jon K Peck
[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
Reply | Threaded
Open this post in threaded view
|

Re: How to close the working dataset?

PRogman
In reply to this post by Bruce Weaver
There is something strange happening when active dataset is closed. See
variables below in the syntax example. A closed dataset does not disapperar
until a new is declared active, so the natural way would be to activate a
designated active dataset and then delete the previous. Here the problem
appears if you do not know the name of the dataset to activate.
It would be helpful to Preserve/PUSH and Restore/POP or otherwise store and
recall the dataset name.  
/PR


NEW FILE.
DATASET CLOSE ALL.

DATA LIST LIST / junk(F1).
BEGIN DATA
1
END DATA.
DATASET NAME     X.
LIST junk.
DATASET DISPLAY.

DATA LIST LIST / morejunk(F1).
BEGIN DATA
2
END DATA.
DATASET NAME     Y.
LIST morejunk.
DATASET DISPLAY.

DATASET CLOSE    Y.
COMPUTE morejunk = morejunk * 100.
LIST    morejunk.
DATASET DISPLAY.

COMPUTE junk = junk * 10.
LIST    junk.
DATASET DISPLAY.

DATASET ACTIVATE X.
DATASET DISPLAY.
LIST junk.






--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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: How to close the working dataset?

Jon Peck
Since V22, the DATASET DISPLAY output has included  the creation time stamp and the associated filespec, if any, for each dataset.  However, it does not keep an activation history.  Activating a different DE window will change the backend active dataset to match but dialog boxes paste the appropriate dataset activate command to go with their dataset.

One could, of course, manage all this with that P--- stuff.

On Fri, Dec 8, 2017 at 5:16 PM, PRogman <[hidden email]> wrote:
There is something strange happening when active dataset is closed. See
variables below in the syntax example. A closed dataset does not disapperar
until a new is declared active, so the natural way would be to activate a
designated active dataset and then delete the previous. Here the problem
appears if you do not know the name of the dataset to activate.
It would be helpful to Preserve/PUSH and Restore/POP or otherwise store and
recall the dataset name.
/PR


NEW FILE.
DATASET CLOSE ALL.

DATA LIST LIST / junk(F1).
BEGIN DATA
1
END DATA.
DATASET NAME     X.
LIST junk.
DATASET DISPLAY.

DATA LIST LIST / morejunk(F1).
BEGIN DATA
2
END DATA.
DATASET NAME     Y.
LIST morejunk.
DATASET DISPLAY.

DATASET CLOSE    Y.
COMPUTE morejunk = morejunk * 100.
LIST    morejunk.
DATASET DISPLAY.

COMPUTE junk = junk * 10.
LIST    junk.
DATASET DISPLAY.

DATASET ACTIVATE X.
DATASET DISPLAY.
LIST junk.






--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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



--
Jon K Peck
[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
Reply | Threaded
Open this post in threaded view
|

Re: How to close the working dataset?

PRogman
Ok for P-th-n stuff, but it can not be used inside DEFINE-!ENDDEFINE so it
won't work in macros without fully making it an extension command?
/PR


Jon Peck wrote

> Since V22, the DATASET DISPLAY output has included  the creation time
> stamp
> and the associated filespec, if any, for each dataset.  However, it does
> not keep an activation history.  Activating a different DE window will
> change the backend active dataset to match but dialog boxes paste the
> appropriate dataset activate command to go with their dataset.
>
> One could, of course, manage all this with that P--- stuff.
>
> On Fri, Dec 8, 2017 at 5:16 PM, PRogman &lt;

> peder@

> &gt; wrote:
>
>> There is something strange happening when active dataset is closed. See
>> variables below in the syntax example. A closed dataset does not
>> disapperar
>> until a new is declared active, so the natural way would be to activate a
>> designated active dataset and then delete the previous. Here the problem
>> appears if you do not know the name of the dataset to activate.
>> It would be helpful to Preserve/PUSH and Restore/POP or otherwise store
>> and
>> recall the dataset name.
>> /PR
>>
>>
>> NEW FILE.
>> DATASET CLOSE ALL.
>>
>> DATA LIST LIST / junk(F1).
>> BEGIN DATA
>> 1
>> END DATA.
>> DATASET NAME     X.
>> LIST junk.
>> DATASET DISPLAY.
>>
>> DATA LIST LIST / morejunk(F1).
>> BEGIN DATA
>> 2
>> END DATA.
>> DATASET NAME     Y.
>> LIST morejunk.
>> DATASET DISPLAY.
>>
>> DATASET CLOSE    Y.
>> COMPUTE morejunk = morejunk * 100.
>> LIST    morejunk.
>> DATASET DISPLAY.
>>
>> COMPUTE junk = junk * 10.
>> LIST    junk.
>> DATASET DISPLAY.
>>
>> DATASET ACTIVATE X.
>> DATASET DISPLAY.
>> LIST junk.
>>
>>
>>
>>
>>
>>
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>>

> LISTSERV@.UGA

>  (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
>>
>
>
>
> --
> Jon K Peck

> jkpeck@

>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (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





--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
12