BookmarkSubscribeRSS Feed
jcoughlin
Calcite | Level 5

Hi everyone,

 

We're looking to make use of the SAS scheduling functionality and deploy Python scripts using SAS Job Flow Scheduler in Viya. The issue we have is that there is no Python IDE within SAS, which makes it difficult to debug code before we deploy. We can test things locally but then when we deploy to Job Flow Scheduler some other issue can arise and we cannot easily see the Python error.

 

One idea that we've had is to set the SAS instance of Python up as a remote interpreter within PyCharm. This would enable us to run code within a Python IDE, and as it's already running against the version of Python on our SAS server we can lift and shift more confidently.

 

Any advice is greatly appreciated.

4 REPLIES 4
Reeza
Super User
Two quick options come to mind, you can set up and connect Jupyter (notebook or lab) to your SAS installation.
Or if you call your python scripts via batch from SAS you can pipe the errors back from the console (assuming they are reported in the console).



jcoughlin
Calcite | Level 5

Thanks Reeza, we are in the process of having notebooks installed. 

AhmedAl_Attar
Rhodochrosite | Level 12

Depending on your SAS Viya version, you may want to have a look at this 2019 SAS Global Forum Paper "What’s New in FCMP for SAS 9.4 and SAS Viya"

Using Proc FCMP Python, will allow you to lift and shift the code, after testing and debugging it in your favorite Python IDE.

 

Hope this helps,

Ahmed

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 588 views
  • 4 likes
  • 3 in conversation