Date: Fri, 15 Mar 2002 14:13:52 -0500
Reply-To: Richard Ristow <email@example.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Richard Ristow <firstname.lastname@example.org>
Subject: Hang-up running syntax in SPSS 9
Content-Type: text/plain; charset="us-ascii"; format=flowed
I've been writing and running a lot of syntax files, using SPSS 9 for
Windows. They're heavily commented, typically beginning like this:
/* ...................... Begin JM0116.SPS ...................... */
/* 08 Mar 2002 */
/* Original path: c:\B_Client\Martha Lang\JM01\JM0116.SPS */
/* Reads !SAVE(CohBase) Basic data for HFI cohort, by WRR, */
/* 11 Dec 2001 */
I run them by opening them in SPSS, selecting all the text, and
clicking the Run button on the syntax toolbar.
I've just created such a syntax file by adding code to a previously
working file. The new file will not run that way, nor by selecting
"All" from the Run menu. At first, it gave warning message "Missing
command terminator. OK to run?" and, if I selected "Yes", stopped at
the first blank line. (This was within the header comments. There was
no command, nor command terminator, in the syntax up to that point.) I
tried getting rid of all blank lines (replacing them by a pair of
comment delimiters: "/**/"); then, it runs through the first actual
command and stops. If I step through the file, starting each time where
it's stopped and selecting "To end" from the Run menu, it always runs
until completing from one to a few commands (not always just one) and stops.
I have checked the file with a hex editor, and can identify nothing
strange, certainly not near the beginning. The only apparent
non-printable characters are x'000A' pairs separating lines of the
syntax file; the same occur in the syntax files that have given no trouble.
It's not the SPSS installation. Other syntax files still run as expected.
Any ideas? I know that SPSS's syntax rules for commands are
complicated, and vary depending on the circumstances (they're not quite
the same for files run with INCLUDE, for example), but I don't see the
answer to this one.
This is impractical as well as mystifying. I'm aware there