Oracle9i OLAP Services Developer's Guide to the OLAP DML
Release 1 (9.0.1)

Part Number A86720-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

Designing Programs, 3 of 13


Invoking Programs

Invoking programs that do not return values

There are two ways that you can invoke an OLAP DML program that does not return a value:

Syntax: CALL command

The syntax for using the CALL command to invoke a program is shown below.

CALL program-name [(arg1 [arg2 ...])]

The program-name argument is the name of the program to be called.

The arg1 and arg2 arguments are optional and specify any arguments that are expected by the called program. You can declare these arguments in the called program with the ARGUMENT command, or you can reference them in the program with the ARG function. When the program uses the ARGUMENT command and you use the CALL command to invoke the program, specify the arguments so that they match the positions of the arguments that are declared in the called program.

For the complete syntax of the CALL command, see the entry for the command in OLAP DML Reference.

Invoking user-defined functions

A user-defined function is a program that does not return a value. You invoke user-defined functions in the same way as you use OLAP DML built-in functions. You merely use the program's name in an expression and enclose the program's arguments, if any, in parentheses. The arguments are passed by value, not as text.

For example:

Important: Although you can also run user-defined functions as standalone programs or invoke them using the CALL command, in these cases, the return value of the function is discarded.

Related information

For more information, see the following table.

IF you want documentation about . . .  THEN see . . . 

using arguments, 

"Passing Arguments" 

the CALL command, 

the entry for the command in OLAP DML Reference 

user-defined functions, 

"Writing User-Defined Functions" 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback