Script() Function

Optuma Forums Optuma Scripting Script() Function

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #62079
    Michael
    • Topics: 8
    • Replies: 4
    • Posts: 12

    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

    #62081
    Matthew
    • Topics: 4
    • Replies: 14
    • Posts: 18

    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

    #62083
    Michael
    • Topics: 8
    • Replies: 4
    • Posts: 12

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

    Mike

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest