- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 04-25-2022 07:11 AM
(2948 views)
Hi!
I am using SAS Enterprise Guide and I was wondering if there is a way to write python code directly in SAS, and if there is a way to do so if you can guide me on how.
examples for use cases I would like to perform:
I have data in a table in SAS and I want to perform several manipulations with Pandas
I have a CSV file and I want to read it using Pandas and perform manipulation on that data
Thanks ahead!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Check SAS Viya product .
Hope you have enough money to buy !
Hope you have enough money to buy !
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Contact your sas-admins they know if you can execute Python code in a sas-session.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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