WPS Interop For Python
SAS Language Modules

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 Power | |
Linux on ARM | |
Linux on IBM Power LE (Little Endian) | |
Linux on x86 | ![]() |
macOS on x86 |
![]() |
Windows on x86 |
![]() |
z/OS on an architecture 7 machine |
More Information
The documents listed below provide details about the supported language syntax.
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) |
Have a question?
Try or buy
Standard Edition
Academic Edition
Community Edition