BookmarkSubscribeRSS Feed

Leveraging SAS® Viya® to Improve SAS® Processes

Started ‎10-30-2019 by
Modified ‎10-30-2019 by
Views 8,802

This article was co-authored by Brian Kinnebrew and Steven Sober.

 

Did you miss the Ask the Expert session Best Practices in Migrating SAS Code to Leverage CAS? Not to worry, you can catch it on-demand at your leisure. A pdf of the presentation slides is attached.

 

The SAS Platform is greatly enhanced by SAS Viya. In this session, Steven Sober and Brian Kinnebrew share their experiences in leveraging SAS Viya to improve SAS processes. They explore technical insights and implementation details to CAS-enable your code, thus achieving faster results. These techniques are illustrated by real-life case studies.

 

In this session, you’ll learn the answers to questions such as:

 

  • If a process cannot run in CAS, where does it run?
  • What coding components are most frequently encountered in code reviews with customers?

Figure 1 Agenda of the Webinar Best Practices for Migrating SAS Code to leverage CASFigure 1 Agenda of the Webinar Best Practices for Migrating SAS Code to leverage CAS

 

Here are some highlighted questions from the Q&A segment held at the end of the session for ease of reference.

  1. What does CAS stand for?
    CAS stands for SAS Cloud Analytic Services. It's the In-memory processing engine in SAS Viya.

  2. In general, if the base procedure is threaded in Base SAS, will it thread in CAS? Like Proc Sort, for example?

Yes, CAS is multi-threaded by default.

 

  1. How can you tell if SPRE or CAS is running?

In the SAS log, there is a note that tells you if the procedure or DATA Step ran in CAS. If you write CASL code, that code will only run in CAS.

 

  1. Is there a PROPCASE function in CAS?

This function is not supported in a DATA Step that runs in CAS.
https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=lefunctionsref&docsetT... 

 

  1. Does a LIBNAME statement run in SPRE, and a CASLIB will run in CAS?

All data sources that are access by a LIBNAME will be processed in SPRE. All data sources that are accessed via a CASLIB will run in CAS provided.

a. The step is a CAS enabled procedure or all statements in the DATA Step are CAS enabled.

b. All source and target tables to the step reside in CAS.

 

Recommended Resources

Reading material:

Trial: Get an early preview of SAS® Visual Analytics on SAS® Viya™

 

Want more tips? Be sure to subscribe to the Ask the Expert board to receive follow up Q/A, slides and recordings from other SAS

Ask the Expert webinars. To subscribe, select Subscribe from the Options drop down button above the articles.

Version history
Last update:
‎10-30-2019 03:43 PM
Updated by:
Contributors

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Article Tags