Skip Headers

Oracle® OLAP DML Reference
10g Release 1 (10.1)

Part Number B10339-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Feedback

Go to previous page
Previous
Go to next page
Next
View PDF

5.4 Executing Programs

You can invoke a program that does not return a value by using the CALL command. You enclose arguments in parentheses, and they are passed by value.

For example, suppose you create a simple program named addit to add two integers. You can use the CALL command in the main program of your application to invoke the program.

CALL addit (3, 4)

You can also invoke programs in much the same way as you issue OLAP DML statements. In this case, for a program that does not return a value, you merely use the program name as you would an OLAP DML command. If the OLAP DML program returns a value then it is a user-defined function. You invoke user-defined functions in the same way as you use built-in functions. You merely use the program name in an expression and enclose the program arguments, if any, in parentheses.

For example:

You can also create programs that execute automatically when a user attaches an analytic workspace as described in "Startup Programs".