OMS

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

OMS

behnaz shirazi-2
Hello Dear All:

After installing spss 16 , I have problem with OMS .When I use oms I won't be able to see any table or chart on my output while when I disable it I can see my objects.If I want to disable OMS
I get lot of "case processing" table which I don't need them.

Any suggestions are welcomed!

Thank you
Behnaz
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

=====================
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
|

How to make comments in SPSS

Yifan Lu-2
Hi list,

I want to block a big trunk of comments, how do I do that in SPSS
syntax? E.g., something similar in SAS is either /* ...  */ or %macro
junk; ...%mend junk;

Thanks in advance!

Yifan

MailGate.vsp.com made the following annotations
---------------------------------------------------------------------
NOTICE: This message is intended only for the individual to whom it is addressed and may contain information that is confidential or privileged. If you are not the intended recipient, or the employee or person responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution, copying or use is strictly prohibited. If you have received this communication in error, please notify the sender and destroy or delete this communication immediately.
---------------------------------------------------------------------

=====================
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: How to make comments in SPSS

Norton, John
Comments in SPSS command language are defined by a star ("*") before the comment. Comments are terminated like all other commands, with a command terminator (or period: ".")  The trick with large blocks of narrative comments is that sentences are ended with periods, and those get recognized in SPSS as command terminators.

When I annotate a command file with large blocks of comments, I usually start each line with a star and then indent. This serves two purposes: 1) it visually sets off the comment as suchan and 2) it garuntees that SPSS recognizes the whole block as a comment.

Whenever using comments, be sure you terminate the command (as a comment is actually a command which tells the system to ignore all which follows) with a period. Otherwise the command which follows - the one you want executed - will be treated as part of the comment.

HTH,

John Norton

-----Original Message-----
From: SPSSX(r) Discussion <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Wed Mar 05 19:15:46 2008
Subject:      How to make comments in SPSS

Hi list,

I want to block a big trunk of comments, how do I do that in SPSS
syntax? E.g., something similar in SAS is either /* ...  */ or %macro
junk; ...%mend junk;

Thanks in advance!

Yifan

MailGate.vsp.com made the following annotations
---------------------------------------------------------------------
NOTICE: This message is intended only for the individual to whom it is addressed and may contain information that is confidential or privileged. If you are not the intended recipient, or the employee or person responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution, copying or use is strictly prohibited. If you have received this communication in error, please notify the sender and destroy or delete this communication immediately.
---------------------------------------------------------------------

=====================
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: How to make comments in SPSS

Richard Ristow
In reply to this post by Yifan Lu-2
At 07:15 PM 3/5/2008, Yifan Lu wrote:

>I want to block a big trunk of comments, how do I do that in SPSS
>syntax? E.g., something similar in SAS is either /* ...  */ or
>%macro junk; ...%mend junk;

There are two forms of comment:
. Lines beginning with an asterisk and ending with a period (these
are actually no-op commands), like

*  Count records by premise ("premise_ID");  .

. Text on any line beginning '/*', and ending with '*/' or the end of
the physical line; like

AGGREGATE
    /OUTFILE = * MODE = ADDVARIABLES
    /BREAK   = premise_ID
    /n_current_tenant      /* Number of records FOR CURRENT TENANT   */
             = SUM(current_tenant)

(Be careful: macros inside the first kind of comment are expanded.)

=====================
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: How to make comments in SPSS

Albert-Jan Roskam
In reply to this post by Norton, John
Hi John,

But I was wondering, is there also a way to have
docstrings in spss, similar to Python? So triple quote
- comment - triple quote? It's kinda annoying
sometimes to put asterisks before each and every line.
And it's also useful if you want to 'turn off' a chunk
of syntax.

Cheers!!
Albert-Jan


--- "Norton, John" <[hidden email]> wrote:

> Comments in SPSS command language are defined by a
> star ("*") before the comment. Comments are
> terminated like all other commands, with a command
> terminator (or period: ".")  The trick with large
> blocks of narrative comments is that sentences are
> ended with periods, and those get recognized in SPSS
> as command terminators.
>
> When I annotate a command file with large blocks of
> comments, I usually start each line with a star and
> then indent. This serves two purposes: 1) it
> visually sets off the comment as suchan and 2) it
> garuntees that SPSS recognizes the whole block as a
> comment.
>
> Whenever using comments, be sure you terminate the
> command (as a comment is actually a command which
> tells the system to ignore all which follows) with a
> period. Otherwise the command which follows - the
> one you want executed - will be treated as part of
> the comment.
>
> HTH,
>
> John Norton
>
> -----Original Message-----
> From: SPSSX(r) Discussion <[hidden email]>
> To: [hidden email]
> <[hidden email]>
> Sent: Wed Mar 05 19:15:46 2008
> Subject:      How to make comments in SPSS
>
> Hi list,
>
> I want to block a big trunk of comments, how do I do
> that in SPSS
> syntax? E.g., something similar in SAS is either /*
> ...  */ or %macro
> junk; ...%mend junk;
>
> Thanks in advance!
>
> Yifan
>
> MailGate.vsp.com made the following annotations
>
---------------------------------------------------------------------

> NOTICE: This message is intended only for the
> individual to whom it is addressed and may contain
> information that is confidential or privileged. If
> you are not the intended recipient, or the employee
> or person responsible for delivering it to the
> intended recipient, you are hereby notified that any
> dissemination, distribution, copying or use is
> strictly prohibited. If you have received this
> communication in error, please notify the sender and
> destroy or delete this communication immediately.
>
---------------------------------------------------------------------

>
> =====================
> 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
>  :&jv {*.®Ë›±Êâ¦Ø¨žÚ =$—.ǧu©ž²Æ
zÚ !$Ò  K!$Ò  T   Rz-¶„I%ËÂ+až†èw+^Æ×±qêm¶ œ¢išÔè•æ¯zØ^–+-±éݶ œ¢išÔˆ Ӆ #ÒIrÅ¢¶¥ Ëh}Ê&™©Ý²Ú&jv
z˛±Êâ¦Ø¨žË ÛayÊ&™©Ý ÑNDAB



      ____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

=====================
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: How to make comments in SPSS

Richard Ristow
At 03:19 AM 3/6/2008, Albert-jan Roskam wrote:

>But I was wondering, is there also a way to have docstrings in spss,
>similar to Python? So triple quote - comment - triple quote? It's
>kinda annoying
>sometimes to put asterisks before each and every line.

ECHO 'Demo of long comments'.
Demo of long comments


*  It is possible to have multi-line comments in SPSS, since '*' is  +
    a command with the same syntax rules as any other. You have to    +
    be careful that none of the comment lines ends with '.', as that  +
    terminates the command. (I'm putting plus signs, '+'comma at the  +
    end of every line to avert that possibility.)                     +
                                                                      +
    And you can't have blank lines within the comment, as that also   +
    terminates the command. But the closing single '+', alone, is     +
    effectively a blank.                                              +
                                                                      +
    I don't fancy multi-line comments in SPSS or any other language.  +
    It's too easy to leave a comment unclosed, and have it 'eat'      +
    some of the code. Or not to see what you've commented out and     +
    what you havent.                                                  .

*  For that reason, I write block comments as multiple single-line   .
*  comments. Then they're set off obviously from the rest of the     .
*  text. And unclosed comments are easier to spot.                   .

ECHO 'End of demo'.
End of demo


>And it's also useful if you want to 'turn off' a chunk of syntax.

As you will, but that's a particularly dangerous use of multi-line
comments. It's remarkably easy to miss what code you've commented
out, and what you haven't.

=====================
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: How to make comments in SPSS

Marks, Jim
FWIW I use *** or ** to mark my comments (each line).

That way I can search for comments, and not get stopped by "file = *"

--jim

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Richard Ristow
Sent: Thursday, March 06, 2008 6:28 AM
To: [hidden email]
Subject: Re: How to make comments in SPSS

At 03:19 AM 3/6/2008, Albert-jan Roskam wrote:

>But I was wondering, is there also a way to have docstrings in spss,
>similar to Python? So triple quote - comment - triple quote? It's kinda

>annoying sometimes to put asterisks before each and every line.

ECHO 'Demo of long comments'.
Demo of long comments


*  It is possible to have multi-line comments in SPSS, since '*' is  +
    a command with the same syntax rules as any other. You have to    +
    be careful that none of the comment lines ends with '.', as that  +
    terminates the command. (I'm putting plus signs, '+'comma at the  +
    end of every line to avert that possibility.)                     +
                                                                      +
    And you can't have blank lines within the comment, as that also   +
    terminates the command. But the closing single '+', alone, is     +
    effectively a blank.                                              +
                                                                      +
    I don't fancy multi-line comments in SPSS or any other language.  +
    It's too easy to leave a comment unclosed, and have it 'eat'      +
    some of the code. Or not to see what you've commented out and     +
    what you havent.                                                  .

*  For that reason, I write block comments as multiple single-line   .
*  comments. Then they're set off obviously from the rest of the     .
*  text. And unclosed comments are easier to spot.                   .

ECHO 'End of demo'.
End of demo


>And it's also useful if you want to 'turn off' a chunk of syntax.

As you will, but that's a particularly dangerous use of multi-line
comments. It's remarkably easy to miss what code you've commented out,
and what you haven't.

=====================
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

=====================
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