|
Administrator
|
I've just started using v18 for Windoze (and am patched to 18.0.2), and I think that "dataset close all" is behaving a bit differently than it did in previous versions. In particular, it is stripping the dataset name from the dataset that is active when I issue the "dataset close all" command. E.g.,
data list free / x (f1.0). begin data 1 2 3 4 5 end data. dataset name ds1. data list free / y (f1.0). begin data 1 2 3 4 5 end data. dataset name ds2. dataset activate ds1. list. dataset activate ds2. list. dataset activate ds1. dataset close all. As expected, ds2 is closed, because ds1 was active when I issued the "dataset close all" command. However, the ds1 dataset name is now lost. This is a nuisance, because it generates an error if/when any of the following syntax uses that dataset name. If I change the command to "dataset close ds2", the ds1 dataset name is preserved. I can't check if this was happening in v17, because it's no longer installed. But I am fairly sure that the dataset name was preserved following "dataset close all".
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
|
I've noticed similar behaviour. I think it is a feature, since it is
documented in the syntax guide. You just need to rename the active dataset after you close all. Something like: DATASET ACTIVATE holder. DATASET CLOSE ALL. DATASET NAME holder WINDOW = FRONT. To work with datasets, I start all my jobs with the following syntax: NEW FILE. DATA LIST FREE /hold (A6). BEGIN DATA "HOLD" END DATA. DATASET NAME holder WINDOW = FRONT. This gives me a default dataset I can use to manage data sets. Otherwise, I get aggregated or merged datasets disappearing at unfortunate times. Jim Marks Director, Market Research x1616 -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Bruce Weaver Sent: Thursday, September 02, 2010 10:27 AM To: [hidden email] Subject: Bug: "dataset close all" removes dataset name I've just started using v18 for Windoze (and am patched to 18.0.2), and I think that "dataset close all" is behaving a bit differently than it did in previous versions. In particular, it is stripping the dataset name from the dataset that is active when I issue the "dataset close all" command. E.g., data list free / x (f1.0). begin data 1 2 3 4 5 end data. dataset name ds1. data list free / y (f1.0). begin data 1 2 3 4 5 end data. dataset name ds2. dataset activate ds1. list. dataset activate ds2. list. dataset activate ds1. dataset close all. As expected, ds2 is closed, because ds1 was active when I issued the "dataset close all" command. However, the ds1 dataset name is now lost. This is a nuisance, because it generates an error if/when any of the following syntax uses that dataset name. If I change the command to "dataset close ds2", the ds1 dataset name is preserved. I can't check if this was happening in v17, because it's no longer installed. But I am fairly sure that the dataset name was preserved following "dataset close all". ----- -- 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. -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Bug-dataset-close-all-remo ves-dataset-name-tp2800852p2800852.html Sent from the SPSSX Discussion mailing list archive at 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 ===================== 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 |
|
In reply to this post by Bruce Weaver
AFAIK, it has always behaved that way,
and that's the documented behavior:
"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. The active dataset remains active but has no name."
I've just started using v18 for Windoze (and am patched to 18.0.2), and I think that "dataset close all" is behaving a bit differently than it did in previous versions. In particular, it is stripping the dataset name from the dataset that is active when I issue the "dataset close all" command. E.g., data list free / x (f1.0). begin data 1 2 3 4 5 end data. dataset name ds1. data list free / y (f1.0). begin data 1 2 3 4 5 end data. dataset name ds2. dataset activate ds1. list. dataset activate ds2. list. dataset activate ds1. dataset close all. As expected, ds2 is closed, because ds1 was active when I issued the "dataset close all" command. However, the ds1 dataset name is now lost. This is a nuisance, because it generates an error if/when any of the following syntax uses that dataset name. If I change the command to "dataset close ds2", the ds1 dataset name is preserved. I can't check if this was happening in v17, because it's no longer installed. But I am fairly sure that the dataset name was preserved following "dataset close all". ----- -- 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. -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Bug-dataset-close-all-removes-dataset-name-tp2800852p2800852.html Sent from the SPSSX Discussion mailing list archive at 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 |
|
Administrator
|
Thanks, Rick and Jim. Obviously, I never noticed this before. It still strikes me as a bit of an odd feature, but I guess I'll just have to work around it.
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
|
I find it quite useful when I want to close
all existing datasets and start over. For example, when I need to switch
between code page mode and unicode mode:
dataset close all. new file. set unicode=yes. If the name was not removed from the active dataset, New File would create a new blank data file without closing the active dataset, and the Set command would fail.
Thanks, Rick and Jim. Obviously, I never noticed this before. It still strikes me as a bit of an odd feature, but I guess I'll just have to work around it. Rick Oliver wrote: > > AFAIK, it has always behaved that way, and that's the documented behavior: > > "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. The active dataset remains active but > has no name." > > > > From: > Bruce Weaver <[hidden email]> > To: > [hidden email] > Date: > 09/02/2010 10:29 AM > Subject: > Bug: "dataset close all" removes dataset name > Sent by: > "SPSSX(r) Discussion" <[hidden email]> > > > > I've just started using v18 for Windoze (and am patched to 18.0.2), and I > think that "dataset close all" is behaving a bit differently than it did > in > previous versions. In particular, it is stripping the dataset name from > the > dataset that is active when I issue the "dataset close all" command. E.g., > > data list free / x (f1.0). > begin data > 1 2 3 4 5 > end data. > dataset name ds1. > > data list free / y (f1.0). > begin data > 1 2 3 4 5 > end data. > dataset name ds2. > > dataset activate ds1. > list. > > dataset activate ds2. > list. > > dataset activate ds1. > dataset close all. > > As expected, ds2 is closed, because ds1 was active when I issued the > "dataset close all" command. However, the ds1 dataset name is now lost. > This is a nuisance, because it generates an error if/when any of the > following syntax uses that dataset name. > > If I change the command to "dataset close ds2", the ds1 dataset name is > preserved. > > I can't check if this was happening in v17, because it's no longer > installed. But I am fairly sure that the dataset name was preserved > following "dataset close all". > > > > ----- > -- > 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. > > -- > View this message in context: > http://spssx-discussion.1045642.n5.nabble.com/Bug-dataset-close-all-removes-dataset-name-tp2800852p2800852.html > > Sent from the SPSSX Discussion mailing list archive at 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 [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. -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Bug-dataset-close-all-removes-dataset-name-tp2800852p2800907.html Sent from the SPSSX Discussion mailing list archive at 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 |
|
If there are only two data sets why not just minimise the ones you're not
using or just close them and keep the one you want. That's what I do (and I even use the GUI to do it!) John Hall [hidden email] http://surveyresearch.weebly.com ----- Original Message ----- From: Rick Oliver To: [hidden email] Sent: Thursday, September 02, 2010 6:38 PM Subject: Re: Bug: "dataset close all" removes dataset name I find it quite useful when I want to close all existing datasets and start over. For example, when I need to switch between code page mode and unicode mode: dataset close all. new file. set unicode=yes. If the name was not removed from the active dataset, New File would create a new blank data file without closing the active dataset, and the Set command would fail. From: Bruce Weaver <[hidden email]> To: [hidden email] Date: 09/02/2010 11:18 AM Subject: Re: Bug: "dataset close all" removes dataset name Sent by: "SPSSX(r) Discussion" <[hidden email]> Thanks, Rick and Jim. Obviously, I never noticed this before. It still strikes me as a bit of an odd feature, but I guess I'll just have to work around it. Rick Oliver wrote: > > AFAIK, it has always behaved that way, and that's the documented behavior: > > "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. The active dataset remains active but > has no name." > > > > From: > Bruce Weaver <[hidden email]> > To: > [hidden email] > Date: > 09/02/2010 10:29 AM > Subject: > Bug: "dataset close all" removes dataset name > Sent by: > "SPSSX(r) Discussion" <[hidden email]> > > > > I've just started using v18 for Windoze (and am patched to 18.0.2), and I > think that "dataset close all" is behaving a bit differently than it did > in > previous versions. In particular, it is stripping the dataset name from > the > dataset that is active when I issue the "dataset close all" command. E.g., > > data list free / x (f1.0). > begin data > 1 2 3 4 5 > end data. > dataset name ds1. > > data list free / y (f1.0). > begin data > 1 2 3 4 5 > end data. > dataset name ds2. > > dataset activate ds1. > list. > > dataset activate ds2. > list. > > dataset activate ds1. > dataset close all. > > As expected, ds2 is closed, because ds1 was active when I issued the > "dataset close all" command. However, the ds1 dataset name is now lost. > This is a nuisance, because it generates an error if/when any of the > following syntax uses that dataset name. > > If I change the command to "dataset close ds2", the ds1 dataset name is > preserved. > > I can't check if this was happening in v17, because it's no longer > installed. But I am fairly sure that the dataset name was preserved > following "dataset close all". > > > > ----- > -- > 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. > > -- > View this message in context: > http://spssx-discussion.1045642.n5.nabble.com/Bug-dataset-close-all-removes-dataset-name-tp2800852p2800852.html > > Sent from the SPSSX Discussion mailing list archive at 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 [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. -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Bug-dataset-close-all-removes-dataset-name-tp2800852p2800907.html Sent from the SPSSX Discussion mailing list archive at 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 ===================== 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 |
|
Administrator
|
In reply to this post by Rick Oliver-3
But if you issue the "new file" command first, it will work even if the dataset name for the active data set is intact. E.g.,
data list free / x (f1.0). begin data 1 2 3 4 5 end data. dataset name ds1. data list free / y (f1.0). begin data 1 2 3 4 5 end data. dataset name ds2. dataset activate ds1. dataset close ds2. * Note that dataset name ds1 is intact. new file. dataset close all. * Dataset ds1 is gone; new data file has no dataset name.
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
|
In my admittedly very narrow example, there
can be no open datasets that contain data; so issuing the New File command
first won't work, because there will still be open datasets that contain
data and SET UNICODE will fail. In a more general example, I do a bunch
of stuff with multiple datasets, then want to get rid of all of those and
work with a new bunch of datasets.
get file="one.sav". dataset name one. get file="two.sav". dataset name two. add files /file=one /file=two. execute. dataset name three. ***do something with dataset three***. dataset activate one. ***do something with dataset one***. dataset close all. /*now I'm done with those and want them all to go away. get file="four.sav". Now, the only open dataset is four.sav. If Dataset Close had not removed the name from the active dataset, I would now have two open datasets.
But if you issue the "new file" command first, it will work even if the dataset name for the active data set is intact. E.g., data list free / x (f1.0). begin data 1 2 3 4 5 end data. dataset name ds1. data list free / y (f1.0). begin data 1 2 3 4 5 end data. dataset name ds2. dataset activate ds1. dataset close ds2. * Note that dataset name ds1 is intact. new file. dataset close all. * Dataset ds1 is gone; new data file has no dataset name. Rick Oliver wrote: > > I find it quite useful when I want to close all existing datasets and > start over. For example, when I need to switch between code page mode and > unicode mode: > > dataset close all. > new file. > set unicode=yes. > > If the name was not removed from the active dataset, New File would create > a new blank data file without closing the active dataset, and the Set > command would fail. > > > > From: > Bruce Weaver <[hidden email]> > To: > [hidden email] > Date: > 09/02/2010 11:18 AM > Subject: > Re: Bug: "dataset close all" removes dataset name > Sent by: > "SPSSX(r) Discussion" <[hidden email]> > > > > Thanks, Rick and Jim. Obviously, I never noticed this before. It still > strikes me as a bit of an odd feature, but I guess I'll just have to work > around it. > > > > Rick Oliver wrote: >> >> AFAIK, it has always behaved that way, and that's the documented > behavior: >> >> "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. The active dataset remains active > but >> has no name." >> >> >> >> From: >> Bruce Weaver <[hidden email]> >> To: >> [hidden email] >> Date: >> 09/02/2010 10:29 AM >> Subject: >> Bug: "dataset close all" removes dataset name >> Sent by: >> "SPSSX(r) Discussion" <[hidden email]> >> >> >> >> I've just started using v18 for Windoze (and am patched to 18.0.2), and > I >> think that "dataset close all" is behaving a bit differently than it did >> in >> previous versions. In particular, it is stripping the dataset name from >> the >> dataset that is active when I issue the "dataset close all" command. > E.g., >> >> data list free / x (f1.0). >> begin data >> 1 2 3 4 5 >> end data. >> dataset name ds1. >> >> data list free / y (f1.0). >> begin data >> 1 2 3 4 5 >> end data. >> dataset name ds2. >> >> dataset activate ds1. >> list. >> >> dataset activate ds2. >> list. >> >> dataset activate ds1. >> dataset close all. >> >> As expected, ds2 is closed, because ds1 was active when I issued the >> "dataset close all" command. However, the ds1 dataset name is now lost. >> This is a nuisance, because it generates an error if/when any of the >> following syntax uses that dataset name. >> >> If I change the command to "dataset close ds2", the ds1 dataset name is >> preserved. >> >> I can't check if this was happening in v17, because it's no longer >> installed. But I am fairly sure that the dataset name was preserved >> following "dataset close all". >> >> >> >> ----- >> -- >> 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. >> >> -- >> View this message in context: >> > http://spssx-discussion.1045642.n5.nabble.com/Bug-dataset-close-all-removes-dataset-name-tp2800852p2800852.html > >> >> Sent from the SPSSX Discussion mailing list archive at 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 > [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. > > -- > View this message in context: > http://spssx-discussion.1045642.n5.nabble.com/Bug-dataset-close-all-removes-dataset-name-tp2800852p2800907.html > > Sent from the SPSSX Discussion mailing list archive at 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 [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. -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Bug-dataset-close-all-removes-dataset-name-tp2800852p2801054.html Sent from the SPSSX Discussion mailing list archive at 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 |
| Free forum by Nabble | Edit this page |
