SAS Communities Library

We’re smarter together. Learn from this collection of community knowledge and add your expertise.
BookmarkSubscribeRSS Feed

Build a HTML5 Web App Using SAS 9 or Viya

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

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!

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

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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