SAS stored processes in HTML -



SAS stored processes in HTML -

how html able understand output , run sas stored processes ?

i understand if have "sas integration technologies" there module within software uses java instruct html talk stored process server, true ?

apparently code work , run stored process requested user.

<!-- welcome page mywebapp --> <html> <head><title>welcome mywebapp </title></head> <body><h1>welcome mywebapp</h1> <form action="/sasstoredprocess/do"> please come in first name: <input type="text" name="fname"><br> <input type="hidden" name="_program" value="/webapps/mywebapp/ask color"> <input type="submit" value="run program"> </form> </body></html>

you need have metadataserver , stored process webapplication. if these nowadays in environment, need create stored process (stp) in metadata. can done sas management console or enterprise guide. using management console, right click on metadatafolder want stp stored , select new>stored process. in new stp wizard, create these choices:

application server: sasapp server type: stored process server source code location , execution: allow execution on selected application server only. store source code on application server source code repository: select physical folder sas programme located source file: name of sas programme (askcolor.sas) result capabilities: stream

now, in html file, in order stp executed, alter value of _program parameter path , name in metadata, e.g.:

<input type="hidden" name="_program" value="/shared data/askcolor">

i generate html form stp itself, in programme this:

data _null_; file _webout; set "<html><form action=""&_url."" method=""get"">"; set "<input type=""hidden"" name=""_program"" id=""_program"" value=""&_program"">";

all parameters in html form available macro variables when sas programme executed. now, need url of stp web application. this: http://webserver:8080/sasstoredprocess/do

tip: add together parameter _debug=131 url in order see parameters , sas log. luck!

sas

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -