Hi Ben,

Something is wrong with this syntax. (See attached txt.) I could not figure out what.

Cheers,

Zoltan

On 17/04/13 07:24, Ben Pfaff wrote:
I'm trying to figure out what DESCRIPTIVES should do when both TEMPORARY
and Z scores are in use.  Here's an example.  If you have access to
SPSS, please run the following syntax and report the output.

Thanks,

Ben.

DATA LIST LIST NOTABLE /id abc.
BEGIN DATA.
1 3.5
2 2.0
3 2.0
4 3.5
5 3.0
6 4.0
7 5.0
END DATA.

TEMPORARY.
SELECT IF id < 7 .

DESCRIPTIVES /VAR=abc/SAVE.
LIST.

_______________________________________________
Pspp-users mailing list
pspp-us...@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-users

DATA LIST LIST NOTABLE /id abc.
BEGIN DATA.
1 3.5

Warning # 1102
An invalid numeric field has been found.  The result has been set to the
system-missing value.
Command line: 9  Current case: 1  Current splitfile group: 1
Field contents: '3.5'
Record number: 1  Starting column: 3  Record length: 5

2 2.0

Warning # 1102
An invalid numeric field has been found.  The result has been set to the
system-missing value.
Command line: 9  Current case: 2  Current splitfile group: 1
Field contents: '2.0'
Record number: 2  Starting column: 3  Record length: 5

3 2.0

Warning # 1102
An invalid numeric field has been found.  The result has been set to the
system-missing value.
Command line: 9  Current case: 3  Current splitfile group: 1
Field contents: '2.0'
Record number: 3  Starting column: 3  Record length: 5

4 3.5

Warning # 1102
An invalid numeric field has been found.  The result has been set to the
system-missing value.
Command line: 9  Current case: 4  Current splitfile group: 1
Field contents: '3.5'
Record number: 4  Starting column: 3  Record length: 5

5 3.0

Warning # 1102
An invalid numeric field has been found.  The result has been set to the
system-missing value.
Command line: 9  Current case: 5  Current splitfile group: 1
Field contents: '3.0'
Record number: 5  Starting column: 3  Record length: 5

6 4.0

Warning # 1102
An invalid numeric field has been found.  The result has been set to the
system-missing value.
Command line: 9  Current case: 6  Current splitfile group: 1
Field contents: '4.0'
Record number: 6  Starting column: 3  Record length: 5

7 5.0

Warning # 1102
An invalid numeric field has been found.  The result has been set to the
system-missing value.
Command line: 9  Current case: 7  Current splitfile group: 1
Field contents: '5.0'
Record number: 7  Starting column: 3  Record length: 5

END DATA.

TEMPORARY.
SELECT IF id < 7 .

DESCRIPTIVES /VAR=abc/SAVE.


Descriptives

Notes
|-----------------------------------------------------|---------------------------------------------------|
|Output Created                                       |17-ápr.-2013 12:04:02    
                          |
|-----------------------------------------------------|---------------------------------------------------|
|Comments                                             |                         
                          |
|----------------------|------------------------------|---------------------------------------------------|
|Input                 |Filter                        |<none>                   
                          |
|                      
|------------------------------|---------------------------------------------------|
|                      |Weight                        |<none>                   
                          |
|                      
|------------------------------|---------------------------------------------------|
|                      |Split File                    |<none>                   
                          |
|                      
|------------------------------|---------------------------------------------------|
|                      |N of Rows in Working Data File|6                        
                          |
|----------------------|------------------------------|---------------------------------------------------|
|Missing Value Handling|Definition of Missing         |User defined missing 
values are treated as missing.|
|                      
|------------------------------|---------------------------------------------------|
|                      |Cases Used                    |All non-missing data are 
used.                     |
|----------------------|------------------------------|---------------------------------------------------|
|Syntax                                               |DESCRIPTIVES 
/VAR=abc/SAVE.                        |
|----------------------|------------------------------|---------------------------------------------------|
|Resources             |Processor Time                |00 00:00:00,016          
                          |
|                      
|------------------------------|---------------------------------------------------|
|                      |Elapsed Time                  |00 00:00:00,014          
                          |
|----------------------|------------------------------|---------------------------------------------------|



Warnings
|------------------------------------------------------------|
|No statistics are computed because there are no valid cases.|
|------------------------------------------------------------|
|Execution of this command stops.                            |
|------------------------------------------------------------|


LIST.


List

Notes
|---------------------------------------------|---------------------|
|Output Created                               |17-ápr.-2013 12:04:03|
|---------------------------------------------|---------------------|
|Comments                                     |                     |
|--------------|------------------------------|---------------------|
|Input         |Filter                        |<none>               |
|              |------------------------------|---------------------|
|              |Weight                        |<none>               |
|              |------------------------------|---------------------|
|              |Split File                    |<none>               |
|              |------------------------------|---------------------|
|              |N of Rows in Working Data File|7                    |
|--------------|------------------------------|---------------------|
|Syntax                                       |LIST.                |
|--------------|------------------------------|---------------------|
|Resources     |Processor Time                |00 00:00:00,000      |
|              |------------------------------|---------------------|
|              |Elapsed Time                  |00 00:00:00,031      |
|--------------|------------------------------|---------------------|





                  id                  abc

               1,000                 .
               2,000                 .
               3,000                 .
               4,000                 .
               5,000                 .
               6,000                 .
               7,000                 .


Number of cases read:  7    Number of cases listed:  7

_______________________________________________
pspp-dev mailing list
pspp-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to