When specifying functions in a Control-M/Analyzer expression, take the following into consideration:
Each function returns a value.
All functions consist of a function name and a set of parentheses. Arguments are specified between the parentheses. Each function can receive a different number of arguments. Commas are used to separate arguments listed between parentheses.
FUNCTION(argument1, argument2, ... argumentn)
No space can exist between the function name and the first parenthesis.
A function may be passed as an argument to another function. This is called function nesting. When functions are nested, the innermost function is resolved first. Its value is then passed to the outer function. There is no limit to the number of nested functions allowed in Control-M/Analyzer
An expression may be passed as an argument to a function. This type of argument is called a nested expression. In this case, the innermost expression is resolved first. Its value is then passed to the function, that is resolved next. The outer expression is resolved last. There is no limit to the number of nested expressions allowed in Control-M/Analyzer.