Calling a Function From Another Function

How to:

A function can be an argument for another function.


Top of page

x
Syntax: How to Call a Function From Another Function
field = function([arguments,] function2[arguments2,] arguments);

where:

field

Is the field that contains the result of the function.

function

Is a function.

arguments

Are arguments for function.

function2

Is the function that is an argument for function.

arguments2

Are arguments for function2.



Example: Calling a Function From Another Function

In the following example, the AYMD function is an argument for the YMD function:

-SET &DIFF = YMD(&YYMD, AYMD(&YYMD, 4, 'I8'));

Information Builders