BookmarkSubscribeRSS Feed

Leveraging SAS® Viya® to Improve SAS® Processes

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

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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Article Tags