Your SAS programs, embedded in web apps and elsewhere

sas

Reply
Senior User
Posts: 1

sas

[ Edited ]
 
Frequent Contributor
Posts: 106

Re: SAS Stored Process using through HTMl & java script

Posted in reply to gaunasahoo

 

Hi, 

 

Serve your HTML code by placing it in the LevN/Web/WebServer/htdocs directory of your SAS configuration. You will then be able to embed it via an iframe. 

 

Alternatively if you need to have your HTML code output by a stored process, you can use this code:

 

data _null_;
    infile '/somewhere/html_code.html';
    file _webout;
    put _infile_;
  run;

 

Ensure that you don't have the %stpbegin and %stpend parameters present. See this post if you want to reuse the same stored process for outputting your HTML as well as your data processing.

 

 

Ask a Question
Discussion stats
  • 1 reply
  • 536 views
  • 0 likes
  • 2 in conversation