SPSS Statistics

 View Only
  • 1.  SPSSINC TRANS command not recognized

    Posted Mon January 04, 2021 10:12 AM
    Hi,

    I've just downloaded a demo version of SPSS 27 and a syntax that works correctly on another installation does not work anymore. 

    A simplified version of my syntax is the following. All I'm trying to do is to call a Python function from SPSS


    BEGIN PROGRAM Python3.
    def my_function(rc):
    return 1
    END PROGRAM.
    SPSSINC TRANS RESULT=IS_RC TYPE=0 /FORMULA my_function(RC).
    execute.


    When I run it, I get the error 

    >Error # 1. Command name: SPSSINC
    >The first word in the line is not recognized as an SPSS Statistics command.
    >Execution of this command stops.


    Am I missing something in orde to be able to use the SPSSINC TRANS?

    cheers,
    Jan



    ------------------------------
    Jan
    ------------------------------

    #SPSSStatistics


  • 2.  RE: SPSSINC TRANS command not recognized
    Best Answer

    IBM Champion
    Posted Mon January 04, 2021 10:17 AM
    This means that the SPSSINC TRANS extension command is not installed.  (I have been trying to get that error message improved for years.)  Go to Extensions > Extension Hub and install it from there.  You might need to start Statistics in Administrator mode depending on your system permissions and how  you installed it.

    --





  • 3.  RE: SPSSINC TRANS command not recognized

    Posted Mon January 04, 2021 11:34 AM
    hi Jon

    yes I did figure that out and wanted to posted a solution but my message was not yet approved :)

    Actually that error message is quite self explanatory but I just thought this command came bundled in in SPSS by default.

    thanks, it works now as expected!

    ------------------------------
    Jan C
    ------------------------------