Script() Function

I am testing how to call a saved script. Below is my test: Any help is appreciated…thanks

Below is the base script to be called. This base script output gives an accurate result
Base Script Name is: EPS Current QuarterYear TTM MS
Value = DATAFIELD(Month(PERIODAMOUNT=1), FEED=FD, FIELD=EPS);
Value[0]

Below is the Script() function to call the base Script above gives a result of zero. Not sure why it does not give the same result as above script.
C=SCRIPT(SCRIPTNAME=EPS Prior Quarter 3 quarters ago TTM MS);
C

Hi MIchael - I don’t know anywhere near as much as others here, but I’ll suggest that you’re not calling the script name that you defined as your Base Script.

So you’d have:

C=SCRIPT(SCRIPTNAME=EPS Current QuarterYear TTM MS);
C

Thanks Matt, I still get zeros when I use the adjusted script. Not sure what I am doing wrong.

Mike