@Roymadpis
Check out this Blog Post SAS or Python? Why not use both? Using Python functions inside SAS programs
The SAS on-line documentation has additional examples
But be aware, there are pre-requisites for this functionality:
Python 3.x must be installed on your SAS Compute/Processing Server
Must have SAS 9.4 M6 / M7 release
Must define two Environment Variables
MAS_M2PATH: <location for SAS supplied mas2py.py script>
MAS_PYPATH:<Location of your Python binary>
Hope this helps
... View more