BookmarkSubscribeRSS Feed

Build a HTML5 Web App Using SAS 9 or Viya

Started ‎05-16-2020 by
Modified ‎07-09-2020 by
Views 5,565

This is a short article to provide supporting and background info for my SGF 2020 virtual presentation, "Build a HTML5 Web App Using SAS".

 

This was originally planned as a HoW (Hands On Workshop), and the workshop (1 hour) is still available for those who are interested, they are free, we run them occasionally whenever there is enough interest.  Just send me a PM.

 

The presentation itself talks about the SASjs framework, which was launched in 2020 as a cohesive approach for building Web Apps on SAS.  The components are:

 

  • MacroCore (SAS Macro Library for backend SAS dev)
  • SASjs (JS adapter for frontend/backend communication with SAS)
  • sasjs-cli (NPM tool for building the backend in an 'opinionated' way)

 

It kicks off with an example of building a single-page-app in just 2 lines of SAS code!  You can try this yourself, if you have SAS 9 and a Stored Process Server (and internet access from SAS):

 

filename playme url "https://sasjs.io/game";
%inc playme;

After running the above, open the url that is displayed in the log.  You will have your own space invaders game:

 

Screenshot 2020-05-16 at 20.16.29.png

 

Another feature of the SASjs CLI tool is that it lets you compile your frontend into web services, thereby avoiding the need to access the SAS web server.  This isn't a recommended approach, however - sometimes it's the only available approach.  

 

The video itself is available below:

 

 

The paper can be found here, and the slides are here.

 

Other links:

 

 

We'll continue to open source our tooling and technology for building Web Apps on SAS 9 and Viya.   

 

Comments are welcomed!

Comments

Thanks for resources!

Contributors
Version history
Last update:
‎07-09-2020 10:38 AM
Updated by:

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

SAS AI and Machine Learning Courses

The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.

Get started

Article Tags