BEGIN PROGRAM-END PROGRAM

BEGIN PROGRAM-END PROGRAM is available in the IBM® SPSS® Statistics Programmability Extension. It is not available in Statistical Services for SQL Server 2005.

BEGIN PROGRAM [{PYTHON3**}].
               {R        }
programming language-specific statements
END PROGRAM.

** PYTHON3 is the default setting. For compatibility purposes, the command defaults to PYTHON2 when the PYTHON3 keyword is not specified. For more information on working with Python 2, see the Python 2 support section in Running Python code with Python.

Release History

Release 14.0

  • Command introduced.

Release 24.0

  • PYTHON3 keyword introduced.

Release 27.0

  • PYTHON3 keyword is the default setting. Support for Python 2.x has been deprecated.