[Syntax-Editor] comments need blank lines?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Syntax-Editor] comments need blank lines?

Moon Kid
The Syntax-Editor show me a unuseful behavior with comments.

This code

* Qualifikation
FREQUENCIES VARIABLES=v46c
   /ORDER=ANALYSIS.

Is never executed, because line #2 and #3 are also interpreted as
comments. I can see this in the editor because the text is
gray/disabled.
The editor need a blank line between #1 and #2.

But his make the code hard to read and interpret on the first view.
--
<http://dontbubble.us/>

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: [Syntax-Editor] comments need blank lines?

GauravSrivastava

You should put a dot at the end where ur comment line end or add another blank line before starting your syntax.

On Apr 1, 2014 4:50 PM, "Moon Kid" <[hidden email]> wrote:
The Syntax-Editor show me a unuseful behavior with comments.

This code

* Qualifikation
FREQUENCIES VARIABLES=v46c
   /ORDER=ANALYSIS.

Is never executed, because line #2 and #3 are also interpreted as
comments. I can see this in the editor because the text is
gray/disabled.
The editor need a blank line between #1 and #2.

But his make the code hard to read and interpret on the first view.
--
<http://dontbubble.us/>

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: [Syntax-Editor] comments need blank lines?

Richard Ristow
In reply to this post by Moon Kid
At 07:18 AM 4/1/2014, Moon Kid wrote:

>The Syntax-Editor show me a unuseful behavior with comments.
>This code
>
>* Qualifikation
>FREQUENCIES VARIABLES=v46c
>    /ORDER=ANALYSIS.
>
>is never executed, because line #2 and #3 are also interpreted as comments.

To be more precise about how SPSS is 'thinking' here:

"COMMENT", synonym "*", is an SPSS statement. Like other statements,
it can be continued for multiple lines. Also like other statements,
it's ended by a closing '.' on any line, or a blank line.

So, #2 and #3 are not interpreted as [separate] comments; they are
interpreted as part of the COMMENT ("*") statement that begins on
line #1. As Gaurav Srivastava noted, all you need do is close the
comment statement with a period:

* Qualifikation .
FREQUENCIES VARIABLES=v46c
    /ORDER=ANALYSIS.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD