Your SAS programs, embedded in web apps and elsewhere

displaying an HTML file from a STP

Reply
Regular Contributor
Posts: 163

displaying an HTML file from a STP

Hi:
I created various HTML files and put them in some location on the server( a UNIX) using SAS9.1.3. One file is called Main2010. I would like the user to input a year parameter such as
2010.

Is there a way to have this HTML file ( which was created with SAS GRAPH and has the GIF file) to display owhen the stp is ran using something like a "put HTML file"

The reason I am thinking about this is because I rather have this HTML graph done prior to users running it.
jp
SAS Employee
Posts: 285

Re: displaying an HTML file from a STP

One solution is to use the Location header to perform a redirect. There is some information here:

http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/httphead.htm#location

The spec is in section 14.30:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

Another solution is to use FILESRV:

http://support.sas.com/rnd/web/intrnet/filesrv/filesrv.html

Vince DelGobbo
SAS R&D
Ask a Question
Discussion stats
  • 1 reply
  • 172 views
  • 0 likes
  • 2 in conversation