BookmarkSubscribeRSS Feed
Mike_Drutar
SAS Employee

Are you interested in learning how to write SAS programs that interact with the Viya Rest APIs?  If so, here’s a SASGF breakout session you'll want to check out!    

 

This session will demonstrate SAS code which programmatically retrieves a Visual Analytics report’s unique id.  The id is then fed to a macro which requests the reportImages service create an SVG image of the report. 

 

But if you just can’t wait until SASGF to start creating SAS code that connects to the Viya Rest APIs, here’s the first example from the presentation to get you started!  The GitHub button below links to a SAS program which can be run in the SAS Studio 5.1 instance of a Viya 3.4 environment.  The program first finds any Visual Analytics reports named “Retail Insights”.  The resulting reports and their associated unique IDs are then printed in SAS Studio’s results window. 

 

 Take Me to GitHub!

 

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

Discussion stats
  • 0 replies
  • 2938 views
  • 2 likes
  • 1 in conversation