Page 1 of 1

sum of all items in a string

Posted: Mon Oct 29, 2018 8:15 am
by BT454
Good morning,
Is it possible to code a function that creates a series equal to the sums of all items in a string?
i.e.
if %test = "series1 series2 series3 series4", is there a code so that series x may equal the sum of the contents of %test?
Thanks,
Bob

Re: sum of all items in a string

Posted: Mon Oct 29, 2018 9:43 am
by EViews Gareth

Code: Select all

group g {%test} series x = @rsum(g)