WPS Interop For Python

SAS Language Modules

WPS Interop For Python

Use the Languages of SAS and Python Together

The WPS Interop for Python module supports the use of the Python language in your SAS programs. Sections of your program written in Python together with data will be processed automatically by your Python environment.

Why Interoperate?

Combining Python and SAS languages together creates a unified solution. Mix the high performance data handling and industrial analytics strengths of the SAS language with your favorite Python syntax and libraries. Data is easily exchanged and processed between the Python and SAS language within a single SAS program.

Python Procedure

The procedure allows you to inline or include Python syntax directly in a SAS program. When the SAS program is executed, WPS processes the SAS syntax itself and utilises your installed Python environment for the execution of the Python syntax.

The output and log information generated by the Python environment are automatically returned back to WPS and can be viewed seamlessly using the WPS Workbench GUI.

PROC PYTHON also provides a simple and efficient way to exchange data between the SAS and Python language environments using Pandas DataFrames.

Dependencies and Usage

WPS Interop for Python can be used on the supported platforms indicated in the table below.

Platform Supported?
AIX on IBM PowerNo
Linux on ARMNo
Linux on IBM Power LE (Little Endian)No
Linux on x86Yes
macOS on x86Yes
Windows on x86Yes
z/OS on an architecture 7 machineNo

More Information

The document listed below will provide you with details about how to setup and use WPS Interop for Python.

Python Procedure Description
WPS-Python-Procedure-User-Guide-Syntax-Diagram.pdf (280 KB) User Guide and lookup for the language support in the WPS Interop for Python module (SYNTAX DIAGRAM version)
WPS-Python-Procedure-User-Guide.pdf (263 KB) User Guide and lookup for the language support in the WPS Interop for Python module (TEXTUAL SYNTAX version)

Other SAS language modules