Hi:
First HTML is NOT Excel...when you are rendering HTML, you most generally use a browser. An HTML table is "static" -- it is content "marked up" with HTML presentation tags. The content is decided upon, usually, before the HTML page is displayed. The content could be the full text of Moby Dick or Finnegan's Wake (novels) or the content could be bowling scores or the content could be data in a table form. At any rate, once the content is displayed in a browser window, it is generally NOT changeable with "vanilla" HTML.
So your question about filtering what is in an HTML table means that you will either move more into the world of HTML and scripting (Dynamic HTML, PHP, JavaScript, ActiveX, ActiveServer pages, Java Server pages, Cold Fusion, etc) or you will move into the world of advanced SAS products and client/server technology such as SAS/IntrNet and/or SAS Stored Processes using the SAS Addin for Microsoft Office, the SAS Information Delivery Portal, or other part of the SAS Enterprise Intelligence Platform (also known as the BI platform).
Specifically, you asked:
1. How do I create a filter for each of the titles in "Vehicle" dataset so that to allow the users to search for the vehicles display easily. something similar to the "filter" function in microsoft excel.
HTML is not Excel. Generally, the way that you "prompt" the user for information -prior- to the display of an HTML page is with an HTML form. You show the user choices, they hit a SUBMIT button and the HTML form <ACTION> tag tells the browser what to do with the fields that were selected when the SUBMIT button is engaged. If you want more snap, crackle and pop (interactivity) in your HTML pages (without using SAS), then you look to enhance the HTML with other technologies, such as JavaScript or PHP technology.
If you want to create more dynamic HTML with SAS, then you are looking at more advanced client/server types of solutions. If you had the SAS/IntrNet product, then you would use htmSQL to build a dynamic HTML form that showed a list of vehicles and you would allow the users to choose criteria on that first page, the form <ACTION> would then be a call to the SAS Application "broker" with a request for a specific program (a SAS Application Dispatcher program) to be run, using the criteria selected by the users. If, on the other hand, you were using the SAS Enterprise Intelligence Platform, you would use a stored process (SP), as Scott suggested. The prompting framework used with the SP would allow you to prompt the users for their criteria and then when they hit the SUBMIT or RUN button, their criteria would be used in the execution of the SP and the results would come back in whatever form was appropriate (HTML for the Information Delivery Portal, word-processing form for Microsoft Word, HTML for a browser or for Enterprise Guide), Stored Process Web Application, etc). Without knowing what products you have (Base SAS, SAS/IntrNet, SAS Enterprise Intelligence Platform), it is very hard to get into more details on "filtering". For an example of a SAS/IntrNet program, see this site:
http://support.sas.com/documentation/cdl/en/dispatch/59547/HTML/default/sesssamp.htm
To learn more about writing and executing Stored Processes, see this site:
http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/a003152553.htm
http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/datapass.htm
2. Is it possible to create the text fields and submit on the html page?
Yes, the method will depend on the technology you have available.
3. How do I get this submit button to send the results to mainframe ?
If you were using SAS/IntrNet, you would send SAS to a server (could be on any platform, not just the mainframe) via URL, as shown below either in a form <ACTION> tag or in an <A> tag:
[pre]
href="http://your_server_name/cgi_dir/broker.exe?_service=appserv&_program=libname.pgmname.sas"[/pre]
If you were using the Stored Process Web Application, again the submission would be via URL, as shown below:
[pre]
<a target="new" href="http://your_server_name:9090/SASStoredProcess/do?_program=/SP_repos/SP_folder/pgm_name">Click here to run program</a>
[/pre]
If you were using the client applications within the SAS Enterprise Intelligence Platform, then the communication between the client application and SAS on a server is handled by each client application and you do not explicitly have to code the execution information -- that is handled by the configuration of the Platform.
The method you use will really depend on the technology and products you have available. If you Google using the search terms:
SAS Web Applications dynamic
you will find user group papers that describe web applications such as you describe.
cynthia