Use the Python SWAT Package on the SAS Viya Platform | SAS Viya Quick Start Tutorial

SAS Users
87 views January 28, 2026

This SAS Quick Start tutorial shows you how to unite the Python language with the power of SAS. You learn how to use the Python SWAT package to take advantage of the SAS Cloud Analytic Services (CAS) engine in SAS Viya for massively parallel processing. Download the data to follow along in your own SAS Environment! SAS Viya Quick Start GitHub Repository – https://github.com/sassoftware/sas-viya-quick-start Video Outline 00:00 – Introduction 00:34 – Set up your environment 00:52 – Use the Python SWAT package on SAS Viya 01:28 – Connect to the CAS server 02:33 – Explore the available data on the CAS server 04:03 – Load data into memory on the CAS server (client side) 05:11 – Explore the CAS table 09:43 – Prepare the CAS table 13:48 – Session scope versus global scope tables 15:57 – Visualize and model the data 16:51 – Drop tables, delete source files, and terminate the CAS connection 18:04 – Summary Additional Resources ◉ Blog Series: Getting Started with Python Integration to SAS Viya – https://blogs.sas.com/content/sgf/2020/06/19/getting-started-with-python-integration-to-sas-viya-index/ ◉ Blog Series: Getting Started with Python Integration to SAS Viya for Predictive Modeling – https://blogs.sas.com/content/sgf/2023/03/20/getting-started-with-python-integration-to-sas-viya-for-predictive-modeling-index/ ◉ Video: Using Python for Data Analytics in SAS Viya – https://www.youtube.com/watch?v=skd9-it5NPU ◉ Course: SAS Viya and Python Integration Fundamentals Course – https://learn.sas.com/course/view.php?id=709 SUBSCRIBE TO THE SAS USERS YOUTUBE CHANNEL #SASUsers #LearnSAS https://www.youtube.com/SASUsers?sub_confirmation=1 ABOUT SAS SAS is a trusted analytics powerhouse for organizations seeking immediate value from their data. A deep bench of analytics solutions and broad industry knowledge keep our customers coming back and feeling confident. With SAS®, you can discover insights from your data and make sense of it all. Identify what’s working and fix what isn’t. Make more intelligent decisions. And drive relevant change. CONNECT WITH SAS SAS ► https://www.sas.com SAS Customer Support ► https://support.sas.com SAS Communities ► https://communities.sas.com SAS Analytics Explorers ► https://explorers.sas.com Facebook ► https://www.facebook.com/SASsoftware X ► https://www.twitter.com/SASsoftware LinkedIn ► https://www.linkedin.com/company/sas Blogs ► https://blogs.sas.com RSS ► https://www.sas.com/rss

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close