PM82097: UNABLE TO USE A STRING VARIABLE IN A CROSS-VARIABLE RULE ON VALIDATE DATA

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as fixed if next.

Error description

  • You work with IBM SPSS Statistics release 21 and the sample file
    Employee Data.sav and create a cross variable rule for data
    validation where a string variable is part of the logical
    expression:
    
    - Click Data - Validation - Define Rules
    - Click on Cross-Variable Rules tab
    - Define a rule name on rule definition
    - As logical expression type:  gender = 'f' & salary >= 30000
    ,then click OK
    - Next click on Data Validation - Validate Data
    - On Variables tab select gender, current salary and beginning
    salary as variables for the analysis. Select Id variable as case
    identifier variables
    - On this dialog click on cross variable rules tab. You see the
    rule for gender and salary is displayed and checked
    - Click OK
    
    However, no validation is performed. Two warnings are displayed
    instead in the viewer:
    ------------
    Warning
    GENDER is not a valid keyword for the Datafile Attribute
    command.
    Execution of this command stops.
    -----------
    Warning
    Cross-variable rule $VD.CRule(1) is undefined.
    Execution of this command stops.
    ---------------
    Additionally, when you go back to validate data  dialog onto
    cross variable rules tab you see the rule defined earlier in the
    same session is gone and you have to redefine the rule.
    
    This was reported to IBM SPSS Development. The problem is the
    string variable in the expression. as a workaround please use
    AUTORECODE to convert the string variable to a numeric varible
    and then use the new numeric veriable on cross variable rule
    definition.
    
    AUTORECODE VARIABLES=gender
    /INTO gender2
    /PRINT.
    
    Then you can use this logical expression for example:
    gender2 = 1 & salary >= 30000
    

Local fix

  • This issue will be addressed in a future release.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * UNABLE TO USE A STRING VARIABLE IN A CROSS-VARIABLE RULE ON  *
    * VALIDATE DATA                                                *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * UNABLE TO USE A STRING VARIABLE IN A CROSS-VARIABLE RULE ON  *
    * VALIDATE DATA                                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * This issue has been addressed in IBM SPSS Statistics 22      *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM82097

  • Reported component name

    SPSS STATISTICS

  • Reported component ID

    5725A54ST

  • Reported release

    L00

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-02-05

  • Closed date

    2013-08-26

  • Last modified date

    2013-08-26

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

  • RM00 PSN

       UP

  • RM00 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

SPSS Statistics
Statistics Desktop

Software version:

21.0

Reference #:

PM82097

Modified date:

2013-08-26

Translate my page

Machine Translation

Content navigation