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 (July 2006)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 26 Jul 2006 16:13:10 -0500
Reply-To:     "Oliver, Richard" <roliver@SPSS.COM>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         "Oliver, Richard" <roliver@SPSS.COM>
Subject:      Re: SPSS Macro error
Comments: To: Hector Maletta <>
Content-Type: text/plain; charset="US-ASCII"

Personally, I always use SET PRINTBACK ON -- and MPRINT ON if I'm debugging macros or Python program blocks.

When commands are echoed to the log (with PRINTBACK ON), then error messages usually appear in the log right after the offending command. So, that often eliminates the need to figure out which line the error occurred on.

If there's some better explanation of the error messages than the error messages themselves, I'm not aware of it -- and if better explanations did exist, I would think the best place to put them would be right in the error messages.

MPRINT ON will display the syntax generated by macro expansion and by program blocks (Begin-End Program) that build command syntax using Python.

-----Original Message----- From: Hector Maletta [] Sent: Wednesday, July 26, 2006 4:01 PM To: Oliver, Richard; SPSSX-L@LISTSERV.UGA.EDU Subject: RE: SPSS Macro error

Richard, Would that setting (SET PRINTBACK ON MPRINT ON) clarify error ordinary messages as the one posted by Joseph, outside of debugging macros? I often find incomprehensible error messages not referring to any line or column at all, or mentioning the column but not the line. This is, IMHO, one the most annoying things I ever encounter while using SPSS. If only line and column were mentioned one may find one's way using the status bar, but otherwise the message is Ancient Greek (or Egyptian) to me. I also vaguely remember someone saying on this list that a list of error numbers with the corresponding explanations existed somewhere, but I cannot remember where. Could it not be made more accessible? Perhaps in a context-sensitive right-click menu? I would love right-clicking on an error message in the output window, causing a menu to drop down, then choosing something like 'Look up error' and finding a clear explanation of the error (plus possible suggestions for fixing it). A less ambitious option might be a de-contextualized Utilities menu option for looking up a list of error numbers and their explanations. Hope never dies, but takes a beating every day... Hector

-----Mensaje original----- De: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] En nombre de Oliver, Richard Enviado el: Wednesday, July 26, 2006 3:27 PM Para: SPSSX-L@LISTSERV.UGA.EDU Asunto: Re: SPSS Macro error

"column 25" is a position within a line. If you increase the width of the syntax window, in the lower right portion of the status bar, you'll see both line and column numbers displayed, indicating the current cursor location. When debugging macros use


to display the generated code in the output window. That will often make error messages easier to interpret.

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Joseph Hoffman Sent: Wednesday, July 26, 2006 9:25 AM To: SPSSX-L@LISTSERV.UGA.EDU Subject: SPSS Macro error

Dear SPSS Listers: I am trying to write my first SPSS macro with v. 13.0 for Windows. I got the following error message:

>Error # 6839 in column 25. Text: ( >In a macro expression, a left parenthesis immediately follows an operand. >This command not executed.

Where do I look for "column 25"? The message doesn't reference line numbers, like usual error messages.

Thanks for any help! Sincerely,

Joe Hoffman

====================================== Joseph H Hoffman Data Analyst Research Institute on Addictions State University of New York at Buffalo 1021 Main Street Buffalo NY 14203 phone 716-887-2219 FAX 716-887-2510 e-mail

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