IBM Support

PM51385: SCRIPTING PREFERENCE SETTING API FAILS IN IBM SPSS STATISTICS 20

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • You try to set a default chart template using the Python
    SpssClient.SetPreference api
    
    First, with no chart template set, run this code
    BEGIN PROGRAM.
    import SpssClient
    SpssClient.StartClient()
    print "\nChart Template state:",
    SpssClient.GetPreference(SpssClient.PreferenceOptions.ChartTempl
    ate), "\n"
    SpssClient.SetPreference(SpssClient.PreferenceOptions.ChartTempl
    ate, "On")
    print "Chart Template after On:",
    SpssClient.GetPreference(SpssClient.PreferenceOptions.ChartTempl
    ate)
    SpssClient.SetPreference(SpssClient.PreferenceOptions.ChartTempl
    ateFile, r'/spss20/20/Looks/marina.sgt')
    print "Path to Chart Template:",
    SpssClient.GetPreference(SpssClient.PreferenceOptions.ChartTempl
    ateFile)
    SpssClient.StopClient()
    END PROGRAM.
    
    Setting the template name fails with this message:
    _SpssClient.SpssClientException: (16617, 'Options could not be
    saved due to Options store failure.', '')
    
    This issue was reported to IBM SPSS Development and is targeted
    to be addressed in Statistics 21 release.
    In the meantime there is an easy workaround. To set a default
    chart template in Statistics you can use the syntax command SET
    CTEMPLATE instead.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users working with Python                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * You try to set a default chart template using the Python     *
    * SpssClient.SetPreference api                                 *
    *                                                              *
    * First, with no chart template set, run this code             *
    * BEGIN PROGRAM.                                               *
    * import SpssClient                                            *
    * SpssClient.StartClient()                                     *
    * print "\nChart Template state:",                             *
    * SpssClient.GetPreference(SpssClient.PreferenceOptions.ChartT *
    * empl                                                         *
    * ate), "\n"                                                   *
    * SpssClient.SetPreference(SpssClient.PreferenceOptions.ChartT *
    * empl                                                         *
    * ate, "On")                                                   *
    * print "Chart Template after On:",                            *
    * SpssClient.GetPreference(SpssClient.PreferenceOptions.ChartT *
    * empl                                                         *
    * ate)                                                         *
    * SpssClient.SetPreference(SpssClient.PreferenceOptions.ChartT *
    * empl                                                         *
    * ateFile, r'/spss20/20/Looks/marina.sgt')                     *
    * print "Path to Chart Template:",                             *
    * SpssClient.GetPreference(SpssClient.PreferenceOptions.ChartT *
    * empl                                                         *
    * ateFile)                                                     *
    * SpssClient.StopClient()                                      *
    * END PROGRAM.                                                 *
    *                                                              *
    * Setting the template name fails with this message:           *
    * _SpssClient.SpssClientException: (16617, 'Options could not  *
    * be                                                           *
    * saved due to Options store failure.', '')                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * This issue is resolved with IBM SPSS Statistics 21 release   *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM51385

  • Reported component name

    SPSS STATISTICS

  • Reported component ID

    5725A54ST

  • Reported release

    K00

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-02

  • Closed date

    2012-08-29

  • Last modified date

    2012-08-29

  • 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

  • RL00 PSN

       UP

  • RL00 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCQ88K","label":"Statistics Desktop"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"20.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
29 August 2012