Date: Mon, 23 Jun 2003 11:36:15 +0930
Reply-To: Kylie Lange <firstname.lastname@example.org>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Kylie Lange <email@example.com>
Subject: Re: LOOP / XSAVE command hanging
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Thanks to everyone who took the time to test this out and comment, in
particular Sally, Mark and Marta for suggestions.
Marta's suggestion of using CACHE is working for me, so for now there is at
least a workaround. Also, the original steps I outlined (without using
CACHE) work seamlessly, on the same NT4 machine, for versions 10.1.4 and
11.0.1. I haven't tried reverting back to 11.5.1 yet but will do so.
I will have to confirm what version and platform the end user is on but for
now I can get back to the task at hand.
At 04:01 PM 20/06/03 +0200, Asesoría Bioestadística wrote:
>I have tried the code with SPSS 11 & W98 SE and found no problem. Nonetheless,
>you mention you run SPSS with Windows NT. We have experienced some problems
>with SPSS11 & NT at the University: after saving a file, we got now and
>error message and the dataset emptied (the variables names&labels
>data were lost). That problem happened erratically with some floppy drives and
>some net folders in some computers (?). We solved it executing "CACHE" after
>saving the file.
>Try this (untested under WNT) code:
>DATA LIST LIST /sla(F8.2) p1(F8.1) p2(F8.1) p3(F8.1) p4(F8.1)
>10012 0 1 0 0 1
>10025 .5 0 .5 0 3
>10045 .4 .3 0 .3 4
>10055 0 0 0 1 1
>LOOP cnt=1 TO nb.
>XSAVE OUTFILE='c:\temp\temp2.sav' /KEEP sla TO p4.
>Kylie Lange ha escrito:
> > Hi all,
> > I am having problems running a simple LOOP with XSAVE when using data
> > entered in the Data Editor. I am using 220.127.116.11 on Windows NT.
> > The following syntax works smoothly:
> > DATA LIST LIST /sla(F8.2) p1(F8.1) p2(F8.1) p3(F8.1) p4(F8.1) nb(F8.0).
> > BEGIN DATA
> > 10012 0 1 0 0 1
> > 10025 .5 0 .5 0 3
> > 10045 .4 .3 0 .3 4
> > 10055 0 0 0 1 1
> > END DATA.
> > LOOP cnt=1 TO nb.
> > XSAVE OUTFILE='c:\temp\temp.sav' /KEEP sla TO p4.
> > END LOOP.
> > EXE.
> > GET FILE='c:\temp\temp.sav'.
> > However, if I run the DATA LIST section to generate the file, then go to
> > File > Save As and save the file to some location before going on and
> > running the LOOP syntax, the LOOP syntax never completes. The processor
> > status stalls at 'Running XSAVE...' and the only way to stop it is to kill
> > SPSS through the NT task manager. It does the same thing regardless of
> > where the file is saved to (local drive, network drives...).
> > Am I missing something simple in my understanding of what's going on, or is
> > this some kind of network or system issue?
> > Thanks!
> > Kylie.
Statistical Consultant firstname.lastname@example.org
Flinders University ph: (08) 8201 3346
Information Services Division fax: (08) 8201 3003