|Date: ||Mon, 24 Apr 2006 00:00:30 -0400|
|Reply-To: ||Richard Ristow <firstname.lastname@example.org>|
|Sender: ||"SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>|
|From: ||Richard Ristow <email@example.com>|
|Subject: ||Re: DATASET duplicating, SPSS 14: Best practice?|
|In-Reply-To: ||<E0428445172CB7469BF187FF4D00514902C052E5@CHIEMAIL1.spss.co m>|
|Content-Type: ||text/plain; charset=us-ascii; format=flowed;
>>I have a dataset named Thompson_exampledata. It is active. I want to
>>make a copy of it in a new dataset named Thompson_exampledata. The
>>following syntax seems to have worked:
>>DATASET NAME Thompson_ToWide.
>>DATASET ACTIVATE Thompson_exampledata.
>>DATASET COPY Thompson_ToWide.
>>DATASET ACTIVATE Thompson_ToWide.
>>It seems a little clumsy. Is there another, better way?
At 08:54 AM 4/22/2006, Oliver, Richard wrote:
>All you need is the last two commands in your example:
>dataset copy newdatasetname. /*make a copy of the active dataset.
>dataset activate newdatasetname. /*activate the copy.
And Richard Oliver is quite right. What I'd missed is that
DATASET COPY <name>.
creates its destination dataset, if that does not exist. (And that is