Parsing value labels

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

Parsing value labels

John F Hall

In SPSS24 the VALUE LABELS command doesn’t list warning information in the lower pane until you actually run the job.  Warning messages appear in the spv and you have to use Ctrl+F “warning” to find them.  After each error (except the last) is corrected the previous warning information stays in the lower pane, and error is always shown as in line 2.

 

Errors not picked up by parsing, but quite easy to make when editing source syntax from Word (to delete superfluous, and correct erroneous, labels) copying to Notepad and then into SPSS as plain text include:

 

 

     95 'Other (PLEASE WRITE IN)'

careKn1 to WillB3 >

 

Warning # 4492 in column 1.  Text: careKn1 >The (ADD) VALUE LABELS command included a symbol other than a value where a >value (either numeric or string) was expected.  For compatibility with >previous systems, a parenthesized value would have been acceptable.  All value >labels up to the next slash will be ignored.

 

Cause is a missing / before

careKn1 to WillB3

 

     15 'I have discussed something (with someone)'

     95 'Other (PLEASE WRITE IN)'

careKn1 to WillB3

     -9 'refusal'

     -8 "don't know"

 

ife plan for myself'      6 'None of these' /      -99 'Refusal' >Warning # 4471 in column 6.  Text: -99 >The (ADD) VALUE LABELS command does not specify the names of any variables. >The succeeding value labels will be ignored.

 

Cause is a missing varname

 

     6 'None of these'

/

     -99 'Refusal'

 

WHOSAY1 >Warning # 4492 in column 1.  Text: WHOSAY1 >The (ADD) VALUE LABELS command included a symbol other than a value where a >value (either numeric or string) was expected.  For compatibility with >previous systems, a parenthesized value would have been acceptable.  All value >labels up to the next slash will be ignored.      -9 'Not answered'

 

Cause is a missing / before

WHOSAY1

 

     5 'I do much less then my fair share of the household work'

WHOSAY1

     -9 'Not answered'

 

5 'Disagree strongly'

GovResp1 to GovResp0

>Warning # 4492 in column 1.  Text: GovResp1

 

Cause is a missing / before

GovResp1

CPR2Gov

ESbethea

 

     5 'Disagree strongly'

GovResp1 to GovResp0

     -9 'Not answered'

 

    5 '[SPONTANEOUS CODE: It depends]'

CPR2Gov to CPWNone

     -9 'Refusal'

 

     -9 'Unsure'

ESbethea to ESMprihe

     -9 'Refusal'

 

John F Hall (Mr)

[Retired academic survey researcher]

 

Email:   [hidden email] 

Website: www.surveyresearch.weebly.com

SPSS start page:  www.surveyresearch.weebly.com/1-survey-analysis-workshop

 

 

 

 

 

 

===================== 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: Parsing value labels

Jon Peck
VALUE LABELS is like any other command: errors/warnings appear when it is executed and are listed in the error pane of the SE.  Although the command is color coded to a degree, some errors are not flagged by coloring in the SE because of the excessive flexibility of the command.

On Wed, Jun 1, 2016 at 4:26 AM, John F Hall <[hidden email]> wrote:

In SPSS24 the VALUE LABELS command doesn’t list warning information in the lower pane until you actually run the job.  Warning messages appear in the spv and you have to use Ctrl+F “warning” to find them.  After each error (except the last) is corrected the previous warning information stays in the lower pane, and error is always shown as in line 2.

 

Errors not picked up by parsing, but quite easy to make when editing source syntax from Word (to delete superfluous, and correct erroneous, labels) copying to Notepad and then into SPSS as plain text include:

 

 

     95 'Other (PLEASE WRITE IN)'

careKn1 to WillB3 >

 

Warning # 4492 in column 1.  Text: careKn1 >The (ADD) VALUE LABELS command included a symbol other than a value where a >value (either numeric or string) was expected.  For compatibility with >previous systems, a parenthesized value would have been acceptable.  All value >labels up to the next slash will be ignored.

 

Cause is a missing / before

careKn1 to WillB3

 

     15 'I have discussed something (with someone)'

     95 'Other (PLEASE WRITE IN)'

careKn1 to WillB3

     -9 'refusal'

     -8 "don't know"

 

ife plan for myself'      6 'None of these' /      -99 'Refusal' >Warning # 4471 in column 6.  Text: -99 >The (ADD) VALUE LABELS command does not specify the names of any variables. >The succeeding value labels will be ignored.

 

Cause is a missing varname

 

     6 'None of these'

/

     -99 'Refusal'

 

WHOSAY1 >Warning # 4492 in column 1.  Text: WHOSAY1 >The (ADD) VALUE LABELS command included a symbol other than a value where a >value (either numeric or string) was expected.  For compatibility with >previous systems, a parenthesized value would have been acceptable.  All value >labels up to the next slash will be ignored.      -9 'Not answered'

 

Cause is a missing / before

WHOSAY1

 

     5 'I do much less then my fair share of the household work'

WHOSAY1

     -9 'Not answered'

 

5 'Disagree strongly'

GovResp1 to GovResp0

>Warning # 4492 in column 1.  Text: GovResp1

 

Cause is a missing / before

GovResp1

CPR2Gov

ESbethea

 

     5 'Disagree strongly'

GovResp1 to GovResp0

     -9 'Not answered'

 

    5 '[SPONTANEOUS CODE: It depends]'

CPR2Gov to CPWNone

     -9 'Refusal'

 

     -9 'Unsure'

ESbethea to ESMprihe

     -9 'Refusal'

 

John F Hall (Mr)

[Retired academic survey researcher]

 

Email:   [hidden email] 

Website: www.surveyresearch.weebly.com

SPSS start page:  www.surveyresearch.weebly.com/1-survey-analysis-workshop

 

 

 

 

 

 

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Parsing value labels

John F Hall

Actually VALUE LABELS picks up some, but not all, errors and displays the text grayed out in the left pane.  These are usually blank lines or forward slashes, but clicking on them takes you to the exact place in the syntax to enable corrections.

 

John F Hall (Mr)

[Retired academic survey researcher]

 

Email:   [hidden email] 

Website: www.surveyresearch.weebly.com

SPSS start page:  www.surveyresearch.weebly.com/1-survey-analysis-workshop

 

 

 

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