SPSS playing up again

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

SPSS playing up again

John F Hall

1: Syntax:

 

compute youngkids = N1to4 +  N5to10 + N11to15.

formats youngkids (f2.0).

variable labels youngkids 'Number of children under 16 in h/h'.

recode youngkids (5 6 =4).

value labels youngkids 'Number of children under 16 in h/h'.

value labels youngkids

    0 'No child under 16'

    1 'One'     2 'Two' 3 'Three' 4 'Four or more'.

frequencies youngkids.

means mcz_5g by youngkids.

 

Error message:

1 compute Incorrect variable name: either the name is more than 64 characters, or it is not defined by a previous command.

2 formats A variable named on the FORMATS, PRINT FORMATS, or WRITE FORMATS command has not yet been defined.

3 variable labels An unknown variable name was specified on the VAR LABELS command.  The name and the label will be ignored.

4 recode On the RECODE command, the list of variables to be recoded includes the name of a nonexistent variable.

5 value labels The (ADD) VALUE LABELS command specifies an unknown variable name.  The name will be ignored.

5 value labels The (ADD) VALUE LABELS command specifies the labeling of a value which is inconsistent with the type and/or the format of the variables to be labeled. The value and the applicable label will be ignored.  This error may occur because a numeric value was omitted and the system mistook a label for a character value, or the display formats of the variables are not the same.

 

2:  Copy syntax to a New Editor

 

compute youngkids = N1to4 +  N5to10 + N11to15.

formats youngkids (f2.0).

variable labels youngkids 'Number of children under 16 in h/h'.

recode youngkids (5 6 =4).

value labels youngkids 'Number of children under 16 in h/h'.

value labels youngkids

    0 'No child under 16'

    1 'One'     2 'Two' 3 'Three' 4 'Four or more'.

frequencies youngkids.

means mcz_5g by youngkids.

 

3:  No error messages: run job

 

 

compute youngkids = N1to4 +  N5to10 + N11to15.

formats youngkids (f2.0).

variable labels youngkids 'Number of children under 16 in h/h'.

recode youngkids (5 6 =4).

value labels youngkids 'Number of children under 16 in h/h'.

 

Error # 1102 in column 24.  Text: Number of children under 16 in h/h

An invalid numeric field has been found.  The result has been set to the

system-missing value.

Execution of this command stops.

 

Warning # 4487 in column 24.  Text: Number of children under 16 in h/h

The (ADD) VALUE LABELS command specifies the labeling of a value which is

inconsistent with the type and/or the format of the variables to be labeled.

The value and the applicable label will be ignored.  This error may occur

because a numeric value was omitted and the system mistook a label for a

character value, or the display formats of the variables are not the same.

value labels youngkids

    0 'No child under 16'

    1 'One'     2 'Two' 3 'Three' 4 'Four or more'.

frequencies youngkids.

 

4:  The job still produced the result I wanted.

Statistics

youngkids Number of children under 16 in h/h 

N

Valid

1124

Missing

0

 

 

youngkids Number of children under 16 in h/h

 

Frequency

Percent

Valid Percent

Cumulative Percent

Valid

0 No child under 16

843

75.0

75.0

75.0

1 One

127

11.3

11.3

86.3

2 Two

114

10.1

10.1

96.4

3 Three

31

2.8

2.8

99.2

4 Four or more

9

.8

.8

100.0

Total

1124

100.0

100.0

 

 

 

Case Processing Summary

 

Cases

Included

Excluded

Total

N

Percent

N

Percent

N

Percent

MCZ_5g Overall, how satisfied with amount of time have to do things like doing?  * youngkids Number of children under 16 in h/h

1114

99.1%

10

0.9%

1124

100.0%

 

 

 

Report

MCZ_5g Overall, how satisfied with amount of time have to do things like doing? 

youngkids Number of children under 16 in h/h

Mean

N

Std. Deviation

0 No child under 16

7.07

839

2.334

1 One

6.26

123

2.343

2 Two

5.88

113

2.457

3 Three

5.30

30

2.409

4 Four or more

7.00

9

2.121

Total

6.81

1114

2.394

 

Error message now appears in Syntax Editor

 

6 value labels An invalid numeric field has been found.  The result has been set to the system-missing value.

6 value labels The (ADD) VALUE LABELS command specifies the labeling of a value which is inconsistent with the type and/or the format of the variables to be labeled. The value and the applicable label will be ignored.  This error may occur because a numeric value was omitted and the system mistook a label for a character value, or the display formats of the variables are not the same.

 

What is going on?

 

John F Hall MA (Cantab) Dip Ed (Dunelm)

IBM-SPSS Academic Author 9900074

 

Email: [hidden email]

Website: Journeys in Survey Research

Course: Survey Analysis Workshop (SPSS)

 

===================== 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: SPSS playing up again

Bruce Weaver
Administrator
John, you'll want to get rid of this line, I expect!  

value labels youngkids 'Number of children under 16 in h/h'.




John F Hall wrote

> 1: Syntax:
>
>  
>
> compute youngkids = N1to4 +  N5to10 + N11to15.
>
> formats youngkids (f2.0).
>
> variable labels youngkids 'Number of children under 16 in h/h'.
>
> recode youngkids (5 6 =4).
>
> value labels youngkids 'Number of children under 16 in h/h'.
>
> value labels youngkids
>
>     0 'No child under 16'
>
>     1 'One'     2 'Two' 3 'Three' 4 'Four or more'.
>
> frequencies youngkids.
>
> means mcz_5g by youngkids.
>
>  
>
> Error message:
>
> 1 compute Incorrect variable name: either the name is more than 64
> characters, or it is not defined by a previous command.
>
> 2 formats A variable named on the FORMATS, PRINT FORMATS, or WRITE FORMATS
> command has not yet been defined.
>
> 3 variable labels An unknown variable name was specified on the VAR LABELS
> command.  The name and the label will be ignored.
>
> 4 recode On the RECODE command, the list of variables to be recoded
> includes
> the name of a nonexistent variable.
>
> 5 value labels The (ADD) VALUE LABELS command specifies an unknown
> variable
> name.  The name will be ignored.
>
> 5 value labels The (ADD) VALUE LABELS command specifies the labeling of a
> value which is inconsistent with the type and/or the format of the
> variables
> to be labeled. The value and the applicable label will be ignored.  This
> error may occur because a numeric value was omitted and the system mistook
> a
> label for a character value, or the display formats of the variables are
> not
> the same.
>
>  
>
> 2:  Copy syntax to a New Editor
>
>  
>
> compute youngkids = N1to4 +  N5to10 + N11to15.
>
> formats youngkids (f2.0).
>
> variable labels youngkids 'Number of children under 16 in h/h'.
>
> recode youngkids (5 6 =4).
>
> value labels youngkids 'Number of children under 16 in h/h'.
>
> value labels youngkids
>
>     0 'No child under 16'
>
>     1 'One'     2 'Two' 3 'Three' 4 'Four or more'.
>
> frequencies youngkids.
>
> means mcz_5g by youngkids.
>
>  
>
> 3:  No error messages: run job
>
>  
>
>  
>
> compute youngkids = N1to4 +  N5to10 + N11to15.
>
> formats youngkids (f2.0).
>
> variable labels youngkids 'Number of children under 16 in h/h'.
>
> recode youngkids (5 6 =4).
>
> value labels youngkids 'Number of children under 16 in h/h'.
>
>  
>
> Error # 1102 in column 24.  Text: Number of children under 16 in h/h
>
> An invalid numeric field has been found.  The result has been set to the
>
> system-missing value.
>
> Execution of this command stops.
>
>  
>
> Warning # 4487 in column 24.  Text: Number of children under 16 in h/h
>
> The (ADD) VALUE LABELS command specifies the labeling of a value which is
>
> inconsistent with the type and/or the format of the variables to be
> labeled.
>
> The value and the applicable label will be ignored.  This error may occur
>
> because a numeric value was omitted and the system mistook a label for a
>
> character value, or the display formats of the variables are not the same.
>
> value labels youngkids
>
>     0 'No child under 16'
>
>     1 'One'     2 'Two' 3 'Three' 4 'Four or more'.
>
> frequencies youngkids.
>
>  
>
> 4:  The job still produced the result I wanted.
>
>
> Statistics
>
>
> youngkids Number of children under 16 in h/h  
>
>
> N
>
> Valid
>
> 1124
>
>
> Missing
>
> 0
>
>  
>
>  
>
>
> youngkids Number of children under 16 in h/h
>
>
>  
>
> Frequency
>
> Percent
>
> Valid Percent
>
> Cumulative Percent
>
>
> Valid
>
> 0 No child under 16
>
> 843
>
> 75.0
>
> 75.0
>
> 75.0
>
>
> 1 One
>
> 127
>
> 11.3
>
> 11.3
>
> 86.3
>
>
> 2 Two
>
> 114
>
> 10.1
>
> 10.1
>
> 96.4
>
>
> 3 Three
>
> 31
>
> 2.8
>
> 2.8
>
> 99.2
>
>
> 4 Four or more
>
> 9
>
> .8
>
> .8
>
> 100.0
>
>
> Total
>
> 1124
>
> 100.0
>
> 100.0
>
>  
>
>  
>
>  
>
>
> Case Processing Summary
>
>
>  
>
> Cases
>
>
> Included
>
> Excluded
>
> Total
>
>
> N
>
> Percent
>
> N
>
> Percent
>
> N
>
> Percent
>
>
> MCZ_5g Overall, how satisfied with amount of time have to do things like
> doing?  * youngkids Number of children under 16 in h/h
>
> 1114
>
> 99.1%
>
> 10
>
> 0.9%
>
> 1124
>
> 100.0%
>
>  
>
>  
>
>  
>
>
> Report
>
>
> MCZ_5g Overall, how satisfied with amount of time have to do things like
> doing?  
>
>
> youngkids Number of children under 16 in h/h
>
> Mean
>
> N
>
> Std. Deviation
>
>
> 0 No child under 16
>
> 7.07
>
> 839
>
> 2.334
>
>
> 1 One
>
> 6.26
>
> 123
>
> 2.343
>
>
> 2 Two
>
> 5.88
>
> 113
>
> 2.457
>
>
> 3 Three
>
> 5.30
>
> 30
>
> 2.409
>
>
> 4 Four or more
>
> 7.00
>
> 9
>
> 2.121
>
>
> Total
>
> 6.81
>
> 1114
>
> 2.394
>
>  
>
> Error message now appears in Syntax Editor
>
>  
>
> 6 value labels An invalid numeric field has been found.  The result has
> been
> set to the system-missing value.
>
> 6 value labels The (ADD) VALUE LABELS command specifies the labeling of a
> value which is inconsistent with the type and/or the format of the
> variables
> to be labeled. The value and the applicable label will be ignored.  This
> error may occur because a numeric value was omitted and the system mistook
> a
> label for a character value, or the display formats of the variables are
> not
> the same.
>
>  
>
> What is going on?
>
>  
>
> John F Hall MA (Cantab) Dip Ed (Dunelm)
>
> IBM-SPSS Academic Author 9900074
>
>  
>
> Email:

> johnfhall@

>  <mailto:

> johnfhall@

> >  
>
> Website: Journeys in Survey Research
> <https://surveyresearch.weebly.com/> 
>
> Course: Survey Analysis Workshop (SPSS)
> <https://surveyresearch.weebly.com/1-survey-analysis-workshop-spss.html> 
>
>  
>
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

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





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: SPSS playing up again

Jon Peck
In reply to this post by John F Hall
Maybe you have an unterminated command preceding the COMPUTE.  The later errors all stem from the COMPUTE failure.

On Thu, Apr 9, 2020 at 3:32 AM Joihn F Hall <[hidden email]> wrote:

1: Syntax:

 

compute youngkids = N1to4 +  N5to10 + N11to15.

formats youngkids (f2.0).

variable labels youngkids 'Number of children under 16 in h/h'.

recode youngkids (5 6 =4).

value labels youngkids 'Number of children under 16 in h/h'.

value labels youngkids

    0 'No child under 16'

    1 'One'     2 'Two' 3 'Three' 4 'Four or more'.

frequencies youngkids.

means mcz_5g by youngkids.

 

Error message:

1 compute Incorrect variable name: either the name is more than 64 characters, or it is not defined by a previous command.

2 formats A variable named on the FORMATS, PRINT FORMATS, or WRITE FORMATS command has not yet been defined.

3 variable labels An unknown variable name was specified on the VAR LABELS command.  The name and the label will be ignored.

4 recode On the RECODE command, the list of variables to be recoded includes the name of a nonexistent variable.

5 value labels The (ADD) VALUE LABELS command specifies an unknown variable name.  The name will be ignored.

5 value labels The (ADD) VALUE LABELS command specifies the labeling of a value which is inconsistent with the type and/or the format of the variables to be labeled. The value and the applicable label will be ignored.  This error may occur because a numeric value was omitted and the system mistook a label for a character value, or the display formats of the variables are not the same.

 

2:  Copy syntax to a New Editor

 

compute youngkids = N1to4 +  N5to10 + N11to15.

formats youngkids (f2.0).

variable labels youngkids 'Number of children under 16 in h/h'.

recode youngkids (5 6 =4).

value labels youngkids 'Number of children under 16 in h/h'.

value labels youngkids

    0 'No child under 16'

    1 'One'     2 'Two' 3 'Three' 4 'Four or more'.

frequencies youngkids.

means mcz_5g by youngkids.

 

3:  No error messages: run job

 

 

compute youngkids = N1to4 +  N5to10 + N11to15.

formats youngkids (f2.0).

variable labels youngkids 'Number of children under 16 in h/h'.

recode youngkids (5 6 =4).

value labels youngkids 'Number of children under 16 in h/h'.

 

Error # 1102 in column 24.  Text: Number of children under 16 in h/h

An invalid numeric field has been found.  The result has been set to the

system-missing value.

Execution of this command stops.

 

Warning # 4487 in column 24.  Text: Number of children under 16 in h/h

The (ADD) VALUE LABELS command specifies the labeling of a value which is

inconsistent with the type and/or the format of the variables to be labeled.

The value and the applicable label will be ignored.  This error may occur

because a numeric value was omitted and the system mistook a label for a

character value, or the display formats of the variables are not the same.

value labels youngkids

    0 'No child under 16'

    1 'One'     2 'Two' 3 'Three' 4 'Four or more'.

frequencies youngkids.

 

4:  The job still produced the result I wanted.

Statistics

youngkids Number of children under 16 in h/h 

N

Valid

1124

Missing

0

 

 

youngkids Number of children under 16 in h/h

 

Frequency

Percent

Valid Percent

Cumulative Percent

Valid

0 No child under 16

843

75.0

75.0

75.0

1 One

127

11.3

11.3

86.3

2 Two

114

10.1

10.1

96.4

3 Three

31

2.8

2.8

99.2

4 Four or more

9

.8

.8

100.0

Total

1124

100.0

100.0

 

 

 

Case Processing Summary

 

Cases

Included

Excluded

Total

N

Percent

N

Percent

N

Percent

MCZ_5g Overall, how satisfied with amount of time have to do things like doing?  * youngkids Number of children under 16 in h/h

1114

99.1%

10

0.9%

1124

100.0%

 

 

 

Report

MCZ_5g Overall, how satisfied with amount of time have to do things like doing? 

youngkids Number of children under 16 in h/h

Mean

N

Std. Deviation

0 No child under 16

7.07

839

2.334

1 One

6.26

123

2.343

2 Two

5.88

113

2.457

3 Three

5.30

30

2.409

4 Four or more

7.00

9

2.121

Total

6.81

1114

2.394

 

Error message now appears in Syntax Editor

 

6 value labels An invalid numeric field has been found.  The result has been set to the system-missing value.

6 value labels The (ADD) VALUE LABELS command specifies the labeling of a value which is inconsistent with the type and/or the format of the variables to be labeled. The value and the applicable label will be ignored.  This error may occur because a numeric value was omitted and the system mistook a label for a character value, or the display formats of the variables are not the same.

 

What is going on?

 

John F Hall MA (Cantab) Dip Ed (Dunelm)

IBM-SPSS Academic Author 9900074

 

Email: [hidden email]

Website: Journeys in Survey Research

Course: Survey Analysis Workshop (SPSS)

 

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


--
Jon K Peck
[hidden email]

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