IBM Support

PM47603: MOVE TO ROW API USED IN PYTHON SCRIPT DOES NOT WORK IN IBM SPSS STATISTICS 20 FOR FAST TABLES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • You work with IBM SPSS Statistics 20 and Python Integration
    PlugIn installed. You create some fast rendered pivot tables and
    use a Python script as in the example below to pivot the pivot
    row dimension 'Statistics' of a crosstabulation table to first
    row dimension, but it does nothing since the MoveToRow API does
    not work.
    If you use the opposite API MoveToColumn for fast tables the
    Python script works.
    
    import SpssClient
    SpssClient.StartClient()
    objOutputDoc = SpssClient.GetDesignatedOutputDoc()
    objOutputItem = objOutputDoc.GetCurrentItem()
    
    objPivotTable = objOutputItem.GetSpecificType()
    PivotManager = objPivotTable.PivotManager()
    # Search for the row dimension named "Statistics" and pivot it
    to
    # the first row dimension.
    for i in range(PivotManager.GetNumRowDimensions()):
       RowDim = PivotManager.GetRowDimension(i)
       if RowDim.GetDimensionName() == "Statistics":
          RowDim.MoveToRow(1)
          break
    
    SpssClient.StopClient()
    

Local fix

  • This issue is expected to be resolved with IBM SPSS Statistics
    20 FixPack 1.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users working with Python and MoveToRow API                  *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * You work with IBM SPSS Statistics 20 and Python Integration  *
    * PlugIn installed. You create some fast rendered pivot tables *
    * and                                                          *
    * use a Python script as in the example below to pivot the     *
    * pivot                                                        *
    * row dimension 'Statistics' of a crosstabulation table to     *
    * first                                                        *
    * row dimension, but it does nothing since the MoveToRow API   *
    * does                                                         *
    * not work.                                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Install IBM SPSS Statistics 20 FixPack 1 (20.0.0.1)          *
    ****************************************************************
    

Problem conclusion

  • Install IBM SPSS Statistics 20 FixPack 1 (20.0.0.1)
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM47603

  • Reported component name

    SPSS STATISTICS

  • Reported component ID

    5725A54ST

  • Reported release

    K00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-09-12

  • Closed date

    2012-03-01

  • Last modified date

    2012-03-01

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

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

Fix information

  • Fixed component name

    SPSS STATISTICS

  • Fixed component ID

    5725A54ST

Applicable component levels

  • RK00 PSN

       UP

  • RK00 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:
01 March 2012