surprising action of "dataset close" and a work around

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

surprising action of "dataset close" and a work around

Art Kendall
I had 8 datasets open.
SPSSINC COMPARE DATASETS found that received1 and received2 were
duplicates of other files so I wanted to close them.
However, if one of them is the active file it is left in place but is
unnamed.

> Dataset Display
> Notes
> Output Created        14-AUG-2012 18:01:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received1
> received2a
> received3
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received1.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 18:01:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.02
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received2a
> received3
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received2.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 18:01:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> (unnamed)a
> received3
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>




*This is how I worked around it.*

> dataset activate received3.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 17:48:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received1
> received2
> received3a
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received1.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 17:48:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received2
> received3a
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received2.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 17:48:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received3a
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>




--
Art Kendall
Social Research Consultants

=====================
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
Art Kendall
Social Research Consultants
Reply | Threaded
Open this post in threaded view
|

Re: surprising action of "dataset close" and a work around

Rick Oliver-3
This is documented behavior for DATASET CLOSE.

"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."

http://pic.dhe.ibm.com/infocenter/spssstat/v21r0m0/topic/com.ibm.spss.statistics.help/syn_dataset_close_overview.htm

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]
Phone: 312.893.4922 | T/L: 206-4922




From:        Art Kendall <[hidden email]>
To:        [hidden email],
Date:        08/14/2012 05:12 PM
Subject:        surprising action of "dataset close" and a work around
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




I had 8 datasets open.
SPSSINC COMPARE DATASETS found that received1 and received2 were
duplicates of other files so I wanted to close them.
However, if one of them is the active file it is left in place but is
unnamed.

> Dataset Display
> Notes
> Output Created        14-AUG-2012 18:01:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received1
> received2a
> received3
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received1.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 18:01:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.02
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received2a
> received3
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received2.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 18:01:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> (unnamed)a
> received3
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>




*This is how I worked around it.*

> dataset activate received3.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 17:48:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received1
> received2
> received3a
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received1.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 17:48:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received2
> received3a
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received2.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 17:48:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received3a
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>




--
Art Kendall
Social Research Consultants

=====================
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: surprising action of "dataset close" and a work around

Jon K Peck
Once the name is removed,
NEW FILE
will make it go away.

Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        Rick Oliver/Chicago/IBM@IBMUS
To:        [hidden email]
Date:        08/14/2012 04:23 PM
Subject:        Re: [SPSSX-L] surprising action of "dataset close" and a work              around
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




This is documented behavior for DATASET CLOSE.

"
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."

http://pic.dhe.ibm.com/infocenter/spssstat/v21r0m0/topic/com.ibm.spss.statistics.help/syn_dataset_close_overview.htm

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]
Phone: 312.893.4922 | T/L: 206-4922




From:        
Art Kendall <[hidden email]>
To:        
[hidden email],
Date:        
08/14/2012 05:12 PM
Subject:        
surprising action of "dataset close" and a work around
Sent by:        
"SPSSX(r) Discussion" <[hidden email]>




I had 8 datasets open.
SPSSINC COMPARE DATASETS found that received1 and received2 were
duplicates of other files so I wanted to close them.
However, if one of them is the active file it is left in place but is
unnamed.

> Dataset Display
> Notes
> Output Created        14-AUG-2012 18:01:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received1
> received2a
> received3
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received1.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 18:01:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.02
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received2a
> received3
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received2.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 18:01:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> (unnamed)a
> received3
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>




*This is how I worked around it.*

> dataset activate received3.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 17:48:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received1
> received2
> received3a
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received1.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 17:48:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received2
> received3a
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>
> dataset close received2.
> dataset display.
> Dataset Display
> Notes
> Output Created        14-AUG-2012 17:48:12
> Comments
> Input    Filter    <none>
>     Weight    <none>
>     Split File    <none>
> Syntax        dataset display.
> Resources    Processor Time    00:00:00.00
>     Elapsed Time    00:00:00.00
>
>
>
> Datasets
> received3a
> received4
> received5
> received6
> received7
> received8
> a Active dataset
>
>
>




--
Art Kendall
Social Research Consultants

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