IBM Support

PH27237: SPSS STATISTICS 27: SPSSSYNTAXDOC.SETSYNTAX DOES NOT WORK PROPERLY FOR KOREAN LANGUAGE AND PYTHON 3

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 27 and installed an external
    Python 2.7.18. On a Python 2 syntax you use
    SpssSyntaxDoc.SetSyntax command that creates a new syntax window
    and push some text of Korean language into the new Syntax
    window. This works fine with external python 2.7 within SPSS
    Statistics 27.
    However, if you use the same syntax as Python 3 to use embedded
    Python 3 in SPSS 27, it does not work properly. A new syntax
    window is created but the posted Korean text is garbled and not
    correct.
    
    An example is:
    begin program python3.
    # -*- coding:utf-8 -*-
    import spss
    import SpssClient
    try:
      SpssClient.StartClient()
      SpssSyntaxDoc = SpssClient.NewSyntaxDoc()
      SpssSyntaxDoc.SetSyntax(u"Korean text here")
      SpssClient.StopClient()
    except Exception as e:
      print(e)
    end program.
    

Local fix

  • This was reported to IBM SPSS Development for review.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * see APAR text                                                *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * see APAR text                                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * This issue has been addressed in IBM SPSS Statistics 27.0.1  *
    * release. Please upgrade to this version.                     *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH27237

  • Reported component name

    SPSS STATISTICS

  • Reported component ID

    5725A54ST

  • Reported release

    Q00

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-07-08

  • Closed date

    2020-11-20

  • Last modified date

    2020-11-20

  • 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

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLVMB","label":"IBM SPSS Statistics"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Q00"}]

Document Information

Modified date:
21 November 2020