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 (September 2005)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 19 Sep 2005 10:31:56 +0200
Reply-To:     a.smulders@beke.nl
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Antoon Smulders <a.smulders@beke.nl>
Subject:      Re: Stop running when error or warning found in 11.5 (Windows)
In-Reply-To:  <FABE7BF4C8A9B647A083DCEB99A792CF0F615D@beke01.beke.local>
Content-Type: text/plain; charset="us-ascii"

Hi,

Using INCLUDE from another syntax file is indeed a possibility but that's not very "elegant". In ancient times there was a possibility to set a system variable to stop SPSS if an error occurred. I'd very much like that back.

If you don't want to open an extra file there is another inelegant way: just INCLUDE the active syntax file itself. But: * Be sure to make an error in it! * Otherwise it will keep on running forever and ever or until your computer gets tired.

For instance:

Freq all. Intended error. Include "mysyntaxfile.sps".

Save the syntax file as "mysyntaxfile.sps" and then run the file from the include statement. It will produce an error message at: intended error. Antoon Smulders

-----Oorspronkelijk bericht----- Van: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] Namens Raynald Levesque Verzonden: zondag 18 september 2005 23:02 Aan: SPSSX-L@LISTSERV.UGA.EDU Onderwerp: Re: Stop running when error or warning found in 11.5 (Windows)

Hi

Run your syntax using an INCLUDE statement in another syntax file.

Regards

Raynald Levesque Raynald@spsstools.net Visit my SPSS site: http://www.spsstools.net

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of Catherine Kubitschek Sent: September 18, 2005 3:48 PM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Stop running when error or warning found in 11.5 (Windows)

Dear list,

Does anyone know how to make SPSS 11.5 stop running syntax when the first error or warning is found?

Catherine


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