![]() | ![]() | ![]() |
The simple example below demonstrates how a request can be rejected by including logic in the INIT program. The example disables the Hello World example that ships with SAS/IntrNet software.
The logic is straightforward. If the program to be executed is the Hello World example, then the following actions occur:
The conditional logic is specific to the Hello World example (i.e., the value for program is sample.webhello.sas). To demonstrate this capability, go to the sample environment located at http://hcsbi.com/IntrNetAppDev/ and select Chapter 9. Then select Terminating a Request (see Figure 9.5) to demonstrate this. In an actual implementation, the logic to determine whether a program is allowed can be metadata driven.
Note: Additional examples, including metadata-driven ones, that use the INIT and TERM programs, are included throughout the remainder of this book.
Figure 9.5 Terminating a Request
About the Author
Don Henderson is the Owner and Principal of Henderson Consulting Services, a SAS Affiliate Partner. Don has used SAS software since 1975, designing and developing business applications with a focus on data warehouse, business intelligence, and analytic applications. Don was one of the primary architects in the initial development and release of SAS/IntrNet software in 1996, and he was one of the original developers for the SAS/IntrNet Application Dispatcher. Don has presented numerous papers at SUGI and regional SAS user group meetings, and continues to be a great supporter of SAS and its products.
His book is available from the online bookstore.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
| Type: | Sample |
| Topic: | Internal Administration ==> BBU |
| Date Modified: | 2007-07-17 03:24:48 |
| Date Created: | 2007-07-17 03:24:48 |
| Product Family | Product | Host | SAS Release | |
| Starting | Ending | |||
| SAS System | SAS/IntrNet | All | 8 TS M0 | n/a |



