04-16-2018 06:54 AM
Hello, is it possible to create a html with a input field...or perhaps with a checkbox field, where some variables can be checked and these values get associated with a macro or perhaps with into :variable?
I have EG and not many rights...i would like to store the html in C:Test..whatever and not on a server or elsewhere.
Google shows me some results, but there are many with stored processes..i would like to get the thing first done on a very simple way.
So 1. HTML...2. get the Values which are typed in or can be selected with a checkbox.
04-16-2018 06:59 AM
Creating a HTML page for input, and then run SAS code depending on that input, is the job for SAS stored processes, as you need an interface between the HTML user agent (the browser) and SAS, and that's what the SAStoredProcess webapp (via SAS Web Server and SAS Web Application Server) does.
A .html file on your PC won't have any means to access SAS on the server.
04-16-2018 09:28 AM
You can access SAS outside of this but the general point is taken. You do not have to go back to SAS through their defined means to get to a SAS executable. You can also use IOM and do it via alternatives like ASP.NET, Node.js, et al.
SAS stored processes is a means of doing it but it is not required. It is just simpler for most SAS users.
04-16-2018 07:00 AM
Not easily. Why are you wanting this? Is it just to get macro items into your code, then use EG prompts.
If its more complex than that then you need to look at some sort of server backend with stored processes:
I suspect if your not the admin this isn't what you would be looking at anyways, and that your problem is a lot simpler. Perhaps supply a use case?
04-16-2018 07:19 AM
I know how to work with prompts, but at this point i dont need them.
The layout for now is very simple.
1. You can input Name,Cars etc. and "Name" "Cars" need to be stored.
2. Name and Cars can be checked, in this "case" Name would be stored.
Im not sure how to start on that and if there is another way, but the best way would be a HTML file, so that a user can check it.
04-16-2018 07:23 AM
That's exactly what user defined prompts do. Don't reinvent the wheel.
If you need something for "simple" users to work semi-automatically with SAS (without EG in the middle), then the stored processes and their web-interface are the way to go.
04-16-2018 07:33 AM
04-16-2018 09:07 AM
The "user from elsewhere" is the person that executes the sas program after he/she "put some values in"?
If not: why can't the "user from elsewhere" write the values in an text-file?