LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2003)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 23 Jun 2003 11:36:15 +0930
Reply-To:     Kylie Lange <kylie.lange@flinders.edu.au>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Kylie Lange <kylie.lange@flinders.edu.au>
Subject:      Re: LOOP / XSAVE command hanging
In-Reply-To:  <3EF313AC.B847A56F@eresmas.net>
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.

Thanks again! Kylie.

At 04:01 PM 20/06/03 +0200, Asesoría Bioestadística wrote: >Hi Kylie > >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 >then an >error message and the dataset emptied (the variables names&labels >remained, but >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) >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. > >SAVE OUTFILE='c:\temp\temp1.sav'. >CACHE. > >LOOP cnt=1 TO nb. >XSAVE OUTFILE='c:\temp\temp2.sav' /KEEP sla TO p4. >END LOOP. >EXE. >GET FILE='c:\temp\temp2.sav'. > >HTH > >Marta > > >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 11.5.2.1 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 kylie.lange@flinders.edu.au Flinders University ph: (08) 8201 3346 Information Services Division fax: (08) 8201 3003 ADELAIDE SA www.flinders.edu.au/compserv/SPSS/


Back to: Top of message | Previous page | Main SPSSX-L page