Contents SAS/IntrNet 9.1: SAS Design-Time Controls Previous Next

Common Properties

Each of the SAS Design-Time Controls has properties that you can set. Certain properties are common for all controls; the following section describes the common properties, which are represented as fields on tabs in the Properties dialog box.

For more information about any of the properties, except those that are represented by the Perform SAS processing and Show MDDB Report fields, please refer to the Application Dispatcher documentation.


The Advanced Tab

The Advanced tab contains the following fields:

Program
Specifies the name of the program that runs on the SAS server. Generally, you do not need to modify this field unless you are using the SAS Stored Program Control.

If you are using the Stored Program Control, then specify the name of the SAS/IntrNet program that you want to run. The value for this field should be of the same format as the value for the _PROGRAM variable in a typical Application Dispatcher request.

Extra parameters
Specifies any extra parameters that are required by the program that is specified in the Program field. Generally, you do not need to modify this field unless you are using the SAS Stored Program Control.

If you are using the Stored Program Control, then specify any parameters that are required by the program. The format for the extra parameters is:

   name-1=value-1<...&name-n=value-n>

If your extra parameter values contain spaces or special characters, you must URL-encode the characters. For information about encoding values, see the documentation for the URLENCODE function in the SAS Language Reference: Dictionary. You can use the URLENCODE function in a DATA step to produce an encoded string and then specify that string in the Extra parameters field.


The Connection Tab

The Connection tab contains the following fields:

Perform SAS processing
Specifies the SAS Design-Time Controls processing mode. You can choose from the following options:

  • once when building this page
  • when Java Server Page is invoked
  • when Active Server Page is invoked.

These processing modes produce either static output or dynamic output.

Note: The MDDB Report Control does not have this field. It has a Show MDDB Report field.

When you select the once when building this page option, you are selecting the static processing mode. Selecting this option means that when you save the control properties or save the Web page, a connection to SAS is made, a program runs inside the Application Server, and HTML is deposited into the Web page that you are editing. The output from the control is static and does not change until the next time you modify the control or save the page (depending upon the behavior of your HTML editor).

You can use static processing when you are constructing ASPs, JSPs, or HTML pages. Some points to remember about static processing:

  • You do not incur the cost of running a SAS program each time a user browses a static page on your Web site.

  • With static processing, the Web page might not display the most current data. Therefore, static processing is good for those instances when you want to display data that does not change (such as last year's revenue for your company). However, if you want to display a report that is based on a rapidly changing data source, then you probably want to consider a dynamic processing mode.

The second and third options, when Java Server Page is invoked and when Active Server Page is invoked, are dynamic processing modes. SAS Design-Time Controls uses both JSPs and ASPs in the same manner. Therefore, the following discussion applies equally to both JSPs and ASPs.

To use dynamic processing you must

  1. Make sure that your Web server is ASP- or JSP-enabled.

  2. Make sure that the filename for the Web page that you are creating ends in .asp if you intend to use an ASP or .jsp if you intend to use a JSP.

  3. From the Perform SAS processing field on the Connection tab, select the dynamic processing mode that corresponds with the filename extension.

The dynamic processing modes are powerful because they enable you to display up-to-date data on your Web page without you having to update the page. When the Web server serves the dynamic page, the code that is generated by the SAS Design-Time Control connects to SAS and runs a program. This program returns HTML output that represents the very latest data values.

Editing Web pages with dynamic content is similar to editing those with static content. One main difference is that you will probably be unable to use the preview feature of the HTML editor when you are in a dynamic processing mode. However, you can use the following steps to give yourself access to the preview feature:

  1. Construct the page using the static processing mode.

  2. Switch the processing mode for the control to a dynamic processing mode.

  3. Change the filename extension after you finish creating the file.

  4. Make sure to view the Web page using a URL that starts with http to see the result of the dynamic control.

Show MDDB Report
Specifies how the MDDB report is generated and displayed. The MDDB Report Control does not have a Perform SAS processing field because the content for this control is always dynamic. Also, this dynamic behavior does not require the use of ASP or JSP. Instead, this control has a Show MDDB Report field with the following options:

  • automatically
  • by calling the showMRV function

In most cases, select automatically, which causes the MDDB report to be generated when the page is accessed via the Web browser.

If you want to run a preprocessing script before the MDDB report is generated, then select by calling the showMRV function. You must also include a function named showMRV in the Web page. This function must accept a single string argument. The value of this argument is the URL for the MDDB report. The function should perform any preprocessing you want and then execute the URL in order to generate the MDDB report. The following example shows a JavaScript function named showMRV that executes the URL:

   function showMRV(mrvURL) {
   /* Perform your preprocessing here */
   location.replace(mrvURL);
   }
Web server
Specifies the domain of the Web server where you installed the Application Broker program. The default value for this field is the name of the domain that you specified when you installed the SAS Design-Time Controls. Supplying a value of localhost in this field is recommended if you intend to develop Web pages on one server and publish them on another server.

Broker URL
Specifies the path to the location of the Application Broker program. The combination of the value in this field and the value in the Web server field provides the full path to the Broker program. The default value for this field is the name of the Broker URL that you specified when you installed the SAS Design-Time Controls.

Service
Contains the name of the SAS/IntrNet service you want to use. The available service names are defined in the Application Broker configuration file. See the Application Dispatcher documentation for information about the _SERVICE variable and available services.

Debug
Specifies a debug option. The debug options help you to resolve problems that you might encounter when running the Design-Time Controls. The default value of 0 (zero), suppresses debug information. See the Application Dispatcher documentation for a list of valid debug values.


Contents SAS/IntrNet 9.1: SAS Design-Time Controls Previous Next