The @@SHx statement represents a subset of all arguments starting with position x and including the rest of the arguments for the macro.
@@Sx
x | The number of an argument in the signature of the macro, with 0 representing the first position, 1 representing the second position, and so on |
The following example shows a macro that multiplies the first arguments together and adds them to the sum of the remaining arguments.
create macro Sample.'@MULTANDSUM'(single, single, any) as '(@@1 * @@2) + @SUM(@@SH2)';
Copyright 1991-2002 Hyperion Solutions Corporation. All rights reserved.