BookmarkSubscribeRSS Feed
Not applicable
Are there any SAS code examples of creating HTML tables that have pull-down menus?
I'm currently using base SAS 9.1.
It's fine if the examples involve some javascript programming.
Thank you.
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You may want to check the SAS Discussion Forums archives - also here is a Google advanced search argument against the SAS.COM website using related keywords.

create drop-down list javascript

Scott Barry
SBBWorks, Inc.
The ODS HTML FAQ have several examples, these among them:

If the version of HTML that you use is important for your web server, remember that ODS HTML creates HTML 4.01 compliant tags, ODS HTML3 creates HTML 3.2 compliant tags and ODS MSOFFICE2K creates Microsoft HTML, designed for use with Office 97 and higher.

Not applicable
The links you provided had some items I'm interested in.
Maybe I missed this code, but do any of them specifically mention creating pull-down menus?
Thank you.
Pull-down menus are implemented in HTML (usually) as HTML forms. The pull-down list is a select box and then when the user makes their selection, the item they select gets posted with the form action.

From other posts you've made, I remember that you are working in an EG and possibly also BI server environment. If you are working with the BI Platform, the SAS/IntrNet examples mostly correspond to what you can implement with the SAS Information Delivery Portal. The Stored Process Web Application (SPWA) is another way that you could create a custom front end and then build whatever kind of prompting interface you want, you would invoke your stored process via URL making a call to the SPWA to execute the stored process.

If you want to implement pull-down menus with EG, you should investigate the Enterprise Guide Parameter Manager -- which lets you define parameters (such as procedure options or task/wizard options) and then the Parameter interface automatically will prompt the user with a pull-down menu when they run a project in which the Parameter Manager was used to define parameters.

Other methods of creating pull-down menus, specifically in EG, involve the use interfaces programmed using methods other than HTML forms generally using custom tasks written in VB.NET or C#.

Meteorite | Level 14
I'm not where I can see them right now to check for sure, but I think some of the SAS/Intrnet examples had a world map, followed by some html pulldown/selection lists.

If I recall correctly, they were scripted out to the html page with sas "put" statements, and the selection list was a list of hard-coded values (ie, not data-driven).

Probably not exactly what you're wanting, but maybe a start...



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 4 in conversation