BookmarkSubscribeRSS Feed
Edoedoedo
Pyrite | Level 9

Hi, I'm using CAS actions to do some calculation, and at the end I want to plot some graphs. How do plots works in CAS? What are the procedure to plot graphs from a caslib? 

I can of course move the data from CAS to Workspace server and use the old plots procedure, but how to do it directly in CAS? Without the VA of course. 

 

Thank you

 

1 REPLY 1
BrunoMueller
SAS Super FREQ

For more information on this, have a look here:

SAS® 9.4 and SAS® Viya® 3.4 Programming Documentation Introduction to SAS Platform Graphing

 

Some text from above:

Overview of Using Data That Is Processed In CAS

When data resides in the SAS Cloud Analytic Services (CAS) environment, the data can be accessed by the ODS Graphics procedures through the CAS LIBNAME engine. The CAS LIBNAME engine enables the procedures to access and download CAS tables to the SAS client, such as SAS Studio. For more information about creating a CAS libref, see SAS Cloud Analytic Services: User’s Guide.
 
For this release of SAS Viya, the analytics for the ODS Graphics procedures are performed in the SAS client instead of the CAS environment. Therefore, for large data situations, it is recommended that you summarize or reduce the data before attempting to graph it. For example, in CAS procedure you can use the AGGREGATE action to summarize your large data to another CAS table, Then, you can reference the summarized CAS data from the SGPLOT or SGPANEL procedures to create a bar chart using the HBARPARM or VBARPARM statements.

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 1538 views
  • 0 likes
  • 2 in conversation