One of
the advantages of using a stored process is that you can use input
parameters in the Java code to change the behavior of the servlet.
For example, to change the output type of the “Sample: Multiple
Output Formats” stored process used in this walk-through to
PDF or XML, follow these steps:
-
In the project, open
the folders
Java Resources and then
servlets.
Open
StoredProcessDriverServlet.java
.
-
Search for _ODSDEST_VALUE
=, and then set that variable to
PDF
or
XML
.
-
-
Stop and then start
the server (do not use Restart), and then run the application by right-clicking
the project and selecting
Run AsRun on Server.
-
On the Welcome Page,
click the Stored Process Servlet. The output is a PDF (or XML).
You can also change
the data set used by the servlet by changing the DATASET_VALUE.
Note that the input
parameters changed in this walk-through are specific to the “Sample:
Multiple Output Formats” stored process. Other stored processes
will have different input parameters.
To see how drill-down
functionality works, add another SAS Stored Process Servlet template
to the project, and use the European Demographic Data stored process.